Skip to content

feat: implement unified notification system with toast alerts for user feedback#432

Open
AliRana30 wants to merge 2 commits intofossasia:mainfrom
AliRana30:feat/unified-notification-system
Open

feat: implement unified notification system with toast alerts for user feedback#432
AliRana30 wants to merge 2 commits intofossasia:mainfrom
AliRana30:feat/unified-notification-system

Conversation

@AliRana30
Copy link

Fixes

Refactors the notification system into a single unified approach.


Summary of Changes

  • Standardized notifications for success, error, and info messages.
  • Replaced old Materialize toasts and manual alerts.
  • Improved UI consistency for the side panel and popup.

Screenshots

Tested and verified modern toast animations in the UI.

scrum

Error toast :

error

Checklist

  • I’ve tested my changes locally
  • My code follows the project’s code style guidelines

Fixes : #405

Copilot AI review requested due to automatic review settings March 6, 2026 17:43
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @AliRana30, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Implements a unified toast-based notification system across the extension UI (popup/side panel), replacing legacy Materialize toasts and inline alert/error injections while also hardening a few related UX and query/date-handling paths.

Changes:

  • Added a new NotificationSystem utility for consistent, DOM-safe toast notifications.
  • Replaced several inline error message injections / Materialize toasts with unified toasts in popup + scrum generation flows.
  • Normalized some date handling to local YYYY-MM-DD formatting and improved org-filter query encoding/fallback behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/scripts/scrumHelper.js Uses unified toasts for popup feedback; improves date formatting and GitHub org query handling.
src/scripts/popup.js Replaces popup messaging with NotificationSystem, adds more user feedback and safer “insert into email” gating.
src/scripts/notifications.js Introduces the new toast notification utility (DOM-built, XSS-safe).
src/popup.html Loads the new notifications script and adjusts mode/layout-related markup/styles.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AliRana30
Copy link
Author

@vedansh-5 PR is ready to be reviewed

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

Labels

core extension frontend javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor: Implement Unified Notification System and Improve Error Resilience

2 participants