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

docs: record real test-account goods search pass and start hardened artifact selector regression

davoodmehraban89 committed Oct 15, 2026 at 21:36 UTC 810dcdf243bf91f99851dd51ef38da82c08c5725
1 file changed +7
PROJECT_STATE.md
+7
@@ -761,3 +761,10 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
761 - **Production-hardened Pages differential test released:** [PR #150](https://github.com/davoodmehraban89/Factor-easy/pull/150), merge SHA `928493f695eef8b5b6facbdca85dc96f3c9f67d9`. Added synthetic Chromium test `Published Pages CSP event bindings open Commerce and the top-bar sales invoice menu` against generated `_site` CSP-safe event handlers, with actual button clicks, quick menu aria toggle and invoice-page navigation. 121/121 Chromium tests PASS in QA job `116567441821` at initial test head; final PR head `64eb58adfdcd35f907fd2afe883fd3d4f2c90b98` Quality `38777656678` SUCCESS, Security `38777656686` SUCCESS. Exact protected main merge Quality [`38778221013`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38778221013) SUCCESS, Security [`38778220937`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38778220937) SUCCESS, Release gate [`38778697708`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38778697708) SUCCESS, gated Pages [`38778783998`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38778783998) SUCCESS. A superseded duplicate release-gate job was cancelled; accepted gate and Pages on exact SHA succeeded.
762 - **Disposition/security:** no further production navigation code change indicated by current tests. No Supabase Auth, license, schema/RLS/role, tenancy, financial records, payments, Stripe, Cloudflare, GitHub credential or paid service touched. Existing validated license fix remains CLOSED for observed test-account flow.
763 - **Remaining Phase 0 / release blockers:** F0-01 fresh first sign-in and fluctuating load on owner's affected internet/actual device **NOT VERIFIED**; F0-02 sales invoice product/customer search against actual authorized company **NOT VERIFIED**; F0-03 real persistent invoice-safe scope/physical print **NOT VERIFIED**. No-card encrypted production DB backup, independent offline copy and restore **NOT RUN**. Next safe path: owner-supplied read-only screenshot or scoped browser recording showing commerce navigation + existing product search; independent client/network diagnostics before any code change; no live invoice creation without explicit safe test scope.
764 +
765 +
766 +### 2026-10-15 F0-02 live Commerce and product-search verification — PROGRESS / QA IN PROGRESS
767 +- **Owner direction:** «ادامه بده» after Phase 0 navigational QA; continue authorized read-only live test and independent regression, no live financial writes.
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.