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
This commit is contained in:
ZacharyZhang-NY committed 2026-03-22 16:42:45 -04:00
1 parent 667ac48aa5
commit 071eef43a2
1 file changed
+4
+4
View File
@@ -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();
});