From 071eef43a290e692edb926b05a8b3257bdd593d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Sun, 22 Mar 2026 16:42:45 -0400 Subject: [PATCH] feat(04-02): wire notification-click event handler in renderer - Add notification-click handler in App.tsx IPC event subscription - Calls navigateTo(section, entityId) for instant navigation to target entity - Handler returns early to avoid unnecessary snapshot reload via batcher --- src/renderer/App.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index 9c721d9f..56dd3ddf 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -318,6 +318,10 @@ export function App() { if (event.action === "refresh") void refreshRef.current(); return; } + if (event.type === "notification-click") { + store.getState().navigateTo(event.section, event.entityId); + return; + } // All data-mutating events: batch the snapshot reload batcher.schedule(); });