@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 6530b4a
Fork 0

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

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

Synced Dec 3, 14:30 UTC

docs: record verified invoice product search main release and live-session test boundary

davoodmehraban89 committed Oct 11, 2026 at 14:53 UTC 6530b4afa461db467a98bd48ff837da6eaef0ac2
1 file changed +2 -2
PROJECT_STATE.md
+2 -2
@@ -18,7 +18,7 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
18 | 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. |
19
20 | Date | Request / decision | Status | Evidence / next action |
21 -| 2026-10-11 | Owner supplied live invoice screenshots: contact/seller combobox correctly shows choices, but invoice product/service combobox shows no known products and typed `ها` does not find existing `هارد`. Requested remote-desktop verified repair and screenshot with `بلوک`/`سیمان` suggestions. | **IMPLEMENTED / REMOTE REAL-BROWSER QA PASSED / PR CI PASSED / PRODUCTION DEPLOY PENDING** | Baseline `b1a35fdc1df71c46c287bec47be54fa6e8641428`. Scope `js/ux-hardening-r2.js`, `index.html` cache version, regression browser tests; investigate stale initial invoice row product options created before Supabase sync, preserve selected invoice product/quantity/price/history, ensure complete suggestions and Persian normalization. Negative tests for absent data, no cross-tenant exposure, selection and price/unit update; remote Playwright screenshot; gated CI. No Supabase schema/auth/RLS/roles, no financial data edits. Rollback: revert product-search PR. |
21 +| 2026-10-11 | Owner supplied live invoice screenshots: contact/seller combobox correctly shows choices, but invoice product/service combobox shows no known products and typed `ها` does not find existing `هارد`. Requested remote-desktop verified repair and screenshot with `بلوک`/`سیمان` suggestions. | **MERGED / GATED PAGES DEPLOYED / REMOTE DOM VERIFIED / OWNER-AUTHENTICATED SESSION PENDING** | Baseline `b1a35fdc1df71c46c287bec47be54fa6e8641428`. Scope `js/ux-hardening-r2.js`, `index.html` cache version, regression browser tests; investigate stale initial invoice row product options created before Supabase sync, preserve selected invoice product/quantity/price/history, ensure complete suggestions and Persian normalization. Negative tests for absent data, no cross-tenant exposure, selection and price/unit update; remote Playwright screenshot; gated CI. No Supabase schema/auth/RLS/roles, no financial data edits. Rollback: revert product-search PR. |
22 |---|---|---|---|
23 | 2026-10-07 | Owner requested an audit of all changes since the last shared verified baseline, assessment of the supplied accounting/product/search/invoice-layout issues, and a remediation plan before implementation. Owner offered a remote PC if useful; use the current environment for repository/database review because no direct remote-desktop control is exposed. | **AUDIT IN PROGRESS / NO PRODUCT OR DATABASE MUTATION** | Pinned main `7e58c75f7d754f378d94ca3f356c1ae580aa7ee3`, seven commits after `dfaa4d65918ea3bca14be2c4737af734c9328083`. Quality `37646679015` static job `112879152160` logs show 60/60 controlled real-DOM tests and accounting/Golden PASS; Security `37646679026`, Release `37646878995`, exact-SHA Pages `37646973160` succeeded. Live Supabase: 80 migrations, newest `20261007165208 phone_identity_profile`; public RLS 18/18, private RLS 3/10 with zero anon/authenticated CRUD on all ten private tables. Production identity SQL is archived on open PR #58, absent from main; do not reapply it. PR #59 contains unmerged accounting/product/guidance work and must be reviewed separately from deployed behavior. Audit findings and test boundaries follow in the audit report; no old unfinished arithmetic patch is being published. |
24 | 2026-10-07 | Owner supplied live screenshots and requested immediate invoice-workspace cleanup: remove redundant top workflow buttons (sale/purchase/pre-invoice) and redundant sale/purchase shortcut buttons beside the document heading; keep Excel import + sample download; keep only the commercial-document type selector with sale, purchase, sales pre-invoice, sales progress statement; replace the separate search-above-select UX with a single in-control searchable product selector that matches product code/name/specification and numeric fragments. | **COMPLETED / MERGED / RELEASE VERIFIED** | Merged to `main` as `6e7fa6e861ebdd89e5712ed7d64bb5fe3128f307`. PR #54 Quality `37644940991` and Security `37644940960` SUCCESS; inspected static logs confirm commercial + UX-R2 + Golden PASS and **60/60 Real-DOM tests**. Main Quality `37645195629`, Security `37645195698`, Release gate `37645411897`, exact gated Pages `37645464262` all SUCCESS. Live `factoreasy.ir` no longer contains the sale/purchase heading shortcuts; live UX bundle contains `finora-combobox-input` and no `finora-select-search`. Four-value document selector and Excel import/sample controls retained. No schema/RLS/auth/role/data mutation. |
@@ -184,4 +184,4 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
184 - Fix on `fix/invoice-product-search-rehydrate-20261011`: rehydrate live scoped products when selected row is initialized/focused/refreshed (sales and purchases), preserve selected archived/historical product and existing quantities/prices, robust Unicode Persian text filtering by name/code/spec, render product popup in document body to escape table clipping; version `js/ux-hardening-r2.js?v=20261011-product-refresh-v3`.
185 - Independent Windows remote Desktop Commander `DESKTOP-71SJ63M`: `node scripts/syntax-check.mjs` PASS (54 JS/50 MJS); `node scripts/ux-hardening-r2-check.mjs` PASS; `npx playwright test scripts/ux-hardening-r2.spec.js --reporter=line --workers=1` PASS 6/6 (real Chromium). Screenshot fixtures `qa-product-search_block.png` and `qa-product-search_cement.png` demonstrate visible two-result dropdowns, real purchase/search selection event and price/unit population, scoped user visibility. Screenshots contain synthetic test data, **not real production customer items**.
186 - PR #69 exact head `9281d7a078144302df4dbf23a066dc11e49a4a97`: GitHub Quality `38134885163` SUCCESS, Security `38134885100` SUCCESS. Initial red run `38134614070` was due to an incorrect test expectation that `سیمان` must match only cement; `بلوک سیمانی` legitimately matches too. Regression corrected with precise product selection; subsequent CI green.
187 -- No schema, RLS, Auth, roles, tenant membership, Supabase records, invoices, posting, or production data changed. Caveat: user's actual authenticated product master and post-merge site cache/live refresh NOT YET VERIFIED at this checkpoint. Next: merge verified PR #69, verify gated main release deployment and test same site on owner's existing authenticated session (read-only search only).
187 +- No schema, RLS, Auth, roles, tenant membership, Supabase records, invoices, posting, or production data changed. Caveat: user's actual authenticated product master and post-merge site cache/live refresh NOT YET VERIFIED at this checkpoint. Verified after merge: PR #69 merged as `7a3f1f7703ff128bcbbf0906e44889b2833e3dd7`; exact SHA main Quality `38135114282` SUCCESS, Security `38135114272` SUCCESS, Release gate `38135220443` SUCCESS, gated Pages deployment `38135239645` SUCCESS; `CNAME` maps Pages to `factoreasy.ir`. Remote Windows Desktop Commander remains connected and Chromium controlled 6/6 PASS, but attempted Windows interactive desktop capture returned `CopyFromScreen: The handle is invalid`, and direct DNS resolution of `factoreasy.ir` failed from remote and sandbox environments. Thus **a real authenticated user-session product-list lookup and domain HTTP inspection are NOT VERIFIED**; do not claim them. Screenshot artifacts were created only on the authorized remote QA machine, with synthetic inputs, and visually returned to the user in chat. No user finance data was changed. Exactly one safest next action: owner hard-refreshes the deployed site and searches a known real product such as `هارد` in invoice item box; if it still fails, capture screenshot plus browser Console error without sharing credentials.