سامانه صدور فاکتور و حسابداری
docs(phase0): record F0-05 stress acceptance slice before implementation
davoodmehraban89 committed
Oct 12, 2026 at 07:39 UTC
8d46c7d5d461c106bf14621020d0b74b23750830
1 file changed
+8
PROJECT_STATE.md
+8
@@ -236,3 +236,11 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
236
- F2 routes the active entry view through existing dedicated validation/save handlers (sales invoice, purchases, goods/services, contacts, cheques, expenses, accounting draft journal, default settings, company form when focused). Missing rows, missing product/contact names, invalid native controls and unsupported views explain the block. An active modal is not silently approved via keyboard; modal-specific confirmation must use its own safe action. **Sales F2 creates a draft only; it never finalizes the accounting posting.** Purchases currently auto-post when saved in existing code, so F2 **requires explicit user confirmation** before invoking purchase Save; refusal performs no operation. Ctrl+S and Ctrl+Enter remain available.
237
- Independent Remote Desktop Commander `DESKTOP-71SJ63M`, cloned exact branch commit `cd5e04408d81eacaf66be97ee9d2b89d85e22915`, `node scripts/ux-hardening-r2-check.mjs` PASS, `node scripts/syntax-check.mjs` PASS (55 JS/52 MJS), Chromium `npx playwright test scripts/ux-keyboard-f2.spec.js scripts/ux-hardening-r2.spec.js scripts/accounting-document-workflow.spec.js --reporter=line --workers=1` **14/14 PASS (19.7 s)**. Real app invoice fixture verifies F2 rejects empty line and saves one formal **draft** with zero journal vouchers. Other tests cover product/person matching, Arrow+Enter selected not first, 48-product wheel/PageDown/Home/End, Escape, F2 form/unsupported modal/company/default settings/purchase explicit confirmation. Synthetic QA data only; no owner accounts or financial writes.
238
- **IMPLEMENTED / MERGED / PROTECTED-MAIN CI & RELEASE / DEPLOYED / READ-ONLY LIVE ASSET VERIFIED.** PR #83 merged to `main` SHA `641b68669057ef429ae158744a86cba9a00dca31`; exact-SHA main Quality `38173607090` SUCCESS, Security `38173607091` SUCCESS, Release gate `38173716820` SUCCESS, gated Pages `38173732898` SUCCESS (skipped/cancelled duplicate workflow runs were not used as evidence). Independent Desktop Commander `DESKTOP-71SJ63M` real Chromium after checkout of **exact main merge commit**: `scripts/ux-keyboard-f2.spec.js` + `scripts/ux-hardening-r2.spec.js` **PASS 12/12 (6.0s)**; `node scripts/ux-hardening-r2-check.mjs` PASS; `node scripts/syntax-check.mjs` PASS (55 JS + 52 MJS). Remote GET `https://factoreasy.ir/?keyboardQa=20261011` HTTP 200 and exact referenced deployed `js/ux-hardening-r2.js?v=20261011-combo-keyboard-f2-v5` HTTP 200; JS body verified `finoraConfirmActiveFormF2`, active-option ARIA, wheel, PageDown and F2 listener all present. **User-authenticated actual existing-goods list and physical keyboard on owner's browser remain UNVERIFIED**, and not every optional module has an unambiguous save action: when F2 cannot safely determine one, it explains the reason instead of triggering posting/destructive actions. No schema/RLS/auth/roles/posts/customer financial data changed. Rollback: revert PR #83 and redeploy previous UX bundle `v=20261011-modal-close-v4`.
239
+
240
+
241
+## 2026-10-12 Phase 0 F0-05 independent 1000+ selector stress — PLANNED
242
+- **Owner request:** Continue approved Phase 0 without repeating PR #83 or changing production data. Baseline `main` SHA `27170e0291496997a6118b0e72978f852e015a86`; historical PR #83 keyboard/F2 is already deployed. Phase 0 remains OPEN.
243
+- **Accountable owner:** QA/Validation. Scope: disposable Chromium fixture with 1,200+ tenant-scoped product and contact choices; Persian/Arabic normalization; code/spec lookup; Arrow/Enter/Home/End/wheel/Escape; selection persistence; absent and cross-tenant negative cases; measured browser interaction responsiveness. Chapters: 14, 251, 259, 260 (with 252/253 security/event contracts).
244
+- **In scope:** `scripts/phase0-selector-stress.spec.js` and Quality workflow gate; minimum source UX correction only if the test reproduces a defect. **Out of scope:** Supabase writes/migrations, Auth/RLS/roles, secrets, actual user or financial data, postings, invoice finalization and live user-session claims.
245
+- **Acceptance/evidence:** Run new Chromium test, syntax/static/regression checks, GitHub PR Quality + Security; report observed time budgets, exact SHA/run and any failures. Controlled browser PASS does not close F0-05 owner-authenticated acceptance. Rollback: revert isolated QA PR; no operational/DB rollback required.
246
+- **Status:** SPECIFIED / implementation and CI pending. Next action: add bounded independent stress regression, execute and triage failures.