Repository navigation
修复管理台 UX 矛盾:状态一致性、术语统一与交互对齐 - #12
Merged
Merged
Conversation
…he server - Model groups only offer routable pairs (binding, provider and model all enabled), flag stale members with a remove action, cap each group at 8, and roll back to the last accepted snapshot when a save is rejected. - Provider discovery matches bindings by upstream ID and offers to re-enable a disabled binding instead of binding it again. - Jev input mode labels come from the shared vocabulary (content is "完整内容" everywhere). - Log retention uses number inputs covering the full 0-3650 day range. - Model groups page moves to /admin/groups; /admin/pairs redirects.
…states - Usage rankings request the selected window, so every windowed figure on the page covers the same period; output TPS is labelled as 60 seconds. - The donut centre is labelled as the 2xx share, distinct from the server's request success rate; duplicated auto-routing and latency figures are removed in favour of model and binding catalogue counts and a Jev invocation gauge. - A failed health probe shows an unknown state instead of checking forever. - Empty token and routing breakdowns say there is no data instead of drawing 50/50 bars.
- Inbound keys are "推理密钥" everywhere (nav, title, table, drawer, error copy); a provider's upstream credential is "上游密钥". - "已停用", "提供商" and "指定模型" replace the mixed 已禁用/Provider/显式指定. - Default group options use the task group names; password hints state the 12-byte rule the validator applies. - Error descriptions no longer prepend a category boilerplate that repeated or contradicted the specific advice; a test now rejects repeated sentences.
- One in-app confirmation dialog replaces window.confirm and the inline settings-reset prompt; overlays now stack, so Escape and Tab only act on the topmost surface and a confirmation over a drawer stays usable. - Provider and log text filters run while typing, matching the model page; the log list ignores responses from superseded queries. - Provider rows show their status text like model rows; the redundant enable switch leaves the binding drawer, as it already left the provider drawer. - Deletes, unbinds, revokes and resets confirm success with a toast. - Revoked inference keys read "已撤销" and offer no rotate or revoke. - Non-deletable providers show a disabled delete with the reason. - The Jev card says when Jev is off that its settings do not apply yet, without locking the fields that must be filled before enabling it.
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.
修复管理台中界面状态与服务端不一致、同一概念多种叫法、同类操作交互不同的问题。按阶段分为 4 个提交,外加 1 个重新构建内嵌产物的提交。
状态与服务端一致
upstream_model_id判断是否已绑定。已停用的绑定显示"重新启用",不再显示"绑定"。/admin/groups,/admin/pairs重定向过去以兼容旧书签。adminPageShells和 OpenAPI 已同步更新。总览页
window,整页数据口径一致。输出 TPS 标注为近 60 秒。术语与文案
content模式在各处统一为"完整内容"(设置页原为"提取内容")。交互
window.confirm和设置页的内联重置确认。测试
npm run typechecknpm test:55 个通过npx playwright test:28 个通过,新增 8 个,覆盖分组可用性与回滚、旧路径重定向、已停用绑定识别、总览时间窗口、健康状态未知、推理密钥撤销、边输入边搜索、叠放遮罩的 Escnpm run build && npm run check:embedded-assetsgo vet ./...、go test ./...