سامانه صدور فاکتور و حسابداری
docs(state): record owner-confirmed post-auth login timeout and staged diagnostic scope
davoodmehraban89 committed
Oct 12, 2026 at 23:34 UTC
967d352d5d558835918b1e020214969142d6a938
1 file changed
+6
PROJECT_STATE.md
+6
@@ -96,6 +96,12 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
96
- **Operational blocker:** authorized Windows Desktop Commander is paired/ONLINE but tool explicitly said MONTHLY USAGE EXCEEDED and instructed not to retry or reconnect; no tool quota bypass attempted. Independent external `factoreasy.ir` HTTP fetch also inaccessible through web tool. Thus live same-ISP critical-JS/manifest/Auth HTTP outcomes, browser load latency, and authenticated company data read are **NOT VERIFIED**. The CI-gated deploy is proof of publishing but not a user-network acceptance. Owner should hard-refresh Chrome, click built-in diagnostic without entering credentials, report `SITE_JS_*`, `MANIFEST_*`, `AUTH_*` code; compare once using independent mobile hotspot if available. No username/password/private email/tokens. [Issue #106](https://github.com/davoodmehraban89/Factor-easy/issues/106) and F0-01 / Phase 0 remain OPEN.
97
- **Rollback:** revert #112 through protected gated Pages release; no financial DB rollback necessary.
98
99
+### 2026-10-12 Owner confirmed post-authentication login still times out — F0-01 P0 ACTIVE
100
+- **New real user result:** on the affected Chrome/ISP, initial diagnostic `SITE_JS_OK | MANIFEST_OK | AUTH_OK` but password sign-in **does not reach the workspace** and ends with `دریافت اطلاعات حساب بیش از حد طول کشید`. This is a **25-second `enterApp()` bootstrap timeout**, not evidence of incorrect credentials; `AUTH_OK` only probes public GoTrue health. Avoid sharing/storing the owner's screenshot email/password; no live credentials collected.
101
+- **Inspected source:** `enterApp()` concurrently waits `fetchCurrentUser()` (profile + membership + 7 authorization/license organization reads) and `FinoraAppAssetsReady`; it then performs paginated, tenant-scoped `pullAll()` with full atomic snapshot. All are under one 25s cancel signal, but the existing UI gives the same timeout message regardless of which step stalled. Supabase project is ACTIVE_HEALTHY, and read-only pg_indexes shows scoped `records` indexes and membership indexes; database service health does **not** demonstrate reliable owner-ISP PostgREST connectivity.
102
+- **This bounded step:** instrument stages with **strictly fixed, privacy-safe identifiers** for account/profile, organization membership, access/license, optional startup assets, and company record hydration; show exact pending stages on timeout and add a *separate read-only PostgREST reachability check* to existing site/manifest/Auth diagnostic. Add synthetic Chromium network-failure tests, keep tenant-scoped atomic data and RLS/auth paths entirely unchanged. No user DB read, schema/RLS/Auth changes, no credential/URL logging. Rollback this UI-only PR.
103
+- **Acceptance:** full Chromium/Golden/three disposable PostgreSQL/Security checks, gated main Publish and affected-browser retest showing `REST_*` + safe `BOOT_*` stage code; actual root cause cannot be claimed fixed before owner network trace. Keep [Issue #106](https://github.com/davoodmehraban89/Factor-easy/issues/106) / F0-01 / Phase 0 OPEN. Desktop Commander reported monthly usage quota exhausted; no attempts to bypass limitation or modify stale 2189 untracked files in `C:\Temp\Factor-easy`.
104
+
105
## Current change ledger
106
| 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. |
107