Repository navigation
feat: refined console theme and complete admin visibility - #209
Merged
Merged
Conversation
…mation Console theme: shadcn-style light and Linear-style dark tokens with an indigo primary, refined component recipes, MiSans loaded at runtime from Xiaomi's font service (CSP allows font.sec.miui.com and cdn-file.hyperos.mi.com; no font files are shipped), one selection style in the account modals, tables that wrap instead of covering columns, icon-only row actions on pointer devices, restyled date inputs, and the upstream default columns in the accounts table. Admin visibility: every fork-added hiding from administrators is removed (Ops upstream messages and diagnostics, restored WS failure markers, last upstream error and cooldown text, verbatim account-job results and import reasons, verbatim connection-test errors, Codex proxy/routing details, audit bodies, retired plugins, release-acceptance keys, full model catalog, original settings errors). Downstream clients receive the same responses as before. Migration 262 widens account-job error_message to TEXT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Two user-requested changes shipped together: a refined console theme (approved page by page from real
previews), and the removal of every fork-added hiding of information from administrators ("管理员要看得到齐全的
信息"). Downstream API clients receive exactly what they received before. Net: 248 files, +9.7k / −2.0k lines.
1. Console theme (flat_theme_enabled)
selects, checkboxes/radios (forced-colors safe), switches, tables, badges, menus, dialogs, sidebar, KPI cards,
segmented controls; 0 text-contrast failures across 94 audited page states.
CSP
style-src+https://font.sec.miui.com,font-src+https://cdn-file.hyperos.mi.com; system fontsare the fallback.
data-table/data-columnhooks); icon-only row actions withtooltips on pointer devices (labels stay visible on touch); native date/time inputs restyled.
afterwards), all tags shown, quota badge next to the status badge, dates on two lines.
2. Admin visibility (audit: 45 fork-added hidings restored)
diagnostics), WS failures (lost markers restored), stream error chunks, model_not_supported, budget_exceeded,
reasoning recovery, image transport errors; refusal-rewrite evidence only on failed requests; client-facing
fixed messages unchanged.
extra.last_upstream_errorfor API-key/OAuth 401/403/429 (async, throttled, scheduler-neutral, noscheduling change) shown in the status column and details drawer; model cooldown upstream text.
preview names/reasons/conflicts/warnings; migration 262 widens job
error_messageto TEXT.headers shown (Authorization excluded).
cookies/STATE/identity ids in the fingerprint panel, real result codes, quality diagnostics readable by all
admins (grant unchanged).
read-only; release-acceptance keys visible read-only in admin views; full model catalog; original settings
errors; multi-captcha warning instead of silent normalisation; retired profit-control values read-only.
Data migration
admin_account_jobs.error_messageandadmin_account_job_items.error_messageVARCHAR(512) → TEXT(catalog-only change, idempotent, lock/statement timeouts). Applied locally on PostgreSQL 18.1 with all
migrations.
Verification
go build ./...,go vet -tags=unit ./...,go vet -tags=integration ./...,golangci-lint 2.13
./...→ 0 issues;vue-tsc --noEmit;vite build; full backend unit suite (two knownWindows-only failures unrelated to this change: CRLF instruction fixtures, flaky Ollama CAS test); full
frontend vitest (377 files, 2891 tests passed).
site owner.
🤖 Generated with Claude Code