Skip to content

Notifications temps réel, badges tickets & correction invitations - #116

Merged
bahmez merged 3 commits into
devfrom
bugfix/improve-notification
Feb 8, 2026
Merged

bahmez merged 3 commits into
devfrom
bugfix/improve-notification

Conversation

@bahmez

@bahmez bahmez commented Feb 7, 2026

Copy link
Copy Markdown
Owner

Description

Amélioration du système de notifications et correction d'un bug critique sur les invitations workspace.

Changements

  • Polling automatique des notifications (navbar + page notifications) toutes les 10s
  • Toast temps réel avec icone Bell lors de la réception d'une nouvelle notification
  • Badge notification par ticket sur le board : affiche le nombre de notifications non lues par ticket
  • Marquage automatique comme lu des notifications d'un ticket à l'ouverture de celui-ci
  • Fix invitation FAILED_PRECONDITION : log du lien Firebase Console pour créer l'index manquant sur collectionGroup('invitations')
  • Fix transaction Firestore : réordonnancement des lectures avant les écritures dans acceptInvitationByToken

- Added refetch intervals for notifications and unread count queries to enhance real-time updates.
- Implemented a mechanism to track known notification IDs and display toast alerts for new unread notifications.
- Improved user experience by ensuring timely visibility of new notifications in the navbar.
- Introduced a notification count badge for each ticket in the board view, enhancing user awareness of unread notifications.
- Implemented logic to mark notifications as read when a ticket is opened, improving notification management.
- Updated the board client to fetch and display unread notification counts for tickets, ensuring real-time updates.
@bahmez
bahmez requested a review from schekina2 February 7, 2026 20:43
@bahmez bahmez self-assigned this Feb 7, 2026
@bahmez bahmez added the bug Something isn't working label Feb 7, 2026
- Introduced a new private method `getProjectIdForConsole` to streamline the retrieval of the project ID from environment variables.
- Updated error handling in Firestore index logging to utilize the new method, improving code clarity and maintainability.
@schekina2

Copy link
Copy Markdown
Collaborator

Améliorations des notifications OK (polling, toast temps réel, badge, auto-read).
Bug critique des invitations corrigé (index Firestore + transaction).
Fonctionnement conforme.

@bahmez
bahmez merged commit 43e3580 into dev Feb 8, 2026
1 check passed
@bahmez
bahmez deleted the bugfix/improve-notification branch February 8, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants