@davoodmehraban89 / Factor-easy / commits / ec8e872
Fork 0

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

docs(state): record repeat owner BOOT_APP_ASSETS and 38 parser-blocking scripts before bounded fix

davoodmehraban89 committed Oct 13, 2026 at 01:27 UTC ec8e87211c7c6304d60adc9fa80b3ef54e953468
1 file changed +6
PROJECT_STATE.md
+6
@@ -121,6 +121,12 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
121 - PR-head Quality run `38311574244` SUCCESS **105/105 Chromium** (bundled production + blocked-bundle negative), Golden and 3 PostgreSQL PASS; Security `38311574218` SUCCESS. Exact merged main Quality `38311972925` SUCCESS, Security `38311972939` SUCCESS, Release Gate `38312280586` SUCCESS and Pages `38312349416` SUCCESS. Cancelled/skipped duplicate checks excluded.
122 - No Auth/RLS/schema/users/financial data/posting, no SMS/provider or remote desktop modifications. Remote Desktop Commander previously exhausted monthly quota; no bypass. **Owner affected-ISP full sign-in and performance not yet verified**; issue #106, F0-01, Phase 0 OPEN. Next: affected Chrome hard refresh and one actual sign-in, report result, elapsed and any BOOT code; if still failing compare an independent Internet connection. Rollback: revert #116 and gated deploy.
123
124 +### 2026-10-13 F0-01 owner photo STILL BOOT_APP_ASSETS after #116 — bounded critical-pages optimization
125 +- Actual owner photograph shows password login reverting to `BOOT_APP_ASSETS` rather than later `BOOT_APP_ASSETS_FAILED`; therefore user success after #116 NOT VERIFIED. This does not distinguish stale HTML from slow parser-blocking scripts or an unchanged owner network. No credentials or personal email copied from photo. Browser's first JS/manifest tests previously timed out, while public Auth health worked; PostgREST root 401 is not proof of database outage.
126 +- Source review at runtime `main=9b8d4cd7fa3bcb3b8175019525eaca0ffa97fb59`: production bundle optimization #116 only consolidated 14 **dynamically loaded extension modules**; `index.html` still has **38 other, parser-blocking, same-origin local JS tags** (12 before bootstrap and 26 after it). `DOMContentLoaded` waits for these, and `js/bootstrap.js` only starts its 18s deadline at DOMContentLoaded, so the account's 25s deadline can fire first, yielding `BOOT_APP_ASSETS` despite newer #116 code.
127 +- Safe implementation scope: build three content-hashed source-order-preserving **Pages-only blocking script bundles** corresponding to exact contiguous script ranges (admin..words, patches..accounting, accounting-foundation..ux-hardening). Preserve standalone `vendor/supabase.js`, `js/login-connectivity.js`, `js/core.js`, `js/bootstrap.js`, generated CSP event listeners and extension bundle. Preserve original source/dev `index.html`; only rewrite built `_site/index.html` in `scripts/build-pages.mjs`. Static dependency and VM parse checks, real Chromium Pages runtime DOM/CSP test, withheld-late-bundle responsive login test and exactly three bundle-request assertion required. No production tenant/auth/finance changes.
128 +- Genuine remedy acceptance: full Quality Chromium, Golden accounting, three disposable PostgreSQL, Security, exact SHA protected-main Release/Pages and owner actual affected-ISP login. Do not claim owner network repaired on CI pass. Existing issue #106 / F0-01 / Phase 0 OPEN. No remote-desktop quota circumvention.
129 +
130 ## Current change ledger
131 | 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. |
132