Skip to content

feat(frontend): add degraded health status warning banner#23

Merged
ionfwsrijan merged 1 commit into
ionfwsrijan:mainfrom
Trishanthsai:issue-18-health-banner
Jun 3, 2026
Merged

feat(frontend): add degraded health status warning banner#23
ionfwsrijan merged 1 commit into
ionfwsrijan:mainfrom
Trishanthsai:issue-18-health-banner

Conversation

@Trishanthsai
Copy link
Copy Markdown
Contributor

Linked issue

Closes #18

What this PR does

Adds a frontend warning banner that informs users when the system is running in a degraded state. The banner is displayed when the backend /health endpoint reports a degraded status and optionally shows which scanners are unavailable.

Type of change

  • Enhancement

ML tier (if applicable)

  • Not ML-related

Changes

Frontend

  • Added HealthResponse type for /health endpoint responses
  • Added getHealth() API function to fetch health status
  • Fetches health status when the application loads
  • Displays a warning banner when the system status is degraded
  • Informs users that scan results may be incomplete
  • Displays unavailable scanner names reported by the backend

Testing

How did you test this?

  • Ran the frontend and backend locally
  • Verified that the warning banner appears when the /health endpoint returns status: "degraded"
  • Verified that unavailable scanner names are displayed in the banner
  • Verified that the application loads normally and the banner is not shown when the system is healthy

Checklist

  • No new console errors introduced
  • Feature tested locally
  • Existing functionality remains unaffected

Anything reviewers should focus on

  • Health status fetching logic
  • Degraded state detection
  • Warning banner visibility and messaging
  • Handling of unavailable scanner information
image(484)

@Trishanthsai
Copy link
Copy Markdown
Contributor Author

Hi @ionfwsrijan,

I've completed the implementation for Issue #18 and opened the PR. Could you please take a look when you get a chance?

Thanks!

@ionfwsrijan ionfwsrijan added frontend Frontend issues easy Easy difficulty SSoC26 enhancement New feature or request labels Jun 3, 2026
@ionfwsrijan ionfwsrijan merged commit ad52270 into ionfwsrijan:main Jun 3, 2026
6 checks passed
@ionfwsrijan
Copy link
Copy Markdown
Owner

@Trishanthsai Looks good to me. Great work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy Easy difficulty enhancement New feature or request frontend Frontend issues SSoC26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend warning banner for degraded health status

2 participants