سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 14:30 UTC
docs: record remote browser evidence, scope and pending deployment for PR 69
davoodmehraban89 committed
Oct 11, 2026 at 14:47 UTC
a0cf410bc72a8722ece1d5fcaafd361a0e10e23f
1 file changed
+9
-1
PROJECT_STATE.md
+9
-1
@@ -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. | **PLANNED — READ-ONLY DATA / NO FINANCIAL MUTATION** | 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. | **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. |
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. |
@@ -177,3 +177,11 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
177
178
179
2026-10-11 login diagnostic implementation: added explicit '????? ????? ?? ???? ????' action on login screen, credential-free parallel same-origin manifest + GoTrue /auth/v1/health (publishable key) probe with bounded 12s timeout, stable AUTH_OK/AUTH_UNREACHABLE/AUTH_TIMEOUT/AUTH_HTTP_NNN/SITE_UNREACHABLE statuses and automatic probe when password login rejects due network. Preserved existing sign-in policy, passwords, and Supabase endpoint. Bumped core.js cache key; added login-connectivity.js. Verified on local source AND Pages artifact: Playwright 3/3 diagnostics PASS each; syntax check 54 JS+50 MJS PASS; static diagnostic check PASS; branding/login PASS; golden accounting journey PASS; site build PASS. Live browser fake invalid account got real GoTrue HTTP 400 invalid_credentials from both site origins (client-to-Supabase working from remote Windows); user network route NOT VERIFIED and restored login NOT CLAIMED. Cloudflare DNS for factoreasy.ir is DNS-only; routing a new public proxy would add a security boundary, require approvals/cost checks and must NOT be silently enabled. Next: PR CI and gated Pages exact SHA publication; user to click new button on affected network and share status, then decide whether DNS/ISP or auth route change is justified.
180
+
181
+
182
+## 2026-10-11 invoice product lookup repair — PR #69
183
+- Owner screenshot evidence: populated products master; invoice row initially empty, seller searchable selector works. Source root cause: `finoraEnsureInitialInvoiceRow` creates row before `pullAll()` completes, while initial row `<select>` options are captured only at creation; additional product dropdown is clipped by scrollable invoice table.
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).