mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 10:23:11 +00:00
Header bell panel and /notifications page share one feed from GET /api/notifications: labeled sections with live counts, unread styling, session-only dismiss and clear all (acknowledge rows excluded), and deep links to the unassigned queue and a work order's tab via ?wo=&tab=.
10 lines
312 B
TypeScript
10 lines
312 B
TypeScript
import { apiGet } from "@/api/api";
|
|
import {
|
|
notificationFeedSchema,
|
|
type NotificationFeed,
|
|
} from "@/domain/notifications/types/notification-feed";
|
|
|
|
export const notificationsApi = {
|
|
feed: async (): Promise<NotificationFeed> =>
|
|
notificationFeedSchema.parse(await apiGet<unknown>("notifications")),
|
|
};
|