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

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

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

Synced Dec 3, 20:45 UTC

docs: record exact-sha F2 keyboard search release, QA evidence and owner-session caveat

davoodmehraban89 committed Oct 12, 2026 at 00:19 UTC 0d5ca9b9ee1e66a049273f77746390cdc288578b
1 file changed +7
PROJECT_STATE.md
+7
@@ -236,3 +236,10 @@ 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 - **Implementation QA PASSED / protected PR CI and production deployment PENDING.** Next: open PR, require Quality+Security green at exact head SHA, merge, verify main Release Gate+Pages+domain asset, then update ledger. Owner-authenticated full live workflow NOT VERIFIED. No schema/RLS/auth/roles/posts/production data changed. Rollback: revert narrow PR and deploy previous version `v=20261011-modal-close-v4`.
239 +
240 +### 2026-10-11 owner-approved keyboard selection + F2 — final deployment verification
241 +- **IMPLEMENTED / MERGED / SAME-SHA QUALITY+SECURITY+RELEASE+PAGES GREEN / REMOTE CHROMIUM 15 OF 15 PASS / LIVE DOMAIN VERIFIED.**
242 +- PR **#83** merged into `main` at exact SHA `641b68669057ef429ae158744a86cba9a00dca31`, runtime includes versioned `js/ux-hardening-r2.js?v=20261011-combo-keyboard-f2-v5`, regression `scripts/ux-keyboard-f2.spec.js`, and F2 finance-draft test under `scripts/accounting-document-workflow.spec.js`. Protected main workflows on same SHA: Quality **`38173607090` SUCCESS**, Security **`38173607091` SUCCESS**, Release Gate **`38173716820` SUCCESS**, gated GitHub Pages **`38173732898` SUCCESS**. Ignore earlier canceled/duplicate and skipped workflow attempts.
243 +- On authorized Windows Desktop Commander `DESKTOP-71SJ63M`, exact branch controlled 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` **15/15 PASS (26.9 seconds)**. Static invariants and syntax: `node scripts/ux-hardening-r2-check.mjs` PASS; `node scripts/syntax-check.mjs` PASS for 55 JS modules and 52 MJS scripts. Covered Unicode-person/product live filtering, explicit highlighted ArrowUp/ArrowDown/PageUp/PageDown/Home/End, 48-option wheel scroll→Enter chooses active row, Escape, no inappropriate Enter-save, F2 invalid alerts and correct form routing, two distinct settings forms, modal/reusable safe modular form, purchase confirmation before current auto-post, and real formal-invoice F2 draft saved with zero posted vouchers.
244 +- Independent remote PowerShell GET `https://factoreasy.ir/?qa=keyboard-f2-20261011` **HTTP 200**, deployed HTML points to exact `v=20261011-combo-keyboard-f2-v5` UX script; fetched JS asset contains F2, ArrowDown, ARIA active-descendant, wheel and safe modular form routing. Controlled test fixtures do not touch real Supabase tenant data; **actual owner-authenticated live account validation still pending**, especially browser/system intercepting bare F2 (some keyboards require Fn+F2), long real product lists and the UX appearance in owner environment. Unsupported or ambiguous dialogs show an actionable error instead of silently executing unsafe commands.
245 +- Safety: no permissions/auth/RLS/schema changes or real transaction writes. F2 sales creates a draft only; document finalization remains explicit. F2 purchases require explicit confirmation because existing purchase save posts accounting records. Rollback: revert PR #83 and gated Pages deploy; previous UX bundle `v=20261011-modal-close-v4`.