feat(desktop): Phase D — inline-reply notifications (Windows toast reply box)

Reply to a chat straight from the OS notification, no app switch:
- node-notifier (bundles SnoreToast) renders a native Windows toast with a reply box —
  Electron's own Notification can't do Windows inline reply.
- main.js reply-notification handler resolves {text}|{open}|null; preload exposes replyNotify.
- home.html notify() routes chat toasts through it on desktop: a typed reply -> sendReplyTo()
  POSTs to /api/messages without opening the app; a click opens the chat. Web/PWA path unchanged.
- Works only in the installed app (needs the installer's AppUserModelID). desktop 0.1.2, build batch21.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-01 22:36:02 +05:30
parent 160a66f934
commit 21ae3e1aa5
6 changed files with 133 additions and 13 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
{
"name": "biz-connect-desktop",
"version": "0.1.1",
"version": "0.1.2",
"description": "Biz Connect technician desktop client — loads the Connect web UI with native screen capture",
"author": { "name": "BizGaze", "email": "support@bizgaze.com" },
"main": "main.js",
@@ -9,7 +9,8 @@
"dist": "electron-builder"
},
"dependencies": {
"electron-updater": "^6.3.9"
"electron-updater": "^6.3.9",
"node-notifier": "^10.0.1"
},
"devDependencies": {
"electron": "^31.0.0",