phase: 93_theme_semantic_completion
All verification is complete. Final report: **Phase 93 — Theme semantic completion: FINAL VERIFICATION PASS — ALL GREEN** - Verified full implementation in tree: migration `0016` (8 nullable semantic columns, applied at head), 17-var `BUILTIN_COLORS`/`COLOR_FIELDS`/`effective_settings`, API validation, `#view-theme` State-colors fieldset (17 pickers), `theme.js` FIELDS/PAIRS (5→8), `.page-head` surface panel (6 shell views + doc-edit + shared.html; login card / document sticky header audited as already-surfaced), mock_llm `content: None` fix - Fixed 2 pre-existing defects (both fail identically on baseline `d4f38ad`, proven via worktree A/B): `test_nav_rename_sources` — expected nav tail missing the phase-91 "Theme" link; `test_stale_ui_copy` — now truncates `saved_chats` before/after (house `test_suggestion_chips` pattern) so the seed-chip contract is deterministic on the shared dev DB (owner's 22 saved chats triggered phase-80 last-3-questions) - Tests: `uv run pytest --cov=app --cov-report=term-missing` → **1868 passed, app/ 99%** (>90% ✓); `uv run ruff check .` → clean; `uv run pyright` → **0 errors** - E2E: dedicated `uv run pytest tests/e2e/test_theme_semantic_completion.py -v --no-cov` → **8/8 in isolation** (all-gray 17-color theme: zero residual color on saved-result/Stale/Revoked/Local/tool-call elements, text labels intact, gray heads non-transparent, pre-paint tag, Reset → byte-identical no-tag); 15 theme/header/nav/responsive suites green in isolation; full 85-file combined run: only the 2 fixed pre-existing failures + 1 combined-run artifact (`test_sync_upload_progress`, green in isolation) - Completion criteria: (1) monochrome E2E ✓ (2) default byte-identical, no `#bor-theme` tag ✓ (3) all page heads on solid surface ✓ (4) suite/coverage/lint/E2E green ✓ (5) phases 01–92 no behavior change ✓ (6) commit left to harness per protocol - Notable: cleaned stray uvicorn leftovers from prior implementation pass (owner's `--reload` dev server untouched); no deviations from the phase design - Next pending phase: `94_ls_tree_drilldown`
This commit is contained in:
+24
-3
@@ -843,16 +843,29 @@ class UiSettingsIn(BaseModel):
|
||||
brand: str | None = None
|
||||
brand_soft: str | None = None
|
||||
brand_ink: str | None = None
|
||||
# The 8 semantic state colors (phase 93 — B3 revised): the same
|
||||
# contract as the 9 identity colors (``null`` = back to the
|
||||
# built-in; ``#rrggbb`` is validated + lowercased by the API).
|
||||
ok_bg: str | None = None
|
||||
ok_ink: str | None = None
|
||||
err_bg: str | None = None
|
||||
err_ink: str | None = None
|
||||
err_line: str | None = None
|
||||
accent_bg: str | None = None
|
||||
accent_ink: str | None = None
|
||||
accent_line: str | None = None
|
||||
|
||||
|
||||
class UiSettingsOut(BaseModel):
|
||||
"""Effective UI settings (``GET``/``PUT /api/ui-settings`` response,
|
||||
phase 91, task 01).
|
||||
phase 91, task 01; 17 colors since phase 93).
|
||||
|
||||
All 12 values, all non-null strings: the resolver's
|
||||
All 20 values (3 strings + 17 palette colors — 9 identity + 8
|
||||
semantic state), all non-null strings: the resolver's
|
||||
DB-over-env / DB-over-built-in merge (B1), so the tab always shows
|
||||
the LIVE theme — a fresh (row-missing) deployment reports the env
|
||||
strings and the built-in palette.
|
||||
strings and the built-in palette (the semantic colors report their
|
||||
built-ins — the effective values, the NULL = built-in rule).
|
||||
"""
|
||||
|
||||
app_name: str
|
||||
@@ -867,3 +880,11 @@ class UiSettingsOut(BaseModel):
|
||||
brand: str
|
||||
brand_soft: str
|
||||
brand_ink: str
|
||||
ok_bg: str
|
||||
ok_ink: str
|
||||
err_bg: str
|
||||
err_ink: str
|
||||
err_line: str
|
||||
accent_bg: str
|
||||
accent_ink: str
|
||||
accent_line: str
|
||||
|
||||
Reference in New Issue
Block a user