This commit is contained in:
Your Name
2026-09-07 12:30:42 +08:00
parent d5164b7369
commit 9ef6eb8d67
369 changed files with 11733 additions and 0 deletions
@@ -0,0 +1,26 @@
# Reception shell typography reduction
Changed only reception-specific text sizing in `app/src/doctor_workstation/ui/shell.py`, plus the existing matching size assertions in `app/tests/test_reception_chrome.py`.
| Text | Previous | Updated |
| --- | --- | --- |
| Brand name | 20 px | 18 px |
| Brand subtitle | 14 px | 13 px |
| Navigation labels | 17 px | 15 px |
| AI assistant title | 18 px | 16 px |
| AI assistant CTA | 17 px | 15 px |
| Settings label | 17 px | 15 px |
| Assistant status metadata | 14 px | 13 px |
| Global search text | 17 px | 15 px |
| User menu name | 14 px | 13 px |
The 17 px custom-painted text near line 694 is the avatar initial, not navigation. It remains 17 px. AI tile lettering, shortcut hint, icons, colors, font families, font weights, margins, padding, borders, and every explicit geometry value are unchanged.
Validation:
- `QT_QPA_PLATFORM=offscreen .venv/Scripts/python.exe -m pytest tests/test_reception_chrome.py tests/test_shell_contract.py --basetemp artifacts/test-tmp/reception-smaller-chrome-20260905` — 36 passed. Pytest emitted one cache-write permission warning for its pre-existing `.pytest_cache`; test temporary files used the project-local path above.
- `.venv/Scripts/python.exe -m ruff check src/doctor_workstation/ui/shell.py tests/test_reception_chrome.py` — passed.
- Existing geometry assertions passed unchanged: sidebar 208 px, top bar 76 px, search at (234, 15) sized 384 × 44 px, AI card at (20, 695) sized 168 × 171 px, AI CTA height 46 px, navigation rows height 52 px and 58 px vertical stride, icons 20 × 20 px.
- Existing restoration tests verify original page fonts, application stylesheet and font, colors, chrome styles, icons, and effective widget sizes return when navigating to other pages. Minimum-window controls and sidebar collapse behavior also pass.
No files under packaging, global theme, reception page implementation, or distribution output were modified by this subtask.