Skip to content

SECFOO-22: Clear empty states for new users - #38

Merged
vsn411 merged 1 commit into
secfoo-com:mainfrom
AmirNCI:fix/secfoo-22-empty-states
Nov 1, 2026
Merged

vsn411 merged 1 commit into
secfoo-com:mainfrom
AmirNCI:fix/secfoo-22-empty-states

Conversation

@AmirNCI

@AmirNCI AmirNCI commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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:

Page Before After
Assessments list "No assessments match these filters" when there were none at all; no next step "No assessments yet" + New Assessment button. The filter message stays for real filter misses, now with a Clear filters link.
Activity pages (Architecture, Threat Modeling, SAST, SCA, Secret Scanning, simpler skill pages) All-zero cards and empty charts, no explanation Opens with "No runs yet" and how to start (Run Assessment page or secfoo run --skill <id>)
Third-party Full list of "not assessed" bars, no message Explains how to create a third-party assessment and what evidence to upload

Overview, Responsible AI and the findings lists already had clear empty messages, so they're unchanged.

  • New empty_state() macro in _macros.html: the existing alert alert--info box with a title and an optional action button, role="status".
  • Spacing comes from a small .empty-state rule in alerts.css (both copies) rather than new inline styles, so it also works under the portal CSP.
  • No route changes; the pages already had counts / run_count.

Testing

Screenshots

Assessments (empty store):
D-after-empty-assessments

Activity page (empty store):
D-after-empty-activity

🤖 Generated with Claude Code

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]>
@vsn411
vsn411 merged commit a5e9712 into secfoo-com:main Nov 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants