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

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

docs(phase0): log tested 1200+ account/project/contract selector metrics and remaining gates

davoodmehraban89 committed Oct 12, 2026 at 12:17 UTC dfc4b21d4e7392d188acfc86b6bc2d7cf8394e3c
1 file changed +7
PROJECT_STATE.md
+7
@@ -377,3 +377,10 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
377 - **Selected independent safe slice (QA/Implementation):** extend `scripts/phase0-selector-stress.spec.js` with controlled tenant-scoped **1,200+** account rules selector (`#af-rule-account`), project selector (`#invoice-project-id`) and generic contract selector using real `finoraRefreshSearchableSelect` from `js/ux-hardening-r2.js`. Include keyboard Enter/Escape/End, Persian label/code/metadata filtering, no-match, no cross-tenant fixture option and explicit no `saveDatastore` / `jePostSourceRecord` / side-effect. Measure synchronous filter cost and use existing **5000ms safety ceiling**, NOT a production hardware SLA. Assert each selected value and no implicit writes.
378 - **Safeguards:** This is a synthetic DOM fixture with tenant-scoped option construction, NOT a production RLS/security isolation test; do not change runtime UI, auth, accounts, RLS, schema, Supabase, financial posting, user data or invoicing. Keep F0-01..04/07 and physical owner acceptance open. Add only the independent tests to the existing Quality Playwright suite, verify Chromium/Golden/3 disposable DB/Security then gate PR merge and protected-main deployment. Rollback: revert QA-only PR; no data or permissions rollback needed.
379 - **Accountable:** QA/Verification. **Status:** SCOPE RECORDED / CODE PENDING.
380 +
381 +
382 +### 2026-10-12 F0-05 account/project/contract high-volume selector — CONTROLLED QA PASS / OWNER GATE OPEN
383 +- Branch `qa/phase0-f005-account-project-contract-stress-20261012` extends existing F0-05 synthetic Playwright with **1,206** tenant-scoped entries each for accounting-rule `#af-rule-account`, invoice `#invoice-project-id` and representative generic contract select; using existing `finoraRefreshSearchableSelect` (no runtime changes), metadata/code search, Persian labels, Enter/End/Escape, no-results, excludes foreign-tenant fixture options, checks selected IDs, zero `saveDatastore` and zero accounting post. The journal-special `.je-account` path is excluded by runtime design and **not** tested by this generic selector fixture.
384 +- Exact first-tested PR #98 head `99be1b33ea6b8792f1be85e82a08367352bae223`: Quality **`38225392045` SUCCESS**, static job `114731529004`: **87/87 Chromium PASS (59.7s)** (prior 86 + new F0-05), Golden accounting and draft/posted safety PASS, three disposable PostgreSQL jobs PASS. Security **`38225392014` SUCCESS** (CodeQL/release safety; dependency review skipped when graph disabled). Synchronous filter samples in Chromium CI: **account 108.5ms; project 107.6ms; contract 113.4ms**, under existing 5000ms *safety ceiling*, **not** a performance SLA. No network/client production data in test.
385 +- Acceptance register F0-05 updated to **CONTROLLED-QA-PASSED for products, people, account rule, project and generic contract 1200+ lists**, while authorized tenant/real workstation performance, account-journal `.je-account` and true backend RLS remain **UNVERIFIED**. Full **PHASE 0 OPEN / NOT OWNER ACCEPTED**; no finance, Supabase, Auth/RLS/roles/schema or production data changes.
386 +- Next: check final PR head Quality/Security, merge only if green, verify protected-main Quality/Security/Release/Pages, append final exact-SHA release evidence if available. Rollback QA-only PR; no data rollback.