@davoodmehraban89 / Factor-easy / commits / b34162e
Fork 0

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

docs(phase0): record owner Chrome login success and keep repeatability gate open

davoodmehraban89 committed Oct 13, 2026 at 07:39 UTC b34162ec400397810f027f31db749a1f4e265bd1
2 files changed +13 -1
PROJECT_STATE.md
+7
@@ -135,6 +135,13 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
135 - **Exact protected-main release:** [Quality 38314813962](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38314813962) SUCCESS, [Security 38314813972](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38314813972) SUCCESS, [Release gate 38315115231](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38315115231) SUCCESS, [gated Pages 38315149869](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38315149869) SUCCESS. Duplicate Release 38314958511 CANCELLED and Pages 38315138483 SKIPPED are excluded.
136 - **Critical boundary:** cannot assert the actual owner's ISP login is repaired; no owner device authenticated success, real waterfall or affected-ISP asset HTTP readback. Desktop Commander monthly quota previously exhausted, not bypassed. No changes to Supabase Auth/RLS/schema/roles/accounts, finance/posted invoices, SMS or production customer data. Owner to hard-refresh affected Chrome, try real sign-in once and report only success/time/`BOOT_*` code; compare independent hotspot if it still fails. Issue #106 / F0-01 / overall Phase 0 **OPEN**. Rollback: revert #118 via Quality/Security/Release/Pages; no DB rollback.
137
138 +### 2026-10-13 F0-01 owner actual Chrome sign-in after #118 — FIRST AFFECTED-ISP SUCCESS / REPEATABILITY OPEN
139 +- **Latest owner test (direct statement in chat):** In the same Windows Chrome, owner pressed `Ctrl+Shift+R` at `https://factoreasy.ir/`, signed in with the existing account privately, and **the primary Finora workspace opened successfully**. Owner-reported wait was approximately **20 seconds**. This is the **first positive owner-reported authenticated, affected-browser sign-in result following bundled Pages release #118**; unlike synthetic CI, it exercises the real owner network/browser. The assistant did not remotely witness the session, collect credentials, independently time navigation, or inspect the loaded asset hashes.
140 +- **Interpretation:** Earlier blanket "real login not verified" is superseded for **one manually tested login**. Record status as **OWNER_REPORTED_AUTHENTICATED_LOGIN_PASS (one run, ~20s)**, **NOT** proven reliable cold/warm start, logout/relogin, tab/browser reopen, repeat refresh, acceptable latency SLA, financial workspace hydration correctness, F0-02/03/04 or two-user RLS. A 20s total wait is a measured concern for usability, but it does not alone localize network or code delay. Do **not** assert F0-01 fully OWNER-ACCEPTED or close issue #106 until repeatability/expectations are established. Do not infer `BOOT_APP_ASSETS` can never recur.
141 +- **Verified code/release baseline re-read:** protected `main` = `47b2aa7a70f4fc4a01ce5e39dd3578b1d3563e9b`; same SHA Quality `38315777620`, Security `38315777523`, Release Gate `38316074399`, gated Pages `38316127506` all SUCCESS (cancelled/skipped counterparts excluded). PR #118 runtime merge `192c04a7e4c6324131f5c1b50a45bfa091c46a7a` uses three ordered critical bundles and one extension bundle. Live Supabase `hcsixhqbyuhpshfwqpjx` `ACTIVE_HEALTHY`, 82 migrations, latest `20261012075507`; `public` RLS 18/18, `private` RLS 3/10, with no permissions altered in this review. These independently verified repository/backend controls are not proof of user-side latency.
142 +- **Next minimal owner acceptance check:** without sharing identifiers or network captures, try one ordinary logout→login **or** a browser close/reopen followed by login on the same ISP; report workspace yes/no and approximate elapsed time. Once stable, user may verify the original company's visible data and a safe page refresh (no posting/writing). If only a 20s delay remains, investigate an explicitly defined acceptable target with browser timing evidence; do not optimize financially sensitive `pullAll()` based on guesswork.
143 +- **Change boundary:** documentation-only evidence ledger and F0-01 acceptance register; no application JS, deployment, production account/Auth, server role/RLS/schema, financial records, OTP/SMS or credentials touched. Keep [issue #106](https://github.com/davoodmehraban89/Factor-easy/issues/106) open with updated owner-positive result and follow-up. **Phase 0 OPEN**; remaining F0-02/03/04/05/06/07 owner-context gates unaffected. Rollback: revert docs-only PR.
144 +
145 ## Current change ledger
146 | 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. |
147
docs/FINORA_PHASE0_ACCEPTANCE_REGISTER_2026-10-12.md
+6 -1
@@ -19,7 +19,7 @@ Status definitions: **CONTROLLED QA PASS** = actual Chromium or isolated tests w
19
20 | ID | Priority | Current evidence | Acceptance status | Required next proof / owner |
21 |---|---|---|---|---|
22 -| **F0-01** · Login/affected ISP | Production HTTP 200, historical synthetic Auth probes | **UNVERIFIED real user** / P0 open | Existing authorized login and refresh from affected ISP; browser/time/error screenshot with secrets redacted. QA/Auth. |
22 +| **F0-01** · Login/affected ISP | **2026-10-13 owner reports real Chrome success after `Ctrl+Shift+R`: existing-account login reaches primary Finora workspace in ~20 seconds** on the previously affected browser/ISP; protected-main bundled runtime #118 released, current main `47b2aa7a...`, Quality `38315777620`, Security `38315777523`, Release `38316074399`, Pages `38316127506` all SUCCESS. User session was not independently witnessed or instrumented. | **ONE OWNER-REPORTED AUTHENTICATED LOGIN PASS; repeatability, reload and latency acceptance OPEN** / P0 follow-up | Repeat one ordinary login after logout or reopening browser and confirm workspace/reload stays usable; report approximate time without identity or tokens. Do not close F0-01/#106 until repeated stability and owner acceptance. QA/Auth. |
23 | **F0-02** · Real product & person selection | PR #83 merged; keyboard/F2 and synthetic matching in Chromium | **CONTROLLED QA PASS; live tenant UNVERIFIED** / P0 open | Select existing `هارد` or `بلوک` and person in authorized tenant; correct unit/price/company boundary; no cross-tenant leak. UX/Data. |
24 | **F0-03** · Invoice lifecycle | `scripts/phase0-invoice-persistence.spec.js` passes **2/2** on mock RPC: save→reload→edit→print, retry without duplication; no ledger posting | **CONTROLLED QA PASS; real persistence UNVERIFIED** / P0 open | Only separately approved isolated account/test scope: actual server save/reload/edit/print and reconcile duplicate count; never post fake accounting in production. Commerce/QA. |
25 | **F0-04** · Print | Owner hardcopy/photo reproduced pale diagonal `پیش‌نویس — غیرقطعی` overlay on existing goods/services invoice; narrowly removed in PR #90; draft and pro-forma Chromium checks added, accounting state unchanged | **FIX RELEASED + CONTROLLED QA PASS; OWNER REPRINT UNVERIFIED** / P0 open | On the deployed PR #90 code, owner still checks a saved draft/ordinary sale invoice and purchase/pro-forma print: watermark absent, all rows/totals/dates visible; real printer/PDF and taxpayer-specific semantics are separate. Print QA. |
@@ -77,3 +77,8 @@ All nine PR heads **diverge** from current main (observed GitHub compare); there
77
78 - **Exact protected-main promotion:** PR #90 (validated head `72a69b372ef59ffbb7dddebf81d64304b3559b04`) merged to `main` as **`8a0023c53f0c14b0063ab771fdb3669a05997387`**. Same-SHA [Quality 38212519911](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38212519911), [Security 38212519908](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38212519908), [Release gate 38212644579](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38212644579) and [Deploy gated Pages 38212680498](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38212680498) **all SUCCESS**. Canceled/skipped duplicate workflow runs were not counted.
79 - **Real-domain read-only proof:** From authorized remote Windows device, HTTP reads of `https://factoreasy.ir/?cleanPrint=20261012` and `https://factoreasy.ir/js/print.js?v=20261012-clean-invoice-print-v1` confirmed the live HTML references new print bundle (`True`), the bundle includes `stageInvoicePrint(containerHtml,spec)` (`True`), and the old `draftMark` string is absent (`False`). This verifies published code/asset, **not** physical hardcopy success.
80 +
81 +## 2026-10-13 addendum — owner-browser first successful login
82 +
83 +- The owner reports a successful sign-in to the main Finora workspace on the affected Windows Chrome after `Ctrl+Shift+R`; approximate total wait **20 seconds**. This replaces the older 'never successfully signed in' state for **one owner-observed attempt only**, not F0-01 full acceptance. It does not validate second-login stability, ordinary reload, browser restart, or a performance target.
84 +- Same-SHA gated deploy and production backend health rechecked as above; no product/DB/auth/finance modifications. Issue #106 remains OPEN for one repeat login/reload and measured responsiveness. Other Phase 0 user-context gates are independent and remain OPEN.