@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 487471f
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 18:15 UTC

docs(phase0): archive F0-06 live dark-theme release evidence (#93)

* docs(phase0): record dark-theme exact-main release and acceptance boundaries * docs(phase0): update F0-06 row with verified main gates and live asset

davoodmehraban89 committed Oct 12, 2026 at 11:11 UTC 487471fe9154ff7b94fab56335ffeb000494c72a
2 files changed +9 -1
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.
docs/FINORA_PHASE0_ACCEPTANCE_REGISTER_2026-10-12.md
+1 -1
@@ -24,7 +24,7 @@ Status definitions: **CONTROLLED QA PASS** = actual Chromium or isolated tests w
24 | **F0-03** · Invoice lifecycle | `scripts/phase0-invoice-persistence.spec.js` passes **2/2** on mock RPC: save→reload→edit→print, retry without duplication; no ledger posting | **CONTROLLED QA PASS; real persistence UNVERIFIED** / P0 open | Only separately approved isolated account/test scope: actual server save/reload/edit/print and reconcile duplicate count; never post fake accounting in production. Commerce/QA. |
25 | **F0-04** · Print | Owner hardcopy/photo reproduced pale diagonal `پیش‌نویس — غیرقطعی` overlay on existing goods/services invoice; narrowly removed in PR #90; draft and pro-forma Chromium checks added, accounting state unchanged | **FIX RELEASED + CONTROLLED QA PASS; OWNER REPRINT UNVERIFIED** / P0 open | On the deployed PR #90 code, owner still checks a saved draft/ordinary sale invoice and purchase/pro-forma print: watermark absent, all rows/totals/dates visible; real printer/PDF and taxpayer-specific semantics are separate. Print QA. |
26 | **F0-05** · Large selectors | `scripts/phase0-selector-stress.spec.js`, **1,208 synthetic products + 1,206 persons** passed 2/2; keyboard/Persian/metadata covered | **CONTROLLED QA PASS for products/persons; real catalog and other high-volume selectors UNVERIFIED** / P1 open | Owner tenant/real workstation test plus assess account/project/contract selectors where applicable; measure interactive latency. UX/Perf. |
27 -| **F0-06** · Modal, keyboard, RTL, themes | Controlled modal/dashboard and F2 regressions remain green. Focused dark contrast PR #92: real Chromium computed-color tests verify dark accordion, buttons, input and organizational shell at **>=4.5:1** contrast and successful return to light theme; PR head Quality **38217926742** passed **85/85 Chromium**, 3 disposable DB jobs + accounting Golden; Security **38217926669** succeeded. | **DARK CONTRAST CONTROLLED QA PASS; remaining controls and owner visual review UNVERIFIED** / P1 still open | Owner preview of dark/light account, modal and invoicing screens; save/delete/import/export keyboard and RTL visual ownership with redacted screenshots; full F0-06 sign-off remains outstanding. UI/QA. |
27 +| **F0-06** · Modal, keyboard, RTL, themes | Targeted dark contrast PR **#92** released to protected main `745bdc847a3c2db22048d1d545da0fad0ae5cc67`; exact SHA Quality **38218505600** (**85/85 Chromium**, including two dark/light contrast tests, 3 disposable DB), Security **38218505535**, Release **38218679192**, Pages **38218725537** all SUCCESS. Remote read-only HTTP confirms updated live JS theme bundle. | **DARK/LIGHT CONTRAST RELEASED + CONTROLLED QA PASS; broader UI and owner visual acceptance UNVERIFIED** / P1 open | Owner dark/light screen review in authenticated session, keyboard/modal/RTL scroll ownership and critical save/delete/import/export negative-path tests. UI/QA. |
28 | **F0-07** · Access and release safety | GitHub Security PASS; Supabase 21+3+1 advisor results | **VERIFIED READ-ONLY metadata; dual-user tenant/RLS proof UNVERIFIED** / P0 open | Independent role/tenant negative E2E with authorized second identity, strict no-write safe plan; formal Phase 1 security audit. Security. |
29 | **F0-08** · Stale PR reconciliation | **9** live open PRs audited against current main; all `diverged` from main | **Read-only preliminary disposition RECORDED; no PR integrated** / P1 open | Review below and safely disposition PRs with owner/context; never merge stale sensitive code automatically. Coordination. |
30