feat(admin): migrate pro admin UI into app admin sidebar - #7609
Draft
xqvvu wants to merge 2 commits into
Draft
Conversation
- Add 25 /admin/* routes (dashboard, users/teams/plans/pays/invoice, apps/datasets, config basic/feature/model/thirdParty/user/pay/plugin/ modelProvider, templates app/toolkit, inform, log, audit, home) - Extend SecondaryNavigationContainer with two-level grouped sidebar (SideTabs/Group, backward compatible with account pages) - Add admin entry to navbar for root users; redirect old /config/* routes to /admin/config/* - Migrate admin components (BoxCard, markdown, Settings form series, PlanComponents) and frontend API wrappers (web/admin/*) calling pro/admin APIs via /proApi proxy with silent degrade when pro is absent - Add license activation UI (LicenseInput/LicenseData) + root license detection in Layout; useSystemStore license state - Register new deps in pnpm catalog (react-table, nodemailer, alicloud, xml2js, canvas, xterm) Design: .agents/design/admin/pro-admin-ui-migrate.md
canvas@3.2.3 was added to the app catalog/package.json during the admin migration but is never imported by any app code (pro/admin pins its own ^3.0.0 for captcha). Its node-gyp install script requires Python, which breaks the alpine maindeps Docker build. Keep onlyBuiltDependencies entry for pro/admin.
|
✅ Admin Preview Image Ready! 🕒 Time: 2026-08-27 16:45:49 (UTC+8) |
Coverage Report
File CoverageNo changed files found. |
|
✅ Build and publish successful - Preview fastgpt Image: 🕒 Time: 2026-08-27 16:46:42 (UTC+8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
把 pro/admin 的 UI 迁移到前台主应用
projects/app,以"管理员侧栏"形式集成,root 用户在 app 内即可完成管理员操作,无需单独部署/访问 admin 应用。设计方案见.agents/design/admin/pro-admin-ui-migrate.md。改动
/admin/*页面(dashboard 5 子页、users/teams/plans/pays/invoice、apps/datasets、config basic/feature/model/thirdParty/user/pay/plugin/modelProvider、templates app/toolkit、inform、log、audit、home);旧/config/*路由 302 重定向到/admin/config/*SecondaryNavigationContainer扩展两级分组侧栏能力(SideTabs/Group,向后兼容 account 页);root 用户 navbar 新增"管理"入口components/admin/(BoxCard、markdown、Settings 表单系列、PlanComponents)、pageComponents/admin/各页面模块web/admin/*通过/proApi代理调用 pro/admin 接口;pro 服务未配置时静默降级为空数据,保证开源版页面骨架可渲染LicenseInput/LicenseData)+ root 登录后未激活检测,提示激活/购买商业版@tanstack/react-table、nodemailer、@alicloud/*、xml2js、canvas等注册进 pnpm catalog验证
待办(后续)
projects/app/test/api/admin/)