@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 100969c
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 18:15 UTC

docs: trace one-time legacy migration save and accounting test bootstrap race; rerun quality gates

davoodmehraban89 committed Oct 15, 2026 at 21:52 UTC 100969c479425151ad98967e25a2b01fe748bfba
1 file changed +4
PROJECT_STATE.md
+4
@@ -768,3 +768,7 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
768 - **Live test/work profile with TinyFish:** run [`43e95484-3ecf-4576-a4b1-528cac50a8eb`](https://agent.tinyfish.ai/runs/43e95484-3ecf-4576-a4b1-528cac50a8eb) clicked Commerce text/tab successfully and observed `view-invoices` active and Commerce-side catalog. Its diagnostic claim that `data-module=commerce` is absent conflicts with the verified source/build (index embeds the attribute) and must NOT be treated as validated root cause. It may be a view-filtered DOM extraction artifact.
769 - **First successful live selector test:** run [`341e1f6d-a792-4b5e-b0b9-69908056b460`](https://agent.tinyfish.ai/runs/341e1f6d-a792-4b5e-b0b9-69908056b460) opened the actual sales invoice form from Commerce in saved test/work account, opened existing product combobox and searched `بلوک`; **3 results** shown without selecting/saving. Buyer combobox/search UI was visible (not filtered with a query). A further limited live read-only run `a31d48d6-34ea-4b6d-91b3-7d28a0c817f5` failed to reach the form (reported falling back to Accounting), so filtered buyer search/unit and price UI acceptance remain NOT VERIFIED. These are agent-reported browser outcomes; no server-side data snapshot/write check. Do not infer deterministic user-facing navigation defect from inconsistent browser-agent actions, especially after 121/121 hardened Pages Chromium tests PASS.
770 - **Next bounded regression task:** add a real-Chromium test to `scripts/pages-artifact.spec.js` against generated CSP-safe `_site` using ONLY synthetic products/contacts in memory. Exercise pre-existing invoice item selector/search, Persian letter normalization, buyer dropdown filter, option unit/price metadata, and assert no invoice save or financial RPC. No production database, no schema/RLS/Auth/role/finance/credential changes. Verify exact PR Quality/Security and protected-main release if changed. Note that the current data model treats user-owned products/contacts as a shared catalog across user companies unless a `companyId` exists; do not unilaterally introduce company-specific isolation as a product contract without evidence/owner decision. Test controls must preserve existing behavior.
771 +
772 +- **Controlled QA diagnosis (exact earlier heads):** first built-Pages selector test job `116588147947` at `7b01a0187e0e1b65c78a19260bfe9a8d6a28b00a` had 121 browser passes / 1 failure solely on a synthetic `saveDatastore()` counter. Trace job `116590366891` at `65af68fd0c956eb2d25119a9c38f53675a394e53` captured the call originating in **existing** `afMigrateLegacyProjects()` via `getContactProjects()` → `renderContacts()` at fixture initialization, **before any product/buyer search**. Source `js/accounting-foundation.js` records one-time key `accountingFoundationMigrationV2_<company>` and calls `saveDatastore()` even when no legacy projects exist. The synthetic fixture must seed its completed migration marker when measuring SEARCH-only write behavior; do not change production legacy migration contract silently. This was an isolated mocked save, not a real DB write.
773 +- **Independent F0-02 buyer and product filter result:** synthetic production-hardened Pages test at head `91141c49cf5e964747a049f756d827493dd3bd11` **PASSED** and verified Persian normalized `بلوك` search yielded two owned fixture goods (other-tenant goods excluded), buyer `شرکت` search yielded one eligible fixture buyer (supplier/other-tenant excluded), product option unit/price metadata intact, original dropdown selections unchanged, zero synthetic saves after normal migration state, and zero invoices created. However the overall Quality `38784436583` failed because a **different pre-existing accounting-document-workflow synthetic auth test** intermittently began login hydration before async org adapter setup, leaving `#auth-screen` visible. All other browser tests passed 121/122; DB/security gates succeeded. No finance logic changed.
774 +- **Unblock actions pending full CI:** in `scripts/accounting-document-workflow.spec.js`, gate fixture injection on `FinoraStartupStatus.extensionsReady`, no failed extension, and `authChecked` before calling `enterApp()`. This changes only synthetic browser harness timing, no production source / schema. Latest QA branch head after fix `74d3bd580484b4ae754e5f627e53ad7f08e57a63`; Quality/Security MUST retest and pass before merge. Root causes for human on affected ISP and real buyer search still not fully verified.