MCPcopy Create free account
hub / github.com/bytebase/bytebase / pushReactNotification

Function pushReactNotification

frontend/src/react/lib/toast.ts:58–61  ·  view source on GitHub ↗
(item: NotificationCreate)

Source from the content-addressed store, hash-verified

56// Filter mirrors the previous Vue NotificationContext: only the "bytebase"
57// module renders; other modules (e.g. agent) own their own UI surface.
58export function pushReactNotification(item: NotificationCreate): void {
59 if (item.module !== "bytebase") return;
60 toastManager.add(mapNotificationToToast(item));
61}
62
63// Bridge from the Vue side: pushNotification() in the Pinia store dispatches
64// a window CustomEvent. Register at module-eval so events fired during app

Callers 3

createNotificationSliceFunction · 0.90
toast.test.tsFile · 0.90
handlerFunction · 0.85

Calls 2

mapNotificationToToastFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected