Repository navigation
SECFOO-22: Clear empty states for new users - #38
Merged
Merged
Conversation
Checked every dashboard page with an empty store (a brand-new user's first view): - Assessments list said "No assessments match these filters" when there were no assessments at all, with no next step. It now says "No assessments yet" with a New Assessment button; the filters message is kept for when filters really match nothing, plus a "Clear filters" link. - Activity pages (Security Architecture, Threat Modeling, SAST, SCA, Secret Scanning and the simpler skill pages) showed all-zero cards and charts with no explanation. They now open with "No <activity> runs yet" and how to start (Run Assessment page or `secfoo run --skill`). - Third-party page showed a full list of "not assessed" bars with no message. It now explains how to create a third-party assessment. New shared empty_state() macro in _macros.html (alert box + optional action button, role="status"); spacing comes from an .empty-state class in alerts.css rather than new inline styles. Tests cover both sides of each case (message shown with no data, gone once there is data). Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What does this change, and why?
Part of SECFOO-22 (Initiative 3: Dashboard usability), empty states item. Independent of the other SECFOO-22 PRs, with no conflicts with #34.
I opened every dashboard page against an empty store, which is what a brand-new user sees first:
secfoo run --skill <id>)Overview, Responsible AI and the findings lists already had clear empty messages, so they're unchanged.
empty_state()macro in_macros.html: the existingalert alert--infobox with a title and an optional action button,role="status"..empty-staterule inalerts.css(both copies) rather than new inline styles, so it also works under the portal CSP.counts/run_count.Testing
pytest tests: 820 passed; the new tests check both sides of each case (message with no data, gone once there's data). 6 fail without the template changes.Screenshots
Assessments (empty store):

Activity page (empty store):

🤖 Generated with Claude Code