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

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

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

Synced Dec 3, 17:00 UTC

docs: record verified lifetime-license release and missing authenticated production acceptance

davoodmehraban89 committed Oct 15, 2026 at 19:53 UTC cf3c41d4f74086de10c78637d668fe4d338d2689
1 file changed +8
PROJECT_STATE.md
+8
@@ -707,3 +707,11 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
707
708 - **Scoped code/test implemented (CI PENDING):** `js/core.js` now creates `FinoraOrganizationContextReady`, keeps auth controls independent, and waits for organization adapter readiness before starting entitlement/profile fetch; asset loading still runs concurrently and inherits existing abort timeout. `js/organization-rbac.js` signals after its full module/wrapper installation. `updateLicenseDisplay` differentiates unavailable/unknown from truly expired/cancelled without loosening `canWrite()`. `index.html` and `js/bootstrap.js` cache-bust updated core, loader and org adapter for previously cached browser sessions. New synthetic Chromium test in `scripts/phase0-startup-performance.spec.js` delays organization module 1600ms while starting a fake authenticated transition and asserts no premature placeholder fetch, correct lifetime badge, non-expiry for unavailable state and preserved no-write-to-production behavior. No real account credentials or SQL changes.
709 - **Evidence needed:** exact head static/build/browser + disposable DB and security CI; protected main merge; guarded Pages deploy + owner test-account hard reload should show `وضعیت اشتراک : نامحدود` if same verified organization context. If not, inspect browser account/organization/version rather than changing entitlements.
710 +
711 +### 2026-10-15 test-account license bootstrap fix — MERGED / EXACT-SHA RELEASE VERIFIED / LIVE USER ACCEPTANCE BLOCKED ON SESSION
712 +- **Fix merged in protected main:** [PR #145](https://github.com/davoodmehraban89/Factor-easy/pull/145), squash commit `4288e4a0473f7b58d4e7ac5865d3396825a34d00`. The initial fix attempt exposed a stale-version assertion in `scripts/login-connectivity-check.mjs`, which was corrected. The next run found the pre-existing expired-license DOM fixture now needed to wait for organization readiness; that was corrected without changing genuine expired-license enforcement.
713 +- **Exact PR-head checks at `1c16da89a07409ebd3a2b91e8780a6e30d06bf2c`:** Quality `38632344973` SUCCESS, Security `38632344751` SUCCESS; 119/119 Chromium Playwright PASS, including synthetic delayed organization module and synthetic genuinely expired license; all three disposable DB jobs PASS. No production SQL writes or real account data touched by tests.
714 +- **Exact protected-main SHA release evidence:** Quality [38633048129](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38633048129) SUCCESS; Security [38633048164](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38633048164) SUCCESS; Release gate [38633828981](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38633828981) SUCCESS; Deploy gated Pages [38633933732](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38633933732) SUCCESS. A redundant prior release-gate run was cancelled; the succeeding gate and its Pages deploy are verified on the same main SHA.
715 +- **Actual read-only authenticated acceptance remains OPEN:** TinyFish run `3d97a4ee-e576-4905-b251-fe94a8a26628` reached `https://factoreasy.ir` and reloaded, but showed login only, no signed-in session/dashboard/license badge. TinyFish browser profile `prof_beabc8beb1f04ed4` was independently checked and reports `signed_in_sites=[]`; the prior remembered test-account session is not presently saved/usable. This does NOT establish that the fix failed, nor that the real badge displays unlimited. Production Auth/organization/entitlement cannot be inspected through this run. Do not change production licenses or bypass Auth.
716 +- **Owner action to unblock only if they wish:** reauthenticate the TEST/WORK account using TinyFish profile setup (password entered on official site, never in chat; save signed-in browser context) or personally log into the real site with test account and share the sanitized license badge. Then observe `وضعیت اشتراک : نامحدود` after an authenticated page reload, confirming the visible organization belongs to the correct test account; if still expired, collect redacted UI status and inspect client freshness/network/organization context without license updates. Owner account remains a separate account; don't ask to use it for this test.
717 +- **Other open gates unchanged:** owner affected-network login repeatability (Phase 0), production encrypted SQL backup + off-device copy + isolated restore (`PRODUCTION_BACKUP_NOT_RUN / RECOVERY_NOT_VERIFIED`), migration parity and comprehensive tenant tests. Documentation-only continuation; rollback revert doc PR.