(item: NotificationCreate)
| 56 | // Filter mirrors the previous Vue NotificationContext: only the "bytebase" |
| 57 | // module renders; other modules (e.g. agent) own their own UI surface. |
| 58 | export 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 |
no test coverage detected