Skip to content

style(ui): console text follows official sub2api - #222

Merged
HTExplicit merged 6 commits into
mainfrom
ui/text-official
Oct 7, 2026
Merged

HTExplicit merged 6 commits into
mainfrom
ui/text-official

Conversation

@HTExplicit

@HTExplicit HTExplicit commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

The console theme uses the official Sub2API system font stack and normal text scale, while keeping the current controls, layout, surfaces, accent and stacked account table.

The original owner-approved comparison on 2026-10-01 found that smaller Geist/MiSans type, mixed CJK/Latin stroke weights and widespread monospace were making dense pages harder to read. This update keeps that typography decision and rebases it onto the current main branch.

  • Remove shipped Geist files and the MiSans runtime stylesheet loader. Keep monospace for identifiers and code.
  • Use upstream body 14/20 and secondary 12/16 sizes, matching weights and semantic text classes. Clamp normal secondary tones to at least 4.5:1 on their composed backgrounds, including selected dark rows.
  • Preserve newer removals and the current account controls. Replace obsolete priority-control token references and keep ordinary TLS table empty values readable in dark mode.
  • Let capacity groups wrap between whole badges and the long English upstream-rate label wrap at spaces. All account columns remain available and fit the verified 1280, 1440 and 1920 widths.
  • Normalize the audit checker to the repository's declared LF format; its AST and all normalized source content are unchanged.

Validation on the final frontend tree:

  • 13 account-name wrapping tests and 26 public-settings/app-store tests passed.
  • CSS parsing and diff checks passed; no unresolved UI/theme token references or font-loader references remain.
  • Local fake-data preview on Windows Chrome 154: accounts, dashboard and settings in Chinese/English and light/dark themes at 1280/1440/1920. All 36 after states meet at least 4.56:1 for ordinary DOM text and input placeholders; selected/hovered dark account rows meet 4.716:1.
  • Account table overflow is zero in all 12 after cases. Four durable full-viewport 1280 before/after account images were visually reviewed; loaded dashboard/settings examples are also retained.
  • Dashboard layout was verified after a fresh navigation and settled canvas paint at each width; both before and after stay within viewport bounds.
  • The before preview blocks external font resources, so its CJK font fallback is a local comparison limitation.

This verification uses invented local fixtures. Production rollout and the required integration CI are coordinated separately.

Codex and others added 6 commits October 7, 2026 16:00
The console theme's text now follows how official sub2api renders it, while
keeping the console layout, surfaces, brand accent and stacked tables:

- Font: the official system-ui stack (Microsoft YaHei UI on zh-CN Windows),
  no web fonts; Geist / Geist Mono files and the runtime MiSans stylesheet are
  removed. Mono only for identifiers and code (official stack + CJK fallbacks).
- Sizes and weights: official text-sm 14/20, text-xs 12/16; headers 12/500
  (usage tables) or 14/500 (TablePageLayout tables), uppercase only on headers
  and sidebar section titles; KPI values 20/700; no negative tracking.
- Colour: class-driven official Tailwind greys (#111827 / #374151 / #4b5563 /
  meta #616977; dark #f3f4f6 / #d1d5db / #a4abb6), meta clamped to 4.5:1 on
  every neutral fill; official figure and tag colours return (cost, cache,
  account cost, latency, group / type / billing tags). The two-tone data text
  roles are deleted; dark selected rows lift their meta greys.
- Layout: no horizontal overflow in Chinese at 1280-1920 (API key and user
  wrap recipes extended, accounts label gutter 50/56px, status header width);
  English TablePageLayout headers 12px and wrapping, recipes below 1680px.
- Accounts name column measures names at 14px.

Owner request 2026-10-01: text still hard to read, follow official sub2api.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HTExplicit added a commit that referenced this pull request Oct 7, 2026
The deployment path still carried retired acceptance, rollback, resource-request and plugin-era controls, while console typography needed to be brought up to date with the current upstream style. This integrates the remaining authorized takeover work after the reasoning repair in #252.

- Integrates #253, #254, #255 and #222 while retaining their commit ancestry. Removes stale release scaffolding and deployment template settings; preserves every existing migration SQL file.
- Production Deploy accepts only `release_tag` and `confirmation=DEPLOY`, sends `deploy <immutable-image>`, and retains standard OCI provenance and fixed SSH/environment controls. Both automation callers and historical-run deduplication match it.
- Migration 274 deletes only validated, soft-deleted release-acceptance keys and their usage/dedup rows, removes the two acceptance columns, and leaves ordinary keys and diagnostic logs. The matching application no longer reads those columns. Older images cannot be deployed after 274; failures require a forward fix.
- Uses upstream system fonts, sizes and readable semantic text colors without dropping table columns. Fixes the TLS empty-state color and whole-badge/word wrapping, and normalizes the audit helper's LF bytes without semantic changes.
- Removes the image-side skill-registry directory after the host mount and retired runtime configuration were removed.

Validation: reuse the component branches' directly affected tests and source-identical UI matrix; normal required checks run on this final integration tree. The only integration conflicts were the migration CI selector and retired documentation/notices; the resolved selector retains the new PostgreSQL migration fixture and live migration tests. All existing migration SQL is unchanged. Entry-point Bash syntax and diff checks pass.

The simplified host tool has completed a successful unchanged-image `.12` redeploy, preserving environment/resources and other containers. Host config retirement also passed with a new complete backup retained. UI localhost fake-data validation sampled 7,728 normal text/input/placeholder elements across 36 after states, with no sample below 4.5:1; account tables fit at 1280/1440/1920 in both languages/themes. Before screenshots block external fonts and show their fallback stack. No real model call or live upstream ID-less-item acceptance test was performed.
@HTExplicit
HTExplicit merged commit a6b3324 into main Oct 7, 2026
18 checks passed
@HTExplicit
HTExplicit deleted the ui/text-official branch October 7, 2026 08:45
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