Repository navigation
设置页卡片化重设计:状态总览条与动效体系 - #107
Merged
Merged
Conversation
- 五个分组由扁平分隔改为 16px 圆角卡片,组头 52px、标题 15px,divided 道具随分隔线删除 - 页头新增状态总览条(账户健康、月额度剩余、服务状态、模型范围),文案全部复用分组已有摘要与余额字符串,零新增词条 - 行间 .5px 细线(有意推翻 2026-10-21「行间不画线」的决定:卡片内无分界时行与行粘连) - 动效:--cc-ease-out 统一曲线;开关 40×24;全部可点元素 :active 缩放 0.97;用量条 width 动画改为 scaleX;保存条 48px、出场快于入场、无回弹;卡片首屏 @starting-style + 40ms stagger;prefers-reduced-motion 下整页动效一刀切 - 折叠由 hidden 瞬切改为 grid-rows 动画(动效结束后 visibility:hidden,无障碍语义不变) 验证:typecheck 干净,全量测试 1129/1129,build 成功,dsh web --dump-config 加载验证通过。
- Command Code CLI 1.88.0 → 1.88.1:协议字符串集合、字面量计数与订阅/ZDR 表逐项相同,只同步版本常量。 - DSH 0.2.2-alpha.2 准入:engines.dsh、compatibility 与 34 个 peer/开发依赖改为 >=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-alpha.2 <0.2.3-0;Cordis/Schemastery 精确析取; engines.node 抬到 >=24.9(Node 22/23 不再支持),三个 workflow 同步到 24.9.0。 - 验证脚本适配 alpha.2:分析历史夹具改用 enter() + announce(),新增费用投影探针。 - 文档:CHANGELOG、README、引擎兼容、模型目录、对接说明、决策记录第 17 条与提交历史。
用量报告读到任一窗口超限时,按探测的同一口径给该密钥打冷却标记:有可信 重置时刻记为到期自动恢复的 cooldown,否则为 unknown;只打不清,401 禁用 的密钥不动。报告本来就要拉 /alpha/billing/credits,不增加任何请求。 此前标记只在真实请求被拒时写入内存,进程重启后丢失,自动模式会先选中卡片 上已显示「每周 100%」的账号并白撞一次拒绝。
- 五个分组由扁平分隔改为 16px 圆角卡片:组头 52px、组标题 15px、页标题 22px, 卡片内行间 .5px 细线;divided 道具随分隔线删除。 - 页头新增状态总览条 StatusStrip(账户健康、月额度剩余、服务状态、模型范围), 文案复用分组已有摘要与余额字符串,不新增词条;窄面板折为 2×2。 - 动效统一:可按元素 :active 缩放(0.97/小图标 0.95)、颜色与描边 150ms ease、 transform 走同一条 cubic-bezier(.23,1,.32,1);额度条满宽 translateX 保留圆角、 保存条 48px 无回弹、卡片 40ms 错峰入场、提示块下落淡入。 - 所有 :hover 收进 (hover:hover) and (pointer:fine) 块,触屏不留悬停色,校验失败 描边在块内压住普通悬停;prefers-reduced-motion 去缩放与位移、保留淡入。 - 分组与账户卡片展开收起保持瞬间切换;分组说明与下方内容留 12px。 - 由 tests/styles.test.ts 末尾四条用例锁定策略;lib/client.js 同步重建。
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.
摘要
设置页从扁平分隔改为卡片化布局,页头新增状态总览条,动效体系按
emil-design-eng的方法论统一;分组折叠保持瞬间切换。分支同时承载 v0.16.0 的发布准备(CLI 1.88.1 同步、DSH 0.2.2-alpha.2 准入、#105 自动模式修复),合并后直接发版。改动
divided道具随分隔线删除StatusStrip):页头展示账户健康、月额度剩余、服务状态、模型范围;文案全部复用分组已有的摘要与余额字符串,零新增词条;窄面板折为 2×2cubic-bezier(.23,1,.32,1)ease-out 走 transform/opacity,颜色与描边 150msease;开关 40×24;可按元素:active缩放(0.97/小图标 0.95);用量条与迷你额度条满宽translateX(保留圆角端、不触发重排);保存条 48px、出场快于入场、无回弹;卡片首屏@starting-style+ 40ms stagger;提示块从上方 4px 淡入:hover收进(hover:hover) and (pointer:fine)块(触屏不留悬停色),校验失败描边在块内压住普通悬停;prefers-reduced-motion去掉位移与缩放、保留淡入hidden瞬切(折叠太频繁,不加动画),aria-controls始终有效;分组说明与下方内容留 12px0.2.2-alpha.2准入(engines.node >= 24.9,双通道区间,Cordis/Schemastery 精确析取);自动切换账户的逻辑异常 #105 用量报告给满额账号打冷却标记验证
npm run typecheck退出码 0npm test1138/1138npm run build成功;lib/提交后重新构建git diff --exit-code -- lib/无差异tests/styles.test.ts末尾四条用例锁定「悬停块/按压缩放与 reduced-motion/只动 transform 与颜色/校验描边顺序」test:engine与test:install将在发版提交上按发布流程跑完整矩阵