@davoodmehraban89 / Factor-easy / commits / 1d91feb
Fork 0

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

docs: record keyboard selector/F2 14-of-14 browser evidence and release gates

davoodmehraban89 committed Oct 12, 2026 at 00:11 UTC 1d91febfe65ad911c1b1f8615338e1300782f49b
1 file changed +6
PROJECT_STATE.md
+6
@@ -230,3 +230,9 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
230 - User explicitly directs full implementation in production of unified live search for products/services, persons and all applicable large selection controls; ArrowDown/ArrowUp list navigation with visible selected highlight, mouse-wheel scrolling and Enter selecting the **active** choice (not hard-coded first match); keyboard F2 across supported entry forms must validate/save or approve the active form as appropriate, show *specific reason* when blocked, avoid trapping focus or global Enter accidentally saving, and close successful entry dialogs. Baseline `59c904623d0e8e067ee1c02e3169167bcc04841b`.
231 - **In progress / not yet deployed**. Keep existing `Ctrl+S`, `Ctrl+Enter`, optional Enter-save, purchase/sale behaviors, tenant filtering, print formatting, and product rehydration. F2 in sales invoice must save a draft and **must not post/finalize** financial journal; posting requires explicit user permission and separate confirmation under Accounting→Document Management. F2 must never blindly click a destructive or financial-finalization action.
232 - Validation: isolated Chromium dynamic product/person picker, Persian normalization, ArrowUp/Down/PageUp/PageDown and Enter, wheel scrolling, Escape, unrelated Enter, F2 supported forms success/failure incl correct messages and no action in unsupported dialog; exact GitHub Quality+Security gates and Pages deployment; owner-authenticated live finance data remain untouched.
233 +
234 +### 2026-10-11 keyboard navigation/F2 controlled verification checkpoint
235 +- Implementation: `js/ux-hardening-r2.js` now tracks highlighted item in each integrated combobox with ARIA listbox active-descendant, filtered search, ArrowUp/ArrowDown, PageUp/PageDown, Home/End, mouse-wheel scrolling and pointer hover; Enter chooses the highlighted exact item rather than first result. Product dropdown remains safely portaled out of clipped invoice table; underlying filtered tenant catalog, price/unit change handlers and Persian normalization preserved.
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`.