217 Commits

Author SHA1 Message Date
927a223582 feat: add non-customer admin menu items (llmage, pricing, charge, accounting, financial, harnessed_agent, harnessed_reasoning, users) 2026-05-31 14:53:48 +08:00
d179aeb9ed fix: user_logined handler checks Router before loading dashboard
Changed the user_logined bind from urlwidget action to script action
that calls sageOnLogin(dashboardUrl). This prevents the dashboard from
overwriting the Router-restored page when the URL has a ?page= param.

Fixes: F5 refresh on deep links (e.g. ?page=/rbac/users) always showing
dashboard instead of the intended page.
2026-05-31 13:08:37 +08:00
b28a2b4a76 docs: merge reallife_asset API into unified api_zh.md 2026-05-31 13:00:16 +08:00
c1ff952cef feat: 客户API Key管理菜单指向dapi模块,添加edit/delete/newkey/copy图标
1. global_menu.ui: API Key管理URL改为/dapi/downapp/
2. imgs/: 添加edit.svg, delete.svg, newkey.svg, copy.svg图标
2026-05-31 12:10:00 +08:00
e6e732227f fix: 客户菜单添加仪表盘入口, 修复已登录用户右侧内容不加载问题
1. global_menu.ui: 客户菜单首位添加dashboard菜单项
2. index.ui: sage_main_content默认子组件改为urlwidget直接加载dashboard,
   解决已登录用户页面加载时user_logined事件不触发导致内容区空白的问题
2026-05-31 11:58:31 +08:00
318bca0a08 bugfix 2026-05-31 11:35:52 +08:00
a91b6e5499 bugfix 2026-05-31 11:34:25 +08:00
ba8d25fa66 菜单图标: SVG fill改为#555, 配合bricks暗色主题CSS filter 2026-05-31 11:22:07 +08:00
b7f545a3da feat: 菜单图标改用本地SVG文件替代Font Awesome 2026-05-31 11:11:55 +08:00
b903f1022e feat: global_menu 添加模型广场入口 (customer菜单首位) 2026-05-31 11:08:12 +08:00
81c6151228 feat: 用户登录后自动加载dashboard到右侧主内容区 2026-05-31 10:36:54 +08:00
62dd86a80b fix: 大模型API菜单指向dashboard_for_sage避免客户无权限500 2026-05-31 10:33:40 +08:00
41c71c118c feat: 菜单添加账单查询入口(accounting/billing.ui) 2026-05-31 10:27:16 +08:00
aac345894c update: API文档升级为v1接口(model+catelogid模式),补充文生图章节 2026-05-31 09:54:30 +08:00
c938359c14 fix: 大模型API菜单指向llmage/api_doc.ui文档页面 2026-05-31 09:02:32 +08:00
40ea3f89ee feat: customer角色菜单 - 按customer.admin/customer.customer分配功能
customer用户菜单:
- 仪表盘 (所有用户)
- 真人素材 (所有customer)
- 大模型API (所有customer)
- 我的帐务 (admin - 含充值/余额/明细)
- 信用额度 (admin - 含使用状态)
- API Key管理 (admin)
- 用户与权限 (admin - 添加用户/设置角色)

非customer用户保留原有平台管理菜单
2026-05-31 08:57:48 +08:00
7f5be99887 feat(menu): update credit limit menu to point to new hub.ui 2026-05-30 21:01:13 +08:00
654c89917c bugfix 2026-05-29 22:26:02 +08:00
f531b71e02 fix: wrap Tabular in VBox with cheight for proper scrolling 2026-05-29 22:09:57 +08:00
4a8f52a3f1 chore: remove runtime-generated files from git tracking
Remove build.sh generated symlinks and runtime files from git:
- conf/config.json (runtime config)
- stop.sh, start.sh, sage.service (runtime scripts)
- wwwroot/* symlinks (module links created by build.sh)

These files are already in .gitignore and should not be tracked.
2026-05-29 22:00:12 +08:00
78da8bd3d9 feat: add module_cache config section for rbac/pricing/uapi cache control 2026-05-29 17:58:34 +08:00
caccd22893 feat: add dapi and uapi module entries to global menu 2026-05-29 13:15:22 +08:00
5cb9cef2a9 fix: remove Jinja2 condition from accounting menu items (Jinja2 not effective at menu render time) 2026-05-29 00:10:50 +08:00
ed17dc0c86 feat: add credit limit menu entry to global menu 2026-05-28 22:39:54 +08:00
459f00d995 fix: remove hardcoded dark colors from global_menu and mainpage 2026-05-28 16:14:02 +08:00
60033946ce fix: rbac menu URL from /rbac/index.ui (nonexistent) to /rbac 2026-05-28 15:59:12 +08:00
f1447e737a fix: move reallife_asset menu item outside {% if get_user() %} block for universal visibility 2026-05-28 15:28:54 +08:00
4111c72474 feat: add reallife_asset to global menu 2026-05-28 15:23:28 +08:00
01d2385a26 i18n: add new dashboard strings (暂无数据, 排名, 用户金额TOP5, etc.) 2026-05-28 14:53:29 +08:00
30ef2d133c fix: remove hardcoded dark theme colors from index.ui, use CSS classes for theme support 2026-05-28 14:13:55 +08:00
1117dc7b67 i18n: comprehensive translation update - 921 strings across all modules
- Scanned ALL .ui/.json/.dspy files using regex + JSON parsing
  (regex fallback handles template syntax that breaks JSON parser)
- Covers: dashboard_for_sage, menu labels, CRUD headers/tools,
  llmage, accounting, appbase, charge, cpcc, dapi, discount,
  filemgr, hermes-web-cli, msp, platformbiz, pricing, rag, rbac,
  unipay, uapi, and sage core
- zh: 921 entries (Chinese strings as key=value)
- en: 921 entries (Chinese->English translations, preserves existing 227)
- ko: 921 entries (Korean translations, was empty)
- jp: 921 entries (Japanese translations, was empty)
- Generated msg.txt (backend MiniI18N format) in both i18n/ and
  wwwroot/i18n/ directories
- Dashboard translations: 仪表盘, 快捷入口, 今日活跃用户,
  今日交易金额, 数据看板, 在线用户, etc.
- Menu translations: 供应链管理, 平台业务, 折扣管理, 用户与权限,
  算力中心管理, 计费管理, 运维管理, LLM模型管理, etc.
- CRUD: all table headers, tool labels, field labels translated
2026-05-28 14:12:22 +08:00
7ea16d65ce fix: add language switch and window dock buttons to shell top bar
Restored from old top.ui:
- i18n/language.ui: language switcher
- Svg app-dock: show_windows_panel for minimized windows
2026-05-28 13:41:56 +08:00
f71c5f737b i18n: scan all .ui/.dspy files, complete translations for zh/en/ko/jp
- Scanned 193 .ui files across sage/wwwroot/ and pkgs/*/wwwroot/
- Extracted 169 unique otext/label strings
- Generated msg.txt (backend MiniI18N format) for all 4 languages
- Updated i18n.json (frontend reference) for all 4 languages
- zh: 169 entries (Chinese strings as key=value)
- en: 227 entries (Chinese→English translations + existing)
- ko: 169 entries (Korean translations)
- jp: 169 entries (Japanese translations)
- Covered modules: cpcc, dapi, discount, filemgr, hermes-web-cli,
  llmage, msp, platformbiz, pricing, rag, rbac, unipay, accounting,
  appbase, charge, sage core
2026-05-28 11:23:05 +08:00
c40492b320 feat(global_menu): restore supplychain module 2026-05-28 11:18:20 +08:00
9f7633f572 fix: remove supplychain from global_menu (not in Sage) 2026-05-28 11:07:57 +08:00
9b710966d2 fix: remove build.sh-managed symlinks from git, clean global_menu
- Remove 55 symlinks/module files from git tracking (build.sh creates them)
- Add .gitignore rules for all build.sh module symlinks
- Remove 7 non-Sage modules from global_menu.ui:
  unified_dashboard, integrated_crm_app, customer_management,
  opportunity_management, contract_management, financial_management,
  workflow_approval
- Keep only Sage modules: dashboard, product_management, supplychain,
  pricing, discount, llmage, rag, cpcc, msp, platformbiz, accounting, rbac
2026-05-28 11:06:35 +08:00
08feced001 fix: remove non-sage modules (cms, hermes-web-cli) from global_menu, use comma-prefix pattern for JSON safety 2026-05-28 10:38:38 +08:00
ac64a9b376 fix: remove id from urlwidget container (belongs in global_menu.ui) 2026-05-28 10:35:08 +08:00
8119e7dbd9 fix: relative symlinks + imgs/msp.svg for production compatibility
- Convert all 21 wwwroot symlinks from absolute to relative paths
  - Internal pkgs: ../pkgs/MODULE/wwwroot
  - External repos: ../../MODULE/wwwroot
- Add imgs/msp.svg logo placeholder (replaces missing msp.png)
- Remove stale shell.ui symlink (index.ui is the shell now)
- Update index.ui to reference msp.svg instead of msp.png
2026-05-27 19:11:45 +08:00
3481d80f24 feat: track wwwroot/ in git for simpler deployment
Remove wwwroot/ from .gitignore so production deployment is just git pull.

Changes:
- wwwroot/index.ui: Shell layout with sidebar and main content
- wwwroot/global_menu.ui: Global navigation menu (22 modules)
- wwwroot/dashboard_for_sage/: Dashboard widgets and stats
- wwwroot/product_management/: Product management pages
- Module symlinks (accounting, rbac, bricks, etc.)

Ignored: .DS_Store, *.bak, tmp/
2026-05-27 19:00:46 +08:00
da47ad0cdb bugfix 2026-05-27 18:50:01 +08:00
46bc814fdc feat: replace index.ui with shell left-right layout, add missing routes for dashboard widgets and module index.ui files 2026-05-26 15:52:45 +08:00
b841f79e13 fix: add dark mode background (#0B1120) to public/mainpage/index.ui 2026-05-26 11:57:10 +08:00
63ee4b324d fix: add local dev env vars and fix DB password format
- start.sh: add placeholder env vars (ALIPAY_PUB, BAIDU_SMS_*) for local dev
- conf/config.json: fix DB password to AES-encoded format
2026-05-26 09:27:32 +08:00
8260637bf2 bugfix 2026-05-25 15:18:19 +08:00
3cda907ba2 Add dashboard_for_sage module: menu submenu, sage.py import/load, build.sh module list 2026-05-24 14:25:00 +08:00
8b387ab71c bugfix 2026-05-23 11:13:51 +08:00
d557c7266b bugfix 2026-05-19 16:33:34 +08:00
497f143f26 bugfix 2026-05-19 16:14:10 +08:00
3791b65236 bugfix 2026-05-19 16:07:33 +08:00