Implemented KYB, compliance decisions, integration, and testing
This commit is contained in:
@@ -75,3 +75,19 @@ No staff registration, merchant deletion UI, merchant portal, uploads, payment p
|
||||
- [x] Retained form values on failure, accessible controls and bilingual feedback
|
||||
|
||||
Verification: all 32 integration tests passed against the isolated PostgreSQL service, including role/stage rejection cases, filters, creation, races and injected transaction rollback. All 19 browser tests passed, covering EN/RU at mobile and desktop sizes, real API creation/filtering/history, pipeline progression and rejection, ownership isolation, stale-editor preservation and the existing compliance journeys. Build, lint, typecheck, 17 unit tests, formatting and whitespace checks passed. The additive sales migration was applied to development without a reset or reseed.
|
||||
|
||||
## Gated onboarding completion
|
||||
|
||||
- [x] Three current KYB collection records: company registration, ownership structure and authorized-representative identification; legacy requirements remain read-only history
|
||||
- [x] Sales collection status/notes restricted to Head or assigned Manager in KYB, with received-history submission evidence and pending-review locks
|
||||
- [x] Compliance-only approval with risk/rationale, actionable corrections stored separately from collection notes, and rejection with a reason
|
||||
- [x] Numbered immutable review snapshots and outcomes; only the latest current-policy approval authorizes activation; open forms remain bound to their original cycle
|
||||
- [x] Four persisted demo activation checks with stage-specific editing, approved-cycle attribution and change history; no external payment/processing calls
|
||||
- [x] Compliance queue with pending/filtered counts, elapsed waiting time, URL-persisted search/manager/age filters and direct review-cycle links
|
||||
- [x] Server-derived next owner, required action and specific blockers; distinct business closure and Compliance decisions; responsive EN/RU UI
|
||||
- [x] Additive legacy upgrade and explicit return-to-KYB recovery; existing decisions and collection history remain unchanged
|
||||
- [x] Fresh fixture approval/check evidence, preserved existing fixture edits and passwords, and repeatable seed behavior
|
||||
|
||||
Verification: 41 integration tests passed, including a populated legacy-schema migration, correction/resubmission, stale decisions, older approval/check evidence, concurrent writes, authorization bypasses, queue filters and transaction rollback. All 20 unit/contract/localization tests, build, lint, typecheck, formatting and whitespace checks passed. All 24 browser tests passed. Browser verification covers the complete successful journey through Live, rejection, conflict preservation, direct review links, queue filtering, EN/RU and mobile/desktop layouts. Screenshots were visually inspected.
|
||||
|
||||
Applied migrations `202609240005_gated_onboarding` and `202609240006_kyb_upgrade` to development without a reset or reseed. Before/after checksums confirmed original company data, review decisions/snapshots, collection notes/history, activities, stage events, tasks and password hashes were unchanged for all 45 merchants. Only new missing representative records and unfinished merchant concurrency versions were added. Local health, authentication, detail capabilities and queue authorization passed for all four demo accounts; smoke-test sessions were signed out afterward.
|
||||
|
||||
Reference in New Issue
Block a user