411 Commits

Author SHA1 Message Date
aa66ba5fc3 bugfix 2026-06-12 13:15:23 +08:00
0fe1fbbff4 fix: rbac users CRUD - fix typos in load_path, add enable/disable user paths 2026-06-11 16:57:03 +08:00
3d289d52f5 bugfix 2026-06-11 16:18:59 +08:00
176d147631 feat: register /llmage/v1/pricing route 2026-06-11 15:17:32 +08:00
7870e5351c bugfix 2026-06-10 14:42:45 +08:00
a395bb9583 bugfix 2026-06-09 16:16:01 +08:00
05f2138366 bugfix 2026-06-09 16:13:50 +08:00
84b949713b bugfix 2026-06-09 15:59:35 +08:00
7d5c7bb798 fix: API Key管理菜单移到endif后, 所有登录用户可见(customer+owner) 2026-06-05 11:47:51 +08:00
c008056184 feat: 主菜单添加系统权限管理(角色/权限/角色权限CRUD), 仅owner可见 2026-06-05 11:45:49 +08:00
397dbb67d3 feat: apikey菜单项移至所有登录用户可见,不再限制customer.admin 2026-06-05 11:44:33 +08:00
0761c9d643 bugfix 2026-06-05 08:42:15 +08:00
b2bb281559 feat: set_role_perm.py 支持 SAGE_RBAC_DB 环境变量指定目标数据库
解决独立应用(如CMS)的RBAC数据库不匹配问题:
- set_role_perm.py 原来硬编码 'sage' 数据库
- 独立应用 get_module_dbname 返回自己的数据库(如 ocai_cms)
- 导致写入 sage 但读取 ocai_cms,权限检查失败
- 现在通过 SAGE_RBAC_DB 环境变量指定,默认仍为 sage
2026-06-03 16:59:44 +08:00
3ec2798abb feat: add RBAC permission for /bricks/css/api_doc.css (any) 2026-06-02 20:37:20 +08:00
477076064e refactor backup_api.sh: auto-read config.json, discover all modules, decrypt password via RC4 2026-06-01 22:36:11 +08:00
a8652c326f fix: 定价管理菜单直接进入pricing_program CRUD,跳过index.ui 2026-06-01 15:55:18 +08:00
9bda2bcaeb bugfix 2026-06-01 15:22:22 +08:00
4aaf6a334d refactor: 简化上位系统管理菜单,只保留上位系统和数据IO 2026-05-31 15:20:18 +08:00
ba3769856c feat: 添加上位系统管理菜单(uapi) 2026-05-31 15:11:46 +08:00
09ac4660d7 fix: 修正供应商管理菜单指向supplychain模块 2026-05-31 15:08:19 +08:00
39e597755d feat: add supply chain menu (provider, reseller) to non-customer sidebar 2026-05-31 15:01:36 +08:00
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
9855eb7ba7 fix: remove AliSMS override of sms_engine, let smssend module handle SMS 2026-05-29 11:12:08 +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
ec33e43971 feat: add cpcc RBAC permissions to load_path.py (55 entries) 2026-05-28 15:34:24 +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