Skip to content

管理面修复·前端:「数据库维护」改名「其他」+ slug database→others(采用) - #37

Merged
todosdev[bot] merged 1 commit into
mainfrom
tds/conv-01a1f7c9-7a99-7ec8-93fa-d444ae0b7800
Nov 20, 2026
Merged

todosdev[bot] merged 1 commit into
mainfrom
tds/conv-01a1f7c9-7a99-7ec8-93fa-d444ae0b7800

Conversation

@todosdev

@todosdev todosdev Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • 按照模板 project-template 定版规范,将管理面「数据库维护」页签及其路由 slug 与 i18n 键名统一调整为「其他」(database → others)。
  • 旧 slug 直接替换、不留重定向别名,回落直接命中默认规则;表前缀展示与初始化页面开关位置及功能保持不变。

Changes

  • web/src/pages/admin:重命名 maintenance-section.tsx 为 others-section.tsx 并更名组件为 OthersSection;更新 admin-page.tsx 中的页签定义与路由 segment 映射。
  • web/src/App.tsx & web/src/hooks/use-page-title.ts:子路由替换为 /admin/others,移除旧 /admin/database 与 /admin/maintenance 重定向;页面标题映射对齐 /admin/others。
  • web/src/locales:国际化键名由 admin.tabs.maintenance 改为 admin.tabs.others,admin.maintenance.* 改为 admin.others.*(中英文同步更新,不保留旧键)。
  • web/src/App.test.tsx & web/src/pages/admin.test.tsx:更新路由直达、首页签回落及「其他」页面开关交互测试。
  • README.md:同步更新管理面页签文档引用。

Testing

  • pnpm test:Web 与 Worker 全部单元测试通过(58 个测试文件、441 项全部通过)。
  • pnpm typecheck / pnpm lint / pnpm format:check / pnpm build:全量检查与构建通过。
  • GitHub Actions CI:分支当前 HEAD 在 CI #95 (run 44694310513) 全绿通过。

- rename maintenance-section to others-section
- update route slug from database to others without legacy redirects
- update i18n keys from admin.maintenance to admin.others
- update routing, page title mapping, docs, and unit tests
@todosdev
todosdev Bot merged commit aa55eaa into main Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant