Skip to content

feat(console): tidy account card layout - #563

Merged
caigee-cmd merged 4 commits into
mainfrom
feat/card-ui-improvements
Nov 20, 2026
Merged

caigee-cmd merged 4 commits into
mainfrom
feat/card-ui-improvements

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

Reduces repetition and visual noise on the account card.

  • Header: the tag shows only the region (国内版 / 国际版); the full provider label moves to a tooltip. The identity line shows the first 8 characters of the UID with a copy button; the full ID stays in the tooltip.
  • Runtime strip: drops the "运行状态" label and the duplicated state text on the right, so the state appears once, in the header Chip. Healthy accounts render the 12 segments at low contrast; warning and danger tones keep full colour.
  • Quota: reads as remaining throughout: 剩余 128 credits on the left, 3.7k / 3.8k · 97% on the right. Meter colour thresholds are unchanged.
  • Check-in: status and the daily switch are merged into one line without the separator, pinned to the bottom of the content (mt-auto), so stretched grid cells no longer leave a gap.
  • Footer: one row with refresh, auth, edit, and more, all ghost. Models, model cooldowns, check in now, check-in records, export, and delete move into the More menu. A warning dot on More shows when any model is cooling down.
  • New i18n keys in both locales: checkinDaily, regionCN, regionGlobal.
  • Changelog fragment: changelog/unreleased/account-card-layout.md.

Frontend only; no backend changes.

Validation

  • npm run lint: no warnings in changed files (existing warnings elsewhere are untouched).
  • npm run build and npm run sync: pass. internal/webui/static was regenerated from the merged source after merging main (feat(provider): add MiniMax Code #555), so the hashed bundle matches.
  • go build ./...: pass.
  • Ran locally in Docker against the existing data volume; container healthy.

- show the state once in the header chip; dim the runtime strip when healthy
- read quota as remaining, with used/total and percent on the right
- region-only header tag, short UID with copy button
- merge check-in into one line pinned to the card bottom
- keep the footer on one row; move models, cooldowns, check-in, records,
  export and delete into the More menu
…ents

# Conflicts:
#	internal/webui/static/assets/CartesianGrid-C7T8HXK0.js
#	internal/webui/static/assets/CartesianGrid-DaumKfTu.js
#	internal/webui/static/assets/CartesianGrid-eSI9aCiz.js
#	internal/webui/static/assets/CostChart-6cqwwJ6h.js
#	internal/webui/static/assets/CostChart-DNG2VkJu.js
#	internal/webui/static/assets/CostChart-bIckh8_5.js
#	internal/webui/static/assets/LiveSparkline-BZAREtAP.js
#	internal/webui/static/assets/LiveSparkline-BukiRWJz.js
#	internal/webui/static/assets/LiveSparkline-IqYklHcO.js
#	internal/webui/static/assets/TrafficChart-BRIQq-2I.js
#	internal/webui/static/assets/TrafficChart-CAX_ltfB.js
#	internal/webui/static/assets/TrafficChart-DSZPxW0U.js
#	internal/webui/static/assets/index-C_UW7h27.css
#	internal/webui/static/assets/index-Cxv2WAIt.css
#	internal/webui/static/assets/index-DggedczB.css
#	internal/webui/static/assets/index-fj0jyJpQ.js
#	internal/webui/static/index.html
# Conflicts:
#	internal/webui/static/assets/CartesianGrid-BxplQubZ.js
#	internal/webui/static/assets/CartesianGrid-DaumKfTu.js
#	internal/webui/static/assets/CartesianGrid-SvyXHsAo.js
#	internal/webui/static/assets/CostChart-BRQEkWGv.js
#	internal/webui/static/assets/CostChart-DYHVaXM_.js
#	internal/webui/static/assets/CostChart-bIckh8_5.js
#	internal/webui/static/assets/LiveSparkline-79bWPac6.js
#	internal/webui/static/assets/LiveSparkline-CRQDoCnV.js
#	internal/webui/static/assets/LiveSparkline-IqYklHcO.js
#	internal/webui/static/assets/TrafficChart-CAX_ltfB.js
#	internal/webui/static/assets/TrafficChart-CKZk22Mo.js
#	internal/webui/static/assets/TrafficChart-DvV96E-_.js
#	internal/webui/static/assets/index-BMjLpO9U.css
#	internal/webui/static/assets/index-C_UW7h27.css
#	internal/webui/static/assets/index-CnWDo6rp.css
#	internal/webui/static/index.html
@caigee-cmd
caigee-cmd merged commit 67d1e2d into main Nov 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant