Skip to content

feat(reports): add onboarding empty state for first-time users #817#1222

Open
NaitikVerma6776 wants to merge 1 commit into
utksh1:mainfrom
NaitikVerma6776:feat/reports-onboarding-empty-state
Open

feat(reports): add onboarding empty state for first-time users #817#1222
NaitikVerma6776 wants to merge 1 commit into
utksh1:mainfrom
NaitikVerma6776:feat/reports-onboarding-empty-state

Conversation

@NaitikVerma6776

Copy link
Copy Markdown
Contributor

Description

Added a dedicated onboarding empty state for the Reports page. Previously, users with no reports saw the same "Archive Isolated // No entries match the selected filters" message used when filters hide existing reports. This was misleading for first-time users because there were no reports to filter in the first place.

Changes

  • Added a distinct onboarding empty state shown only when reports.length === 0
  • Displayed a "No Briefings Yet" message with a Launch_First_Scan call-to-action linking to /toolkit
  • Preserved the existing "Archive Isolated" empty state for cases where reports exist but current filters hide them
  • Updated the existing test that previously expected the old behavior when no reports exist

No layout or visual redesign was introduced. The implementation reuses the existing neo-brutalist empty-state styling already present on the Reports page.

Related Issues

Closes #817

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Added frontend/testing/unit/pages/Reports.onboarding.test.tsx with 4 focused tests:

  • Onboarding message is shown when there are zero reports
  • Call-to-action link points to /toolkit
  • Onboarding message does not appear when reports exist but filters hide them (existing "Archive Isolated" behavior remains unchanged)
  • Onboarding message is hidden once reports are loaded

Test Results

  • All 4 new onboarding tests passed successfully

Note: Reports.test.tsx and Reports.preferredFormat.test.tsx contain 12 pre-existing failing tests unrelated to this change. The same failures occur when this patch is removed, indicating an existing issue outside the scope of this contribution. This PR intentionally remains focused on the onboarding empty-state enhancement.

Checklist

  • My code follows the code style of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.

@NaitikVerma6776 NaitikVerma6776 changed the title feat(reports): add onboarding empty state for first-time users with n…#817 feat(reports): add onboarding empty state for first-time users #817 Jun 23, 2026
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.

[FEAT] Add onboarding empty state to Reports page

1 participant