سامانه صدور فاکتور و حسابداری

docs(phase0): record F0-06 theme controlled QA, limits and test evidence

davoodmehraban89 committed Oct 12, 2026 at 11:01 UTC 59e396a17ec3bfd2a2baca50384248f741a981c2
1 file changed +7
PROJECT_STATE.md
+7
@@ -309,3 +309,10 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
309 - **Bounded implementation:** add controlled Playwright dark-mode contrast/restore regression to required Quality suite, verify before/after computed color contrast (WCAG normal-text 4.5:1 where appropriate); change theme styles only if failure reproduced; bump `index.html` bundle version; run static/GitHub Quality+Security, merge reviewed PR and verify exact protected-main release. Protect ordinary light theme and previously published printable invoice. No real tenant/browser, physical device screenshot, or owner visual acceptance is implied by controlled tests.
310 - **Restrictions:** no Auth/RLS/roles/schema, production financial data/postings, migration, financial cutoff, account creation, external costs, or unreviewed #57/#39/#40 merges. Rollback: targeted PR revert and Pages gated redeploy. **Phase 0 remains OPEN** for F0-01/02/03/04/07 and owner F0-06 UI review.
311 - **Status:** SPECIFIED / REGRESSION AND SOURCE REVIEW IN PROGRESS.
312 +
313 +
314 +### 2026-10-12 F0-06 dark-mode contrast targeted fix — PR QA PASSED / REAL OWNER VISUAL OPEN
315 +- **Reproduced from source:** `js/ux-hardening-r2.js` original dark class set light `--text` but left `.accordion-item` white, `.btn-secondary` pale, and `.module-panel` white, risking unreadable text and non-dark shell; old unmerged PR #57 was reviewed as design reference but **not merged**. No structural sidebar/nav/scroll changes made.
316 +- **Implemented in independent branch `qa/phase0-f006-dark-contrast-20261012`:** dark CSS overrides for card/accordion, secondary controls, form input/placeholder and disabled controls, table, combobox and module shell surfaces; retained light mode. `index.html` references `js/ux-hardening-r2.js?v=20261012-phase0-dark-contrast-v1`. Mandatory Quality includes `scripts/phase0-dark-theme-contrast.spec.js` with two real Chromium assertions (4.5:1 normal text contrast for dark accordion/button/input/shell and healthy return to light theme). `scripts/ux-hardening-r2-check.mjs` version and invariants updated; no finance, account, Auth, RLS, roles, schema, SQL or runtime navigation geometry change.
317 +- **Verification:** Initial PR static-quality attempt `38217822837` failed because an existing static contract still expected `20261011-combo-keyboard-f2-v5` bundle; fixed that contract without bypassing a test, then retested branch head `176b5e42f4a26266b61c7dcd75df2803b315f695`. Final tested head Quality **`38217926742` SUCCESS** (static job `114706936848`, **85/85 Playwright Chromium PASS, 52.2s**, both F0-06 tests passing; JS syntax 55 modules/52 MJS, Golden accounting, draft/posted invariants and three disposable database jobs PASS). Security **`38217926669` SUCCESS**, CodeQL and release safety; dependency review skipped (graph disabled).
318 +- **Acceptance classification:** Targeted theme contrast = **IMPLEMENTED + CONTROLLED_QA_PASSED** on branch. Owner-authenticated visual/browser acceptance of full F0-06 (RTL wheel/scroll, dark/light screens, all save/delete/import/export) is **NOT VERIFIED**; Phase 0 remains **OPEN**, all F0-01/02/03/04/07 gates unchanged. Next: finalize documentation-only branch updates, retest exact PR head, merge if gated, verify exact protected-main Quality/Security/Release/Pages + actual published JS version; do **not** call F0-06 or Phase 0 fully owner-accepted. Rollback targeted PR and gated redeploy.