Conversation
|
✅ Admin Preview Image Ready! 🕒 Time: 2026-09-15 14:30:19 (UTC+8) |
Coverage Report
File CoverageNo changed files found. |
|
✅ Build and publish successful - Preview fastgpt Image: 🕒 Time: 2026-09-15 14:31:07 (UTC+8) |
xqvvu
force-pushed
the
xqvvu/feat/admin-ui-migrate
branch
from
September 8, 2026 02:32
eb68e82 to
715677e
Compare
|
✅ Docs preview deployed 🔗 👀 Click here to visit preview 🕒 Time: 2026-09-15 14:27:28 (UTC+8) |
xqvvu
force-pushed
the
xqvvu/feat/admin-ui-migrate
branch
from
September 9, 2026 06:15
a531ec9 to
a039e9e
Compare
- 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.
- add LICENSE_PUBLIC_KEY(_PATH) env, license schema (schemaVersion 1|2, trial|official, functions gate), signature verify + normalize helpers - system config: instanceId registration, license data surfaced to admin license page - app admin: License Input/Data components wired to new verify API, tenant name display, i18n (en/zh/ko/zh-Hant) - bump pro submodule (license auth + license-server)
Rebase onto upstream main required three integration fixes: - Model config page: upstream relocated `pageComponents/account/model/*` to `pageComponents/model/*`; repoint the migrated admin ModelProvider imports to the new path (component signatures unchanged). - Layout model-config guard: upstream's `/config/model` skip guard is dead code here — the branch redirects that legacy route to `/admin/config/modelProvider` via next.config, so guard the canonical route. - System params: drop the deprecated `oneAPI地址/密钥` form fields and the matching `oneapiUrl`/`chatApiKey` systemEnv plumbing; upstream V4.17.0 removed these overrides (they no longer take effect) and pro's config form no longer exposes them.
xqvvu
force-pushed
the
xqvvu/feat/admin-ui-migrate
branch
from
September 15, 2026 06:13
26aeed0 to
3162881
Compare
c121914yu
reviewed
Sep 15, 2026
| } | ||
| ]; | ||
| }, | ||
| // 旧 root 配置路由迁移到 /admin 后的重定向(避免历史链接/书签失效) |
| # PRO_URL= | ||
| # PRO_TOKEN= | ||
| # License-server 公钥(与签发服务的 LICENSE_PRIVATE_KEY 配对,二选一) | ||
| # LICENSE_PUBLIC_KEY=-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY----- |
| '/config/system/migrations' | ||
| ] | ||
| link: '/admin/dashboard', | ||
| // 管理员区域路由前缀匹配;旧 /config 路由已重定向,activeLink 保留以兼容重定向生效前的瞬时路径 |
| const { setUserDefaultLng, setShareDefaultLng } = useI18nLng(); | ||
| const checkedModelIdentityRef = useRef<string>(); | ||
|
|
||
| // root 登录后检测 license 状态(开源版未激活时提示激活/购买商业版) |
| "toolkit_runtime_config_pod_timeout_tip": "Pod 閒置超過該時間後會被回收" | ||
| "toolkit_runtime_config_pod_timeout_tip": "Pod 閒置超過該時間後會被回收", | ||
| "license_admin_home": "管理員首頁", | ||
| "license_admin_home_description": "查看目前租戶的 License 授權、資源額度與授權能力", |
Collaborator
There was a problem hiding this comment.
加一个 admin 的 ns,admin 都放那边吧
Collaborator
There was a problem hiding this comment.
license 相关代码应该写在 admin 吧?
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/)