郑龙捷
74dd97428f
feat: 接入运维真实数据与三角色权限链路
...
- 新增 model_deploy 与 model_operations 双库查询,支持模型列表、模型详情、单月监控结果和运维工作台真实接口。
- 关闭运维模块生产 Mock 数据,补充缺表/空数据降级、工作台空状态和首条纵向链路测试。
- 按业务团队、模型团队、管理员权限矩阵接入菜单、页面、操作按钮和后端接口权限校验,支持 business_team 角色。
- 更新工作台布局、深色欢迎卡片、全宽页面适配、顶部回退,以及权限分组展示。
- 新增架构实现基线、周目标完成情况和角色权限矩阵初始化 SQL 文档。
2026-09-02 15:02:47 +08:00
郑龙捷
6d044784ec
Merge origin/develop into feature/a-card-operations
2026-09-02 10:33:00 +08:00
郑龙捷
ad71259ba5
feat: add A-card operations frontend and backend foundation
2026-09-02 09:54:03 +08:00
xiaozhu
026cd085c6
update:原生确认框替换为自定义弹窗
2026-09-01 17:23:31 +08:00
xiaozhu
149e85cf10
fix:上传其他文件未自动更新
2026-09-01 16:30:19 +08:00
xiaozhu
ac0893cdb5
update:部分样式优化
2026-09-01 16:15:54 +08:00
xiaozhu
1532feedde
feat:账号设置+密码重置
2026-09-01 15:03:45 +08:00
tao.chen
64d33fb1d0
fix: loadChildren + loadScripts + loadDataResources
2026-09-01 11:29:07 +08:00
tao.chen
0deb2d205b
refactor: api.ts
2026-09-01 11:10:39 +08:00
xiaozhu
690de643ad
feat:脚本文件预览
2026-08-31 18:48:19 +08:00
xiaozhu
4ff0f344af
update:文件后缀、icon添加
2026-08-31 17:27:50 +08:00
xiaozhu
20eadb953b
update:新建用户可选角色、项目
2026-08-31 16:19:53 +08:00
xiaozhu
a4dd317828
update:添加分页、成员添加优化
2026-08-31 15:41:06 +08:00
xiaozhu
cc38bb1575
部分样式调整
2026-08-31 11:10:49 +08:00
tao.chen
9badd3597f
update: style
2026-08-28 12:00:14 +08:00
xiaozhu
80faf15359
updata:icon替换
2026-08-27 15:43:29 +08:00
xiaozhu
433c68998e
updata:admin.css替用
2026-08-27 15:07:25 +08:00
xiaozhu
213490f8ac
fix:input边框
2026-08-26 18:38:36 +08:00
xiaozhu
e326cc1a93
update:Dialog替换
2026-08-26 16:48:19 +08:00
tao.chen
d7f3db1cc4
refactor: replace Toast with Sonner
2026-08-26 14:06:12 +08:00
tao.chen
f99b543100
update: ScriptsPage.tsx
2026-08-26 12:01:52 +08:00
tao.chen
e79787fa61
update: unify
2026-08-26 11:10:29 +08:00
tao.chen
b0281a73a0
update: replace table component
2026-08-26 11:00:01 +08:00
tao.chen
32d3309ecf
update: replace table component
2026-08-26 10:47:54 +08:00
tao.chen
83190ea57e
update: use components
2026-08-26 10:37:06 +08:00
tao.chen
fe2fdb5ece
feat: add ui components
2026-08-26 10:17:53 +08:00
tao.chen
b9d14bbae7
update: role_code
2026-08-26 09:55:11 +08:00
tao.chen
6fe2d0b42e
feat: role CRUD page
2026-08-25 22:52:00 +08:00
tao.chen
38e763d08e
refactor: permission
2026-08-25 21:21:28 +08:00
tao.chen
e186e5e541
refactor: use shadcn sidebar
2026-08-25 20:20:14 +08:00
tao.chen
9294c7fd9f
update: use Button component in SchedulePage.tsx
2026-08-25 18:17:54 +08:00
tao.chen
4557fae037
fix: build error
2026-08-25 17:06:57 +08:00
tao.chen
3c79cd3a93
feat: add shadcn/ui
2026-08-25 16:58:23 +08:00
xiaozhu
12111de788
update:css样式拆分
2026-08-25 16:52:10 +08:00
tao.chen
76aa2dcb27
fix: notebook
2026-08-25 11:35:51 +08:00
tao.chen
799f4e2a09
Merge branch 'develop-2' into develop
2026-08-25 11:27:50 +08:00
tao.chen and Claude Fable 5
91031342b8
refactor(frontend): consolidate features & components into single tree
...
把 components/admin/* 和 components/platform/* 共 11 个文件
移到对应 features/<name>/ 下,components/ 只保留跨特性共享的
common/ 子目录(features/admin/* 之前和 components/admin/* 同名
共存,迫使 features/admin/AdminPages.tsx 出现 barrel,顺带消除了
barrel 副作用 CSS 丢失的隐患)。
新的目录约定:
- features/<name>/ = 特性模块,所有页面 / Modal / state / hooks
/ routes 都在内,无 components/<name>/ 并列
- components/common/ = 仅放 ≥2 个特性共用的 widgets
(Icon、Sidebar、Toast、Topbar、WelcomePanel)
改动:
- 11 文件 git mv (components/{admin,platform}/* → features/*)
- 8 文件的 Icon 相对路径 '../common/Icon' → '../../components/common/Icon'
- 2 文件补 admin.css side-effect import(UserManagementPage /
ProjectManagementPage 之前依赖 AdminPages barrel)
- 3 文件(引用方)更新 import:SystemAdminPage、DashboardRoute、
ScriptsPage
- 删除 features/admin/AdminPages.tsx barrel(无消费者)
- 删除空目录 components/admin、components/platform
验证:
- pnpm typecheck 通过
- pnpm build 通过,CSS 体积 35.11 kB 与重构前一致(无样式增减)
- routes.ts / routes/platform.tsx 路径未动,route id 不变
踩坑:
第一轮把 '../common/Icon' 错改成 '../../../components/common/Icon',
typecheck 报 11 个 Cannot find module。原因:features/admin/ 和
components/admin/ 都是 depth 2,'../../X' 在两边都解析到 app/X,
只有 '../X' 才需要多一层。正确改法是 '../../components/common/Icon'。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-25 11:27:26 +08:00
tao.chen
baa1e04af6
refactor: scriptWorkspaceStore.ts
2026-08-25 11:12:22 +08:00
tao.chen
2ed8d7b2cc
refactor: useSchedulesStore.ts
2026-08-25 10:48:29 +08:00
tao.chen and Claude Fable 5
80c92f7fd4
fix(frontend): restore login & auth-loading styles with Tailwind
...
提交 6b77018 把 frontend/app/app.css 从 112 行砍到 91 行,
删除了 .login-* 与 .auth-loading 选择器,但 login.tsx /
AuthContext.tsx 的类名没同步迁移,导致:
- /login 页面无样式(背景渐变、卡片阴影、输入框焦点环全部失效)
- AuthContext 初次加载时的旋转 spinner 无样式
两处都用 Tailwind 任意值 [..] 语法精确复刻原 CSS,精确到
原始色值(#1677ff、#eef5fb 等),不引入新的 CSS 文件,
不修改 app.css、路由配置或依赖。
Spinner 用 Tailwind 内置 animate-spin(1s)替代原 0.8s
keyframes auth-spin,视觉差异肉眼不可见,如需精确复刻可在
app.css @theme 加 --animate-auth-spin。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-25 10:35:27 +08:00
tao.chen
97c8fe212b
update: replace Icon with lucide-react
2026-08-25 09:59:59 +08:00
tao.chen
fbb4cc0f1b
feat: add lucide-react Icon
2026-08-24 18:41:49 +08:00
tao.chen
6b7701852f
refactor: style css -> tailwindcss
2026-08-24 18:34:43 +08:00
tao.chen
9ce0b106fa
update: init tailwindcss
2026-08-24 17:34:55 +08:00
tao.chen
95b588b96c
refactor: update artifact list style
2026-08-24 17:29:19 +08:00
tao.chen
b8246b1e9b
refactor: update artifact list style
2026-08-24 17:28:55 +08:00
tao.chen
f09c1912fa
chore: initialContent
2026-08-24 11:30:14 +08:00
tao.chen and Claude
b493907775
feat(scripts): 跨 owner 懒加载目录树 + 跨用户可见 workspace/public
...
修两个后端接口问题:
1) /api/v1/workspace-directories 返回为空,目录树结构消失
2) 同 workspace 内脚本/数据互相可见但默认排除 private
后端改动
--------
* list_scripts / list_resources / list_workspace_directories 新增
owner_user_id 可选 query 参数;缺省 = 当前请求者本人(scope 到
workspace/{me}/...),传值时 scope 到该 owner 的子树。前端根加载
默认只见自己一级,其他成员以折叠分组呈现。
* visibility 过滤统一:非 admin 请求者只返回 owner==me 或
visibility ∈ {workspace, public};admin 跳过。owner=me 含自己
的 private,owner=other 只剩其 workspace/public,排除他人 private。
* create_workspace_directory 两个分支 visibility 默认 'public'
(非 private),使跨 owner 目录树可见;响应新增 owner_user_id 字段。
* platform.list_members 鉴权从 system_admin_context 放宽为
系统管理员或该 workspace 活跃成员(让普通用户也能渲染同
workspace 成员名册,用于跨 owner 分组)。
* main.py 注册 platform 模块(随 list_members 改动补齐导入)。
* .env.example 同步 common/config.py 26 个字段。
前端改动
--------
* ScriptExplorer.memberScriptGroups 改由 members 列表播种分组,
display_name 取 members.display_name;inferredDirectories 现在按
owner_user_id 标记,统一跨 owner 目录渲染。删除脚本目录页头与
树分组标题的工作副本数量角标。
* WorkspaceTree 新增 ownerUserId 透传到 store.toggleExpanded;
仅"我"的分组 mount 时 auto-expand,他人分组默认折叠,展开才
调 loadOwnerGroup / owner-scoped loadScripts / loadChildren。
* scriptWorkspaceStore 引入 namespaced cache key
(ownerCacheKey = `${ownerUserId ?? me}:${path}`),loadedScriptPaths
/ loadedChildPaths / loadedOwnerGroups 全部按 owner 隔离;
toggleExpanded 用 loadPath === undefined 区分 group 头与真实
目录,修"他人子目录点击不触发接口"的 loadPath 前缀误判 bug。
* api.ts / AuthContext 透传 ownerUserId 给 listScripts /
listResources / listWorkspaceDirectories。
文档
----
* API.md: §3.2 创建目录 visibility 默认 public + 响应加 owner_user_id;
§3.3.1 GET directories 加 owner_user_id 参数 + 响应字段;
§3.4 GET scripts 改写为 owner 作用域 + visibility 过滤语义;
§五.1 GET data-resources 新增,同一套统一语义;
§7 intro 例外 — GET members 对系统管理员或 workspace 活跃成员开放。
* DEVELOP.md: Code layout 重写以反映 backend api/services/clients/
schemas 拆分 + schedule domain/scheduling/application/execution/
infrastructure 拆分 + common 子包(auth/storage/backends);
Configuration 系统补全 26 个 settings 字段;新增
"Owner-scoping + visibility (cross-owner browsing)" 小节;
Per-service dev 注释用 uv run 的源布局要求;Add a new DAG endpoint /
storage bucket 路径改为 backend/src/backend/api/* 与 services/*。
测试
----
* test_list_scripts_parent_path.py /
test_resources.py 补充 owner_user_id 参数化直接调用 + LIKE
前缀断言(workspace/{owner}/... 前缀)。
Co-Authored-By: Claude <noreply@anthropic.com >
2026-08-21 19:26:53 +08:00
tao.chen
d68055a96c
feat(scripts/resources): align list_scripts visibility with list_resources
...
69a9a48 把 data resources 的可见性从 list 恒真改成
workspace-wide + visibility 过滤 + admin 短路,但 scripts 端
没动。两端不对称,导致:
* 非 admin 调 list_scripts 走 user_relative_path →
workspace/{当前用户ID}/...,永远拿不到别人的脚本
* count_scripts 同样 user-scoped,dashboard "全部脚本"
只统计自己
* list_resources 响应没带 owner_display_name,data-only
owner 的目录名回退到 userId.slice(-6),显示不友好
修复:
* list_scripts / count_scripts 改 workspace-wide(新建
_build_list_scripts_workspace_descendant_prefix helper;
旧 _build_list_scripts_descendant_prefix 保留标 deprecated
避免破坏其它调用方);非 admin 追加
or_(owner_user_id = me, visibility in {workspace, public})
与 list_resources 完全对称;admin 短路
* resource_payload 加 owner_display_name 字段(与
script_payload 对称);list_resources SELECT 加
Users.display_name + outerjoin
* 前端 ScriptExplorer displayName 回退链:scripts 的
owner_display_name → data resources 的 owner_display_name
→ 本人 user.display_name → userId.slice(-6) 占位
;ResourceItem 类型同步加 owner_display_name?: string|null
存储物理布局仍是 workspace/{user_id}/...,仅读取侧
listing/count 跨 owner。
2026-08-21 14:06:45 +08:00
tao.chen
48fe49df3b
feat(scripts/data-resources): merge tree + add parent_path filter
...
- Backend: GET /api/v1/data-resources accepts parent_path; LIKE
'{ws_id}/%/{escaped}/%' AND NOT LIKE '{ws_id}/%/{escaped}/%/%' on
StorageObjects.object_key (workspace-wide, escapes _ and %, mirrors
list_scripts parent_path semantics). 13 new tests in
test_resources.py (helper unit / SQL compile / SQLite behavioral).
- Frontend: listResources gains parentPath arg, propagated through
WorkspaceBoundApi + AuthContext binding. WorkspaceTreeGroup title
count and ScriptExplorer header count now include dataResources.
memberScriptGroups backfills data-only owners so users with only
data resources still render a group. loadDataResources accepts an
optional parentPath, default empty preserves prior behavior.
2026-08-21 12:36:43 +08:00