Commit graph

28 commits

Author SHA1 Message Date
isUnknown
86db1f5a0c Fix collectLight() : inclure author, text, location pour l'affichage
Problème : collectLight() ne retournait que id/type/isRead/date, causant
notification.author undefined dans le frontend.

Solution : Inclure tous les champs nécessaires à l'affichage (author, text,
location) mais toujours alléger en excluant les gros détails inutiles.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-15 11:55:17 +01:00
isUnknown
0a980603a4 Ajout de collectLight() pour optimiser le chargement du listing des projets
Problème : projects.json.php causait un dépassement mémoire en collectant
toutes les notifications complètes (avec author, location, text, etc.) pour
tous les projets.

Solution : Nouvelle méthode collectLight() qui ne retourne que les données
minimales nécessaires au frontend pour afficher les indicateurs :
- id, type, isRead, date
- location.project.uri (pour le filtrage)

Les détails complets sont toujours chargés dans project.json.php individuel.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-15 11:18:59 +01:00
isUnknown
6ff59e9b07 Fix : URL correcte pour notifications de brief validé depuis PDF + redirect briefs vides
Problème 1 : Les notifications de brief validé depuis un PDF renvoyaient vers
/projects/xxx/client-brief au lieu de l'URL complète avec dialog et fileIndex.

Problème 2 : Les URL /projects/xxx/client-brief pour des briefs non créés
affichaient une page vide au lieu de rediriger vers le kanban.

Solutions :
- Stocker validationDialogUri lors de la validation du brief
- Utiliser ce dialogUri dans ContentProvider et Notifications.vue
- Rediriger vers le projet parent si brief vide et non validé

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-15 10:44:30 +01:00
isUnknown
a7d315942a Refonte du système de notifications : passage aux notifications dérivées
Remplace le système de notifications stockées par un système de providers
qui dérivent les notifications des données existantes (commentaires, réponses,
demandes de projet, demandes de rendez-vous, validations de brief).

- Ajout du NotificationCollector et de l'interface NotificationProvider
- Création de 5 providers : Comment, Reply, ProjectRequest, AppointmentRequest, Content
- Métadonnées de notifications stockées directement sur les entités source
- Nouvelles routes mark-as-read et mark-all-read
- Mise à jour du frontend pour le nouveau système
- Route de migration pour les données existantes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 10:31:31 +01:00
isUnknown
7038185e7f read project creation request notification working 2025-01-23 16:30:17 +01:00
isUnknown
ef09a04b5e read all working 2025-01-15 16:27:09 +01:00
isUnknown
0b472988a2 comments working 2025-01-15 16:27:08 +01:00
isUnknown
246d21f85a read comment notification working 2025-01-15 16:27:08 +01:00
isUnknown
9222069ef5 create and delete notification for a project working 2025-01-15 16:27:08 +01:00
isUnknown
94c5737245 content notification read working 2024-12-19 10:32:48 +01:00
isUnknown
cf83edc1e6 #68 - create comment create working (notification to adapt) 2024-12-18 16:26:55 +01:00
isUnknown
3d4ddc12fc #68 - refactor some of the notification classes to classes plugin to share them with comments 2024-12-18 15:05:42 +01:00
isUnknown
fa36c9ef4a #68 - finish notification class. Content notification on validate brief working 2024-12-18 13:56:21 +01:00
isUnknown
1de18c9685 #34 - fix notification count 2024-12-17 14:21:33 +01:00
isUnknown
f99e33f80e read notification on click working 2024-12-16 18:14:14 +01:00
isUnknown
c1d2c73118 new content notification working for client brief 2024-11-22 09:20:38 +01:00
isUnknown
8ae00d7657 notifications working 2024-11-22 07:53:43 +01:00
isUnknown
ef6375f4cc users / notifications : temporary disabled notifications system 2024-11-21 19:44:02 +01:00
isUnknown
5c9f450539 Notifications page : mark all as read working 2024-11-18 13:45:40 +01:00
isUnknown
32c026acfe comments / notifications : improve abstraction 2024-11-18 12:00:19 +01:00
isUnknown
39fc379541 read comment working 2024-11-18 09:36:15 +01:00
isUnknown
583daa1759 read read notification in front end working 2024-11-17 12:23:28 +01:00
isUnknown
fe56312f20 refactor deleteNotification method 2024-11-17 12:01:20 +01:00
isUnknown
14321b1e8d comment : send notification only to project managers 2024-11-11 13:54:54 +01:00
isUnknown
20824983a6 change notifications structure from object to array 2024-10-30 12:15:28 +01:00
isUnknown
9752fffae6 send notification user method working 2024-10-30 10:56:11 +01:00
isUnknown
4e4216f8d3 merge and add opened comment view 2024-10-29 16:32:49 +01:00
isUnknown
c3860d4a38 add notifications plugin + created reply comment route 2024-10-29 16:32:49 +01:00