Repository navigation
feat(readiness): commander-facing readiness overview as the staff home - #16
Merged
Merged
Conversation
One screen that tells the measure -> remediate -> retest story: - GET /api/readiness (trainer/admin, org-scoped like live campaigns): readiness index with its components and weights, report-rate trend over the last campaigns, remediation-loop funnel, average resistance per Cialdini principle, lab discrimination (Inbox Triage d'), and the attack-surface posture with the easiest crown jewel. - The index is transparent: report rate 40%, did-not-click 20%, principle resistance 20%, triage 20%; components without data are left out and the weights renormalised. - Cohort-level only (G13): the activity feed carries source, principle, status and date — no person, no free-text reason; the top attack path shows the asset, not the entry person. - ReadinessPage becomes "/" for admins and trainers; Command Center moves to /command. Remaining hard-coded nav labels go through i18n. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A single screen that tells the Pretexta story — measure → remediate → retest — for a commander or trainer. It becomes
/for admins and trainers; Command Center moves to/command.Backend —
GET /api/readiness(trainer/admin; admins see all orgs, trainers their own, same scoping as live campaigns)Privacy (G13) — everything is cohort-level. The activity feed returns only
source / principle / status / created_at(no person, no free-text reason); the top attack path shows the asset, not the entry person.Frontend —
ReadinessPage: gauge with the visible formula, report-rate trend (Recharts), 4-step loop funnel, principle radar, posture card, lab card, anonymous feed. EN/ID strings; remaining hard-coded nav labels now go through i18n.Test plan
pytest— 210 passed; newtests/test_readiness.py: staff-only, empty org, index + loop math, trainer org isolation, weight renormalisation, feed has no identifying fieldsruff check/ruff format --checkCI=true craco build🤖 Generated with Claude Code