-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Location: frontend/lib/types/notification.ts
Description
Before any notification hooks or UI components can be built, the TypeScript interfaces for the notifications feature need to be defined. These types are shared across the NotificationBell component, the notifications page, and any query hooks that interact with the notifications API.
Acceptance Criteria
-
frontend/lib/types/notification.tsexports:- A
NotificationTypeunion type:"BOOKING_CREATED" | "BOOKING_CONFIRMED" | "BOOKING_CANCELLED" | "BOOKING_COMPLETED" | "PAYMENT_SUCCESS" | "PAYMENT_FAILED" | "INVOICE_READY" - A
Notificationinterface with:id: stringtype: NotificationTypetitle: stringmessage: stringisRead: booleanuserId: stringcreatedAt: stringupdatedAt: string
- A
NotificationsResponseinterface with:data: Notification[]meta: { total: number; page: number; limit: number; totalPages: number; unreadCount: number }
- A
- Only TypeScript
interfaceandtypedeclarations — no runtime code -
npx tsc --noEmitpasses with no errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers