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

docs(state): record critical login readiness regression before implementation

davoodmehraban89 committed Oct 12, 2026 at 19:34 UTC 3fe3c4bbf968173ebf7c236252333bd8a242ef54
1 file changed +6
PROJECT_STATE.md
+6
@@ -27,6 +27,12 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
27 - **Exact PR-head verification:** Quality `38263379525` SUCCESS, static job `114859322898` logs **89/89 actual Chromium DOM PASS**, Accounting P0, double-entry, Golden and posted-history invariant PASS; disposable DB jobs `114859322415`, `114859323040`, `114859323233` SUCCESS. Security `38263379761` SUCCESS, CodeQL job `114859321621` and release safety job `114859321310` SUCCESS; Dependency Review `114859324783` SKIPPED. The post-merge main exact-SHA workflows for `4be48f74...` remain **NOT VERIFIED**, as do any owner-authenticated production F0-01/F0-02/F0-03/F0-04/F0-07, complete migration SQL parity and true adversarial RLS checks; these must not be inferred from CI or documented as COMPLETED.
28 - **Outcome and rollback:** state reconciliation recorded and merged, **PHASE 0 STILL OPEN**; no application runtime, production ledger, Supabase schema/RLS/Auth/roles/migrations, or destructive data changed. Documentation-only rollback is a targeted revert; next independent safe task is read-only PR #58 archive-parity assessment, then owner-authorized browser acceptance against legitimate existing data with no confidential credentials in chat.
29
30 +## 2026-10-12 Phase 0 owner escalation — login screen looks ready but ignores interaction (PLANNED / NOT FIXED)
31 +- **User symptom and P0 priority:** the email/password form becomes visible while login resources/session initialization are still loading; entering credentials and clicking login can appear to do nothing, sometimes never reaching the application. This is distinct from the previously shipped 14-extension download optimization PR #100 and must not be declared resolved by its CI.
32 +- **Baseline:** protected main `3445a87592341512dea56745e291c10e5225d8b4`; no Auth/DB/account changes authorized. Source investigation found 40+ synchronous parser-blocking local JS tags, auth init delayed until the 14 extension scripts settle, and `handleLogin()` silently returns when `authBusy` while `enterApp()` awaits full account-record download with no visible per-step status.
33 +- **Narrow intended correction:** preserve ordered script dependencies while fetching parser-blocking app JS in parallel; initialize the login form before non-auth extensions finish; keep authenticated app transition gated on complete scripts and tenant-scoped data loading; make login-in-progress/busy/error state visible rather than leaving an apparently inert form. Add Chromium network-throttled before/after regression and preserve all accounting/Golden/Security/DB gates. No mutation of real accounts, RLS, schema, roles, financial data or Auth server settings.
34 +- **Acceptance:** fresh login form becomes actionable before intentionally delayed optional app module, mocked/unauthenticated negative tests show no credential disclosure or duplicate sign-in, restored session never renders partial app, app status never silently ignores a second click. Gate release on same-SHA Quality/Security/Release/Deploy; owner affected-network authenticated acceptance remains separately OPEN. Rollback: revert single scoped PR and gated redeploy.
35 +
36 ## Current change ledger
37 | 2026-10-07 | Owner requested accounting/product usability refinement from live screenshots: automatic non-user-entered floating-detail codes, contextual in-product guides (especially accounting/chart/dimensions), remove duplicate product internal tax ID and use product code as internal item ID, strengthen in-control product/person search, introduce hierarchical product group/subgroup coding with deterministic 6-digit product codes, and keep sale/purchase commercial-document workspace layout stable while only semantic fields change. | **IMPLEMENTED / LOCAL VERIFICATION PASSED / CI PENDING** | Baseline main = `7e58c75f7d754f378d94ca3f356c1ae580aa7ee3`. Automatic dimension type/value codes, contextual guides, product-code-as-internal-ID, normalized multi-token search, and additive six-digit product coding implemented. Existing historical codes preserved. Commercial sale/purchase workspaces now share a stable `صدور سند تجاری` header/actions layout; duplicate purchase sidebar injection removed; the public selector is the single document-type selector and the legacy internal invoice-kind control is hidden. Local syntax/static/commerce/UX/accounting phases 2–6/Golden checks passed; protected-branch CI remains pending. |
38