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

docs: record approved keyboard selector navigation and context-aware F2 entry workflow

davoodmehraban89 committed Oct 11, 2026 at 23:58 UTC eb739eda7ca717e527969cbd1186475b0a9d0cc2
1 file changed +5
PROJECT_STATE.md
+5
@@ -225,3 +225,8 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
225 - Implemented delegated click capture for dynamically rendered `.modal-backdrop.active` closing buttons «بستن»، «✕ بستن» and «انصراف» plus backdrop clicking. This prevents broken inline handlers from trapping the user and never changes stored state. Implemented keyboard-operable cards for assets, cash/bank, receivables and payables; journal-derived asset/cash account drilldown, source voucher/line navigation and the five newest journal rows. Uses scoped getters + existing P6Reports; **read-only**. Dashboard cash KPI currently uses one primary cash account; the expanded ledger explicitly distinguishes related bank/cash/petty accounts rather than silently changing the amount.
226 - Remote `DESKTOP-71SJ63M` live Chromium against locally served repo: `npx playwright test scripts/phase0-modal-dashboard.spec.js --reporter=line --workers=1 --timeout=20000` **PASS 2/2 (9.9 s)**. `node scripts/syntax-check.mjs` PASS (54 JS/50 MJS). Tests cover close/dynamic/overlay and dashboard asset→account→voucher, cash Enter, recent voucher navigation. Added suite to GitHub Quality; PR CI and production release pending at time of writing.
227 - Real owner desktop visual recheck is still required. Outstanding admin direct provisioning and draft/post/final document manager remain separately gated; no permissions, credentials, auth, schema or posted financial data changed.
228 +
229 +## 2026-10-11 owner-approved searchable selectors + F2 keyboard workflow (Phase 0)
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.