Adopt the DESIGN.md constitution and land the four-phase UI redesign (gitlinks) #107

Merged
weichen merged 9 commits from feature/ui-tokens-v3 into main 2026-10-01 02:00:49 +00:00
Owner

Why: 落地已批准的前端重设计方案(八项决策见任务卡),并把该设计风格沉淀为本项目长期指导:根 DESIGN.md(四原则:美观/现代/简洁/易用 → 令牌表/字号标尺/圆角层级/动效配方/组件范式/IA 原则/禁止清单)+ AGENTS.md UI 门禁(生成/修改 UI 先读宪法,违规视为设计系统缺陷)+ 双子仓守护测试(棘轮拦截裸色值/私有 keyframes/行内字号/<details>),保证后续界面风格统一不割裂。

四阶段:①立宪+视觉 v3(Zai Dark/Light 令牌、字号标尺、面板化三栏、单色主按钮、MotionKit、Collapsible);②IA 对话优先 + AdminZone 系统管理全屏分区(管理员专属);③工件收敛(唯一预览入口/单下载/去双层窗);④对话流 ToolBlock/Collapsible 迁移/扫光计时。计划偏离(四阶段同分支按序提交)已在任务卡授权节声明。

Evidence:

  • precheck READY(R0=0be23f9a4d);task-sync [synced] sync_base=3108a27 tested_head=6b78db5(同步记录见任务卡表格)
  • 同步后正式验收 make test:go core/backend/agent-command 全 ok(21 包);frontend vitest 39 passed;ui vitest 68 passed;frontend tsc -b/build 干净
  • 会话期间主线合入 CF3(#22/#23)已同步进本分支并把新代码归一到令牌体系

Impact:

  • gitlink:Agent-System-UI → #23、Agent-System-Frontend → #24(合并顺序:先两子仓后本 PR;子 PR 合入后如 gitlink 需对齐合并提交,将按 collaboration 规则再 sync)
  • 新增 DESIGN.md;AGENTS.md 增 UI 门禁节;任务卡 .task/feature-ui-tokens-v3.md 随分支合入
  • 后端契约零改动

Refs: Agent-System-UI PR #23;Agent-System-Frontend PR #24。

Why: 落地已批准的前端重设计方案(八项决策见任务卡),并把该设计风格沉淀为本项目长期指导:根 DESIGN.md(四原则:美观/现代/简洁/易用 → 令牌表/字号标尺/圆角层级/动效配方/组件范式/IA 原则/禁止清单)+ AGENTS.md UI 门禁(生成/修改 UI 先读宪法,违规视为设计系统缺陷)+ 双子仓守护测试(棘轮拦截裸色值/私有 keyframes/行内字号/`<details>`),保证后续界面风格统一不割裂。 四阶段:①立宪+视觉 v3(Zai Dark/Light 令牌、字号标尺、面板化三栏、单色主按钮、MotionKit、Collapsible);②IA 对话优先 + AdminZone 系统管理全屏分区(管理员专属);③工件收敛(唯一预览入口/单下载/去双层窗);④对话流 ToolBlock/Collapsible 迁移/扫光计时。计划偏离(四阶段同分支按序提交)已在任务卡授权节声明。 Evidence: - precheck READY(R0=0be23f9a4d);task-sync [synced] sync_base=3108a27 tested_head=6b78db5(同步记录见任务卡表格) - 同步后正式验收 make test:go core/backend/agent-command 全 ok(21 包);frontend vitest 39 passed;ui vitest 68 passed;frontend tsc -b/build 干净 - 会话期间主线合入 CF3(#22/#23)已同步进本分支并把新代码归一到令牌体系 Impact: - gitlink:Agent-System-UI → #23、Agent-System-Frontend → #24(合并顺序:先两子仓后本 PR;子 PR 合入后如 gitlink 需对齐合并提交,将按 collaboration 规则再 sync) - 新增 DESIGN.md;AGENTS.md 增 UI 门禁节;任务卡 .task/feature-ui-tokens-v3.md 随分支合入 - 后端契约零改动 Refs: Agent-System-UI PR #23;Agent-System-Frontend PR #24。
weichen added 8 commits 2026-09-30 19:33:01 +00:00
Why: The approved frontend redesign requires a durable design constitution
so future UI work stays consistent (user directive: make this project's
standing design guidance, four principles: beautiful/modern/concise/usable).
DESIGN.md encodes the Zai-calibrated rules (surface ladder, type scale,
radius nesting, MotionKit recipes, ToolBlock contract, IA principles) and
AGENTS.md adds a mandatory UI gate; submodules land phase 1 (tokens v3,
MotionKit, Collapsible, panel layout, mono primary buttons).
Evidence: make test in this worktree -> frontend 38 passed (incl. new
host design-guard ratchet), ui 61 passed (incl. collapsible + design-guard),
go core/backend/agent-command ok. precheck READY at R0 0be23f9a4d.
Impact: gitlinks advance to Agent-System-UI/Agent-System-Frontend
feature/ui-tokens-v3 heads; AGENTS.md gains a UI section; no backend or
contract changes.
Refs: session-approved redesign plan v2 (8 decisions recorded in task card).
Why: Land phase 2 of the UI redesign in the parent repo: admin-only
full-screen system management, conversation-first sidebar, role-aware
workspace shortcuts.
Evidence: frontend submodule commit on feature/ui-tokens-v3; tsc -b and
38 vitest tests pass in the submodule; combined make test re-run recorded
at phase boundaries in the task card.
Impact: modules/frontend gitlink moves; no API or contract changes.
Refs: task feature/ui-tokens-v3.
Why: Land phase 3 of the UI redesign in the parent repo.
Evidence: frontend submodule commit on feature/ui-tokens-v3; tsc -b and
38 vitest tests pass; task card records the runs.
Impact: modules/frontend gitlink moves; no API changes.
Refs: task feature/ui-tokens-v3.
Why: Land phase 4 of the UI redesign in the parent repo: ToolBlock chat
contract, Collapsible migration of all folds, live sweep with worked-time,
and the honest in-progress input hint. Completes the four-phase plan on
this branch (deviation recorded in the task card).
Evidence: combined make test -> go core/backend/agent-command ok, frontend
39 vitest passed, ui 66 vitest passed; tsc clean in both submodules.
Impact: modules/ui and modules/frontend gitlinks move to their
feature/ui-tokens-v3 heads; task card records results and remaining items.
Refs: task feature/ui-tokens-v3.
Why: Submodule branches merged their origin/main (CF3) and were pushed;
record the new heads so the parent sync merges cleanly.
Evidence: submodules green post-merge (ui 68 / frontend 39 tests, tsc
clean); parent task-sync re-run follows this commit.
Impact: gitlinks only.
Refs: task feature/ui-tokens-v3.
Record the sync checkpoint
ci / test (pull_request) Failing after 1m31s
e50426e9f2
weichen added 1 commit 2026-09-30 19:33:25 +00:00
Record PR #107 as the task master record
ci / test (pull_request) Failing after 31s
f8af2f1ccb
Why: The task card requires the PR link as its master record once the
PR exists (delivery workflow); sub-PR numbers recorded for merge order.
Evidence: PRs created via Gitea API — UI #23, Frontend #24, Dev #107.
Impact: task card only.
Refs: task feature/ui-tokens-v3.
weichen merged commit e4b15fc7a0 into main 2026-10-01 02:00:49 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Dev#107