@davoodmehraban89 / Factor-easy / commits / e91e7fb
Fork 0

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

docs(phase0): record dark-theme exact-main release and acceptance boundaries

davoodmehraban89 committed Oct 12, 2026 at 11:08 UTC e91e7fbb1ac52b867962dc1148c3f621c35614d1
1 file changed +8
PROJECT_STATE.md
+8
@@ -316,3 +316,11 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
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.
319 +
320 +
321 +### 2026-10-12 F0-06 dark-mode contrast — PROTECTED MAIN GATES & DEPLOYED / PHASE 0 OPEN
322 +- Owner's ongoing approved Phase 0 development continued as F0-06 isolated dark-theme usability slice. Legacy PR #57 was reviewed but **not merged**. Targeted PR **#92** implemented dark text/surface contrast for accounting panels, inputs, buttons, dropdowns and existing organizational shell, preserving light mode, shell geometry and underlying financial/data semantics. Source: `js/ux-hardening-r2.js` with cache key `20261012-phase0-dark-contrast-v1`, `scripts/phase0-dark-theme-contrast.spec.js`, static asset identity check and Quality workflow. Controlled browser checks use 4.5:1 normal-text contrast and confirm return to light mode.
323 +- Branch QA final head `59e396a17ec3bfd2a2baca50384248f741a981c2`: Quality `38218215989` **SUCCESS** (85/85 Chromium including two F0-06 tests, 3 disposable DB jobs, Golden accounting), Security `38218215992` **SUCCESS**. First version check `38217822837` failed because the old static contract hardcoded the previous asset key; that control was updated and clean tests repeated, not bypassed.
324 +- PR #92 merged by squash to protected `main` exact SHA **`745bdc847a3c2db22048d1d545da0fad0ae5cc67`**. On that SAME SHA: Quality **`38218505600` SUCCESS**, static job `114708817767` Chromium **85/85 PASS (51.1s)** + Golden/draft-posted safety and three disposable DB jobs; Security **`38218505535` SUCCESS**, Release gate **`38218679192` SUCCESS**, gated Pages **`38218725537` SUCCESS**. Concurrent duplicate Release `38218648536` CANCELLED and Pages `38218713325` SKIPPED, neither counted as success.
325 +- Independent read-only remote proof: authorized Windows desktop `DESKTOP-71SJ63M` GET to `https://factoreasy.ir/?phase0dark=20261012` includes `20261012-phase0-dark-contrast-v1` (**True**); fetched live `js/ux-hardening-r2.js?v=20261012-phase0-dark-contrast-v1` contains dark shell and secondary-button selectors (**True / True**). This proves deployed asset parity, **not** customer-authenticated visual experience.
326 +- **Acceptance:** F0-06 targeted contrast **RELEASED / CONTROLLED-QA-PASSED**; broader modal/RTL keyboard/import/export/dark-light owner UI and physical-device acceptance remains **UNVERIFIED**. F0-01/02/03/04/07 and F0-08 outstanding gates remain; **PHASE 0 OPEN / NOT OWNER ACCEPTED**. No customer data, ledger, Auth, RLS, roles, schema, Supabase migration, financial posting or paid-service changes. Rollback: revert PR #92, run gated Pages deploy, refresh cached bundle.