Skip to content

feat(ui): implement global inline error banner for validation failures #577#967

Open
annukumar123 wants to merge 4 commits into
imDarshanGK:mainfrom
annukumar123:feature/settings-error-banner
Open

feat(ui): implement global inline error banner for validation failures #577#967
annukumar123 wants to merge 4 commits into
imDarshanGK:mainfrom
annukumar123:feature/settings-error-banner

Conversation

@annukumar123

@annukumar123 annukumar123 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

#577

Overview

Added a dedicated inline warning/error banner ecosystem to the top of the Settings Panel layout. This ensures that global API validation failures or local edge-case exceptions are clearly highlighted to the user rather than failing silently or causing layout breakage.

Key Changes

  • Global Error Banner: Rendered a dismissible text banner component styled with warning states to surface error messages dynamically.
  • Dynamic State Management: Set up an async wrapper context via handleSave to catch runtime promise rejections and feed the error UI cleanly.
  • Auto-Dismissal Logic: Configured live clear triggers that instantly wipe outstanding warning fields once a field value begins updating or when the manual close token is clicked.
  • Regression Test Matrix: Authored specialized Vitest checks covering steady-state absence and live banner injection on save rejection loops.

Verification Checklist

  • Tested slider limits past 1.5 locally to trigger the validation card mock.
  • All 2 unit tests running clean under JSDOM environment within 240ms.
Screenshot 2026-07-09 221158

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

@annukumar123 is attempting to deploy a commit to the Darshan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@annukumar123

Copy link
Copy Markdown
Contributor Author

@imDarshanGK
Both CI are working, you can verify now

@imDarshanGK

Copy link
Copy Markdown
Owner

@annukumar123 resolve conflicts

@annukumar123

annukumar123 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

It is perfect .you can verify now

@imDarshanGK imDarshanGK added SSoC26 Part of Social Summer of Code 2026 Medium Feature or backend work with moderate scope labels Jul 10, 2026
@imDarshanGK

Copy link
Copy Markdown
Owner

@annukumar123 resolve conflicts

@annukumar123

Copy link
Copy Markdown
Contributor Author

@imDarshanGK
it is perfect .you can verify now

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

Labels

Medium Feature or backend work with moderate scope SSoC26 Part of Social Summer of Code 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants