收口 MNote P0 P1 P2 审查尾项
- 归档 OnlyOffice live bridge、Page AI、mindmap、design governance 与相关 bug 条目 - 补齐 MinerU OCR 后端 runtime 合同与 smoke/test 基线 - 收口 ChatOnly/Doubao、ObjectIdentity、Page Aggregate compat 与 runtime owner 文档口径 验证: - cargo test --manifest-path rust/Cargo.toml -p mnote-web local_ocr -- --test-threads=1 - cargo test --manifest-path rust/Cargo.toml -p mnote-web onlyoffice_bridge -- --test-threads=1 - git diff --check - git diff --cached --check - codegraph index . --force && codegraph status . - codegraph sync . && codegraph status .
This commit is contained in:
+2
-1
@@ -1,6 +1,6 @@
|
||||
# 5-30 Sidebar 星标置顶快捷入口与 Scoped Explorer 设计 v1
|
||||
|
||||
> 状态:process
|
||||
> 状态:done
|
||||
> Owner:05-editor-mainline / 03-rust-web / control-plane
|
||||
> 背景:星标置顶需要对齐 Wolai 的 Sidebar 顶部快速访问体验,但 MNote 还需要支持把高频本地文件夹固定成 Explorer scoped root,避免每次进入大 workspace 时加载完整根目录。
|
||||
|
||||
@@ -240,3 +240,4 @@ mnote-web:
|
||||
- 2026-05-26:星标置顶确定为用户级 Sidebar 快捷入口,不是文件夹/页面自身属性。
|
||||
- 2026-05-26:星标快捷入口必须写入 SQLite control-plane,满足同一用户跨设备一致显示。
|
||||
- 2026-05-26:文件夹星标点击进入 scoped Explorer,避免大 workspace root 扫描。
|
||||
- 2026-06-01:只读复核确认 `sidebar_shortcuts` migration/store/API、显式 `rootUri`、scoped Explorer 与 `task492-sidebar-starred-shortcuts-smoke.js` 已覆盖本文主验收;本文归档到 `done/`。
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# 5-31 页面设置 SQLite 状态收口设计 v1
|
||||
|
||||
> 状态:process
|
||||
> 状态:done
|
||||
>
|
||||
> Owner:05-editor-mainline / control-plane / mnote-web
|
||||
>
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# 5-32 FileTree 大目录懒加载与展开状态设计 v1
|
||||
|
||||
> 状态:process
|
||||
> 状态:done
|
||||
> Owner:05-editor-mainline / 03-rust-web
|
||||
> 背景:用户在 localhost 打开 `mnote/design` 及其子目录时仍感到加载慢,并观察到“全部加载完又折叠,再点很快”。上一版仅靠恢复展开状态不够,因为它没有消除慢请求、重复请求和整树替换。
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# 5-33 FileTree ViewState 与请求代际收口 v1
|
||||
|
||||
> 状态:process
|
||||
> 状态:done
|
||||
> Owner:05-editor-mainline / 03-rust-web
|
||||
> 前置:`design/05-editor-mainline/process/5-32-filetree-lazy-loading-sidex-alignment-v1.md`
|
||||
> 前置:`design/05-editor-mainline/done/5-32-filetree-lazy-loading-sidex-alignment-v1.md`
|
||||
> 背景:5-32 已把 FileTree lazy children、cache 和局部 refresh 推到可用层,但 Sidex / VSCode 对照显示,当前仍缺少统一 view-state、request generation、collapsed stale 和 reveal command。继续只做“展开恢复”会掩盖慢请求、重复请求和过期结果覆盖的问题。
|
||||
|
||||
## 1. 结论
|
||||
|
||||
+4
-2
@@ -1,6 +1,6 @@
|
||||
# 5-33 导航页与路由守卫执行清单 v1
|
||||
|
||||
> 状态:process
|
||||
> 状态:done
|
||||
>
|
||||
> Owner:05-editor-mainline / 03-rust-web / control-plane
|
||||
>
|
||||
@@ -14,7 +14,9 @@
|
||||
- [x] Phase B recent 闭环已落地:control-plane SQLite recent 表、读写 API、SSR recent 展示、打开 folder/page 写入 recent。
|
||||
- [x] Phase C 主路径已落地:导航页/星标文件夹进入 scoped 导航页;FileTree 普通文件夹点击只展开;Markdown 普通点击记录 recent 并打开文档页。
|
||||
- [x] Phase D 验证已落地:补 Rust route/API 测试与 `task500-navigation-page-route-guard-smoke.js` browser smoke,覆盖未登录、删除页回退、recent 分组和导航页首屏无 editor bootstrap。
|
||||
- [ ] 后续增强:文档页 breadcrumb 文件夹段逐级回到导航页、所有 fetch 404/410 的全局浏览器兜底可继续拆独立 follow-up;当前服务端 HTML shell 已覆盖 canonical route guard。
|
||||
- [x] 后续增强已拆出:文档页 breadcrumb 文件夹段逐级回到导航页、所有 fetch 404/410 的全局浏览器兜底继续由 `design/05-editor-mainline/process/5-35-navigation-breadcrumb-fetch-guard-followup-v1.md` 跟踪;当前服务端 HTML shell 已覆盖 canonical route guard。
|
||||
|
||||
2026-06-01 归档说明:Phase A-D 主路径已有 Rust route/API 测试与 `task500-navigation-page-route-guard-smoke.js` 证据;本文归档到 `done/`,剩余增强不继续阻塞导航页主清单。
|
||||
|
||||
## 1. 目标
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
# 5-35 导航页 breadcrumb 与 fetch guard follow-up v1
|
||||
|
||||
> 状态:process
|
||||
>
|
||||
> Owner:05-editor-mainline / 03-rust-web
|
||||
>
|
||||
> 创建时间:2026-06-01
|
||||
>
|
||||
> 来源:`design/05-editor-mainline/done/5-33-navigation-page-route-guard-checklist-v1.md` 归档后拆出的增强尾项。
|
||||
|
||||
## 背景
|
||||
|
||||
`5-33` 已完成导航页主路径:`/` 与 local-folder / folder scope 无明确页面时显示导航页,不再自动打开默认 Markdown;recent folders/pages、删除页 fallback、未登录 route guard、导航页首屏不注入 editor / aggregate 均已有测试和 browser smoke。
|
||||
|
||||
剩余问题不应继续阻塞主清单,但仍属于工作区体验尾项:
|
||||
|
||||
- 文档页 breadcrumb 的文件夹段应逐级回到对应 folder navigation page。
|
||||
- 浏览器交互 fetch 返回 `401/404/410` 时,当前页面应有统一恢复策略,而不是只依赖服务端 HTML route guard。
|
||||
|
||||
## 目标
|
||||
|
||||
- 点击文档页 breadcrumb 文件夹段时,进入对应 `fileTreeScope` 的导航页,并保持 Sidebar Explorer scope 一致。
|
||||
- 当前页面相关 fetch 返回 `404/410` 时,回到当前资源所在父 folder navigation page,并显示轻量提示。
|
||||
- 当前交互 fetch 返回 `401` 时,跳转 `/auth?next=<current-url>`。
|
||||
- 保留普通业务错误 toast,不把所有 API 错误都吞成导航跳转。
|
||||
|
||||
## 非目标
|
||||
|
||||
- 不重新打开 `5-33` 的导航页主清单。
|
||||
- 不新增第二套 route truth;canonical route guard 仍在 Rust HTML shell。
|
||||
- 不改变 FileTree 普通文件夹点击只展开的行为。
|
||||
- 不为所有后台 API 加全局 silent redirect。
|
||||
|
||||
## 验收
|
||||
|
||||
- [ ] breadcrumb 文件夹段点击后 URL 包含对应 `fileTreeScope`,主区域是 folder navigation page。
|
||||
- [ ] Sidebar Explorer 与主区域 scope 一致。
|
||||
- [ ] 当前文档相关 fetch 返回 `404/410` 时回到父 folder navigation page。
|
||||
- [ ] 当前交互 fetch 返回 `401` 时跳转 auth 并携带 `next`。
|
||||
- [ ] `task500-navigation-page-route-guard-smoke.js` 继续通过,或新增 `task5xx-navigation-breadcrumb-fetch-guard-smoke.js` 覆盖本文尾项。
|
||||
|
||||
## 建议验证
|
||||
|
||||
- `cargo test --manifest-path rust/Cargo.toml -p mnote-web root_entry -- --test-threads=1`
|
||||
- `cargo test --manifest-path rust/Cargo.toml -p mnote-web local_folder -- --test-threads=1`
|
||||
- `node scripts/task500-navigation-page-route-guard-smoke.js`
|
||||
Reference in New Issue
Block a user