Skip to content

feat(ui): implement DevDeck Light visual system - #7

Draft
XiaojuCH wants to merge 4 commits into
mainfrom
codex/devdeck-light
Draft

feat(ui): implement DevDeck Light visual system#7
XiaojuCH wants to merge 4 commits into
mainfrom
codex/devdeck-light

Conversation

@XiaojuCH

Copy link
Copy Markdown
Owner

Summary\n\n- implement the owner-approved DevDeck Light desktop shell with P2 Cool Scientific tokens\n- add Finding navigator with problem findings above healthy runtime checks\n- promote the evidence-backed primary finding with Current vs Required, configuration/terminal evidence, and Next step\n- preserve Preview 2 diagnosis, read-only, sanitizer, localization, and sharing behavior\n- add responsive 820/1040/1440 layouts, keyboard focus affordances, reduced-motion fallback, and compact status bar\n\n## Validation\n\n- npm test — 3 passed\n- npm run build — passed\n- cargo fmt --all -- --check — passed\n- cargo test --all-targets — 33 passed\n- cargo clippy --all-targets --all-features -- -D warnings — passed\n- npm audit --audit-level=high — 0 vulnerabilities\n- npm run tauri:build — release EXE, NSIS setup, and MSI produced\n- real Tauri Home shell launched and visually inspected at the 1040px baseline\n\n## Known limitation\n\nComputer Use was stopped by the user while the native project-folder dialog was open, so the real DevDeck Light runtime-mismatch screenshot and full Windows state matrix still need a follow-up capture before merge. Existing README screenshots were intentionally not replaced with non-equivalent or prototype imagery.\n\nCloses #6\n\nKeep this PR in Draft; do not merge.

XiaojuCH and others added 4 commits August 22, 2026 01:16
…ort-fill, responsive IA, UI Scale toggle

Root cause fixed: broken vertical scale hierarchy where semantic labels,
badges and controls were shrunk to 9-11px to fake density.

Phase 1 — Typography normalization
- html { font-size: 15px } rem anchor; body switches to 1rem
- All semantic/interactive text converted to rem (0.7–1.47rem range)
- Minimum readable size: 0.7rem (10.5px) for badges/technical detail
- Key fixes: severity badge 9px→0.73rem, navigator tags 9px→0.7rem,
  overview-row labels 9px→0.73–0.8rem, status bar 10px→0.73rem,
  runtime-label 10px→0.73rem, diagnosis-copy h2 14px→1rem
- Decorative px preserved: borders, dot indicators, icon sizes

Phase 2 — Control sizing
- Primary CTA (复制给AI): min-height 32px, padding 0 14px, font-weight 600
- Secondary toolbar buttons: min-height 28px
- Lang toggle: min-height 28px, min-width 40px
- Advanced-report nested buttons: min-height 24px
- navigator-symbol box: 18px→20px

Phase 3 — Viewport-filling desktop layout
- .app-shell: min-height→height 100%, overflow: hidden
- .results: flex: 1 1 0, min-height: 0, display flex column
- .results-layout: flex: 1 1 0, min-height: 0
- .finding-navigator + .result-detail: overflow-y: auto, min-height: 0
- .statusbar: flex: 0 0 auto, margin-top: 0 (was 17px)
- Both panes now scroll independently; no blank space at fullscreen

Phase 4 — Responsive IA
- 1440px+: sidebar 288px, context-grid 1.4fr / 0.6fr
- 1900px+: three-column layout (sidebar | main | context rail 300px)
  overview-panel promoted to grid-column 3 via display:contents on
  context-grid; no fake content added
- ≤820px: single-column compact unchanged; no sub-12px text remains
- ≤620px: scale-picker hidden

Phase 5 — User UI Scale toggle
- CSS zoom: var(--ui-zoom, 1) on html element
- Four levels: 90 / 100 / 110 / 125 %
- Segmented .scale-picker in topbar-meta
- localStorage key 'ec-ui-zoom' for persistence across restarts
- Applied via useEffect → document.documentElement.style.setProperty

Build: frontend ✓ (vite 725ms), Tauri release ✓ (NSIS + MSI)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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