后台 IA 收口修正:修复默认路由与降权页路由,收敛 AI 五层契约与文案
Workstream C/D/J 收口阶段的后台 IA 修正(前序结构性 stream 已合并,本轮只补残留缺口): - [修复] page_display 默认路由失效:SECTION_DEFAULT_CHILDREN 键 'page_display' 与分区 key 'page-display' 不匹配,attachSectionDefaultRoute 永不命中, /page-display 无默认落点。改键并指向 SchemaPage page-display-header-nav (stream-d §5.2 / CLAUDE.md 约束 #9)。 - [修复] shop/forum 概览页路由碰撞:shop-dashboard 用 /shop、forum-dashboard 用 /forum,与分区根路由冲突并被 createSectionRedirectRoutes 抢先重定向, 兼容导航项不可达。改为 /shop/dashboard、/forum/dashboard。 - [修复] AI 页虚假 schema 绑定:extensions-ai 声明了不存在的 section:'ai', 违反五层契约。AI 属停用候选(stream-c §5.9,不扩写核心 schema),移除虚假 绑定,改用自有 /ai/* 端点作为兼容能力。 - [文案] 收敛平台术语(stream-c §8):users-report「治理台账」→「用户限制状态 管理」;「AI 子系统」→「AI 辅助(兼容)」。 验证:admin SPA 构建通过;节点级校验确认 10 个分区默认路由全部解析、无路由碰撞、 extensions-ai canonicalDomain/section 已清空。验收报告与兼容层状态表见 docs/ (本地内部文档,按 .gitignore 约定不入库)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -64,17 +64,17 @@ export const extensionsSection = {
|
||||
title: '系统工具',
|
||||
desc: '额外运维工具与扩展能力。',
|
||||
}),
|
||||
// AI 能力属停用候选(stream-a/§5.9),不进入核心 schema:使用自有 /ai/* REST 端点,
|
||||
// 不声明 canonicalDomain/section,避免 SchemaPage 契约指向不存在的 schema section。
|
||||
customPage({
|
||||
key: 'extensions-ai',
|
||||
name: 'ExtensionAI',
|
||||
label: 'AI 子系统',
|
||||
label: 'AI 辅助(兼容)',
|
||||
route: '/extensions/ai',
|
||||
component: 'ExtensionAI',
|
||||
status: 'available',
|
||||
title: 'AI 子系统',
|
||||
desc: '配置 AI 内容辅助能力。',
|
||||
canonicalDomain: 'extensions',
|
||||
section: 'ai',
|
||||
title: 'AI 辅助(兼容)',
|
||||
desc: '兼容保留 AI 内容辅助能力,不作为主线扩展能力入口。',
|
||||
}),
|
||||
],
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ export const forumSection = {
|
||||
key: 'forum-dashboard',
|
||||
name: 'ForumDashboard',
|
||||
label: '论坛概览',
|
||||
route: '/forum',
|
||||
route: '/forum/dashboard',
|
||||
component: 'ForumDashboard',
|
||||
title: '论坛概览',
|
||||
desc: '社区讨论、帖子管理、版块配置等论坛功能概览。',
|
||||
|
||||
@@ -68,7 +68,7 @@ const COMPAT_PAGE_ORDER_INDEX = new Map(COMPAT_PAGE_ORDER.map((key, index) => [k
|
||||
|
||||
const SECTION_DEFAULT_CHILDREN = {
|
||||
global: 'global-common',
|
||||
page_display: 'page-display-homepage',
|
||||
'page-display': 'page-display-header-nav',
|
||||
'post-list': 'post-list-page',
|
||||
permissions: 'permissions-comment',
|
||||
users: 'users-auth',
|
||||
@@ -161,9 +161,9 @@ const DEMOTED_PAGE_OVERRIDES = {
|
||||
desc: '兼容保留扩展工具中心,避免与主工具区重复争夺主路径。',
|
||||
},
|
||||
'extensions-ai': {
|
||||
label: 'AI 子系统(兼容)',
|
||||
title: 'AI 子系统(兼容)',
|
||||
desc: '兼容保留 AI 入口,不再进入 Zibll 主线后台路径。',
|
||||
label: 'AI 辅助(兼容)',
|
||||
title: 'AI 辅助(兼容)',
|
||||
desc: '兼容保留 AI 内容辅助能力,不再进入 Zibll 主线后台路径。',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ export const shopSection = {
|
||||
key: 'shop-dashboard',
|
||||
name: 'ShopDashboard',
|
||||
label: '商城概览',
|
||||
route: '/shop',
|
||||
route: '/shop/dashboard',
|
||||
component: 'ShopDashboard',
|
||||
title: '商城概览',
|
||||
desc: '商品管理、订单系统、库存管理等电商功能概览。',
|
||||
|
||||
@@ -180,7 +180,7 @@ export const usersSection = {
|
||||
component: 'UsersReport',
|
||||
status: 'available',
|
||||
title: '禁封/举报',
|
||||
desc: '举报受理、用户封禁和治理台账。',
|
||||
desc: '举报受理与用户限制状态管理。',
|
||||
canonicalDomain: 'users',
|
||||
section: 'report',
|
||||
}),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="aksrt-page-container">
|
||||
<PageHeader title="AI 子系统" desc="配置 AI 内容辅助能力,包括 SEO 建议、摘要生成、标签建议等。" />
|
||||
<PageHeader title="AI 辅助(兼容)" desc="兼容保留的 AI 内容辅助能力,包括 SEO 建议、摘要生成、标签建议等。" />
|
||||
|
||||
<!-- 状态卡片 -->
|
||||
<div class="aksrt-ai__status">
|
||||
|
||||
Reference in New Issue
Block a user