feat: admin notification system with priority ordering, bell icon, and /notifications page
Two-tier notification system: new_booking (all public bookings) + pending_booking (notes/today). Priority-sorted queue, unread count polling, enriched responses with user_name/booking_start_time. Fix critical bug: edit_requested cleanup was broken (wrong reason string in 3 handlers). Add 15 new tests covering priority ordering, enrichment, and notification creation flows. Update Admin Manual, Technical Manual, and gap backlog docs.
This commit is contained in:
+5
-4
@@ -262,10 +262,11 @@ r.Route("/admin/users", func(r chi.Router) {
|
||||
r.Get("/pending-approvals", today.GetPendingApprovalsHandler)
|
||||
})
|
||||
|
||||
r.Route("/admin/notifications", func(r chi.Router) {
|
||||
r.Get("/", notifications.GetNotifications)
|
||||
r.Post("/{id}/acknowledge", notifications.AcknowledgeNotification)
|
||||
})
|
||||
r.Route("/admin/notifications", func(r chi.Router) {
|
||||
r.Get("/", notifications.GetNotifications)
|
||||
r.Get("/unread-count", notifications.GetUnreadCount)
|
||||
r.Post("/{id}/acknowledge", notifications.AcknowledgeNotification)
|
||||
})
|
||||
|
||||
r.Route("/admin/time-blockers", func(r chi.Router) {
|
||||
r.Get("/", scheduling.ListTimeBlockers)
|
||||
|
||||
Reference in New Issue
Block a user