سامانه صدور فاکتور و حسابداری
docs(state): record owner BOOT_APP_ASSETS and exact bounded single-bundle remedial scope
davoodmehraban89 committed
Oct 13, 2026 at 00:59 UTC
4840ae0ef23d1abbd7c35124a76d47f05e016566
1 file changed
+6
PROJECT_STATE.md
+6
@@ -109,6 +109,12 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
109
- **Protected-main release:** merged runtime **`bead02fbc48f04e12de8b1565d99d2a3c4af761d`**, exact SHA [Quality `38303068200`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38303068200) SUCCESS (103/103), [Security `38303068209`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38303068209) SUCCESS, [Release Gate `38303361728`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38303361728) SUCCESS and [Deploy gated Pages `38303407938`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38303407938) SUCCESS; duplicate `38303255014` Release CANCELLED and `38303388240` Pages SKIPPED excluded.
110
- **Acceptance still NOT verified:** no direct live `factoreasy.ir` GET or owner-ISP runtime trace after this release; Desktop Commander was ONLINE but latest remote command attempt returned MONTHLY QUOTA EXCEEDED; no bypass/reconnect attempted. No actual authenticated owner sign-in, company data loading or delay root cause yet. User to hard-refresh, run built-in diagnostic, report only `REST_*` code, then attempt sign-in privately, report `BOOT_*` code on a repeated timeout; compare a different ISP if useful. The fixed outer wait prevents indefinite hanging but is **not proof full login latency has been cured**. [Issue #106](https://github.com/davoodmehraban89/Factor-easy/issues/106), F0-01 and Phase 0 remain OPEN. No server Auth/RLS/schema/roles, user identity, financial data or customer payload modifications. Rollback via #114 revert and gated redeploy, no database rollback.
111
112
+### 2026-10-13 Owner affected-ISP evidence pinpoints BOOT_APP_ASSETS / slow local files — REMEDIATION IN PROGRESS
113
+- **Actual photographed owner browser after #114:** `BOOT_APP_ASSETS` when attempting authenticated workspace entry; connectivity check `SITE_JS_TIMEOUT | MANIFEST_TIMEOUT | AUTH_OK | REST_HTTP_401`. The later screenshot shows cleared email/password fields, but earlier supplied login contains private email: **never reproduce identifiers**. `AUTH_OK` means GoTrue health only; `REST_HTTP_401` for unauthenticated REST root is not proof PostgREST is offline and must not be treated as the login root cause. Two same-origin no-store diagnostics timed out under owner ISP, a strong signal of unstable own-domain asset delivery, not definitive server infrastructure fault.
114
+- **Code-proven wait:** `js/bootstrap.js` currently dispatches 14 separate extension script downloads, `Promise.allSettled` has no per-resource deadline and sets `FinoraAppAssetsReady` only after **all 14** finish/fail; `enterApp()` refuses full app until that promise resolves. This exactly matches `BOOT_APP_ASSETS`, whereas the owner code did not name a specific file. The existing flow even resolves this readiness promise if any extension fails, risking partially usable financial software.
115
+- **Safe fix scope:** build a same-origin, deterministic **single production extension JS bundle** from the exact 14 source modules in dependency order (all IIFEs, preserve CSP and source); retain existing unbundled source/dev loader; bound the extension load (including missing network) and on any failure explicitly reject workspace readiness, leave login responsive and show actionable asset-failure status, NEVER render incomplete ERP. Cache-bust built script. Add real Playwright built Pages/browser tests for one-request delivery, missing bundle fail-closed, and original parallel development behavior. No network-unapproved external CDNs, no Auth/RLS/schema/users/posting/tenant data modifications. Rollback #PR via protected Pages; no DB rollback.
116
+- **Required acceptance:** full 103+ Chromium/Golden/disposable 3 PostgreSQL/Security and exact SHA Pages gate; actual affected-ISP sign-in **remains OPEN** until owner real network retest. Desktop Commander quota previously explicitly exhausted; no retry/bypass. Keep F0-01 and Phase 0 OPEN.
117
+
118
## Current change ledger
119
| 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. |
120