@davoodmehraban89 / Factor-easy / commits / 991b467
Fork 0

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

docs: record scoped UI fixes, real browser proof and remaining admin/accounting work

davoodmehraban89 committed Oct 11, 2026 at 20:09 UTC 991b467f919c4a0b5ee8475e70e6f2da943d737c
1 file changed +5
PROJECT_STATE.md
+5
@@ -220,3 +220,8 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
220 - Owner supplied current production screenshots: `finora-org-access-modal` «بستن» fails and similar modal close buttons across modules; central admin licenses lacks owner-provisioned new user; dashboard financial KPI and recent journal cells lack account→journal drilldown; standard sale invoice save currently auto-posts directly via `jePostSourceRecord`, preventing ordinary pre-finalization edit.
221 - Work ownership and dependency: **QA/UX** first fixes modal close with real-browser regression; **reporting/UX** implements read-only rollups and traceable recent journal drilldown, with accounting balance invariants; **security/auth** assesses stale PR #58 and designs server-side administrator provision with no client service key; **finance architecture** defines draft/review/posted lifecycle and migration/reversal gate before touching live invoice posting semantics. Implementation of the last two is not implied complete by UI-only release.
222 - User has requested these features, but **no permission to create a real third-party account right now, assign admin permissions, rewrite posted financial records, change production RLS/schema without a separately reviewed gated procedure, or send any credentials**. Existing historical posted source records remain immutable. A rollback-able UI PR and independent browser QA precede deployment.
223 +
224 +### 2026-10-11 controlled UX acceptance — modal + dashboard (Phase 0)
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.