@davoodmehraban89 / Factor-easy / commits / 905c452
Fork 0

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

docs: plan invoice product combobox stale-option repair

davoodmehraban89 committed Oct 11, 2026 at 14:36 UTC 905c452ac208f643ab897bca2a3c59c411cc406a
1 file changed +1
PROJECT_STATE.md
+1
@@ -18,6 +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. |
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. |