21ae3e1aa5
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>
39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
{
|
|
"name": "biz-connect-desktop",
|
|
"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",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"dist": "electron-builder"
|
|
},
|
|
"dependencies": {
|
|
"electron-updater": "^6.3.9",
|
|
"node-notifier": "^10.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^31.0.0",
|
|
"electron-builder": "^24.13.3"
|
|
},
|
|
"build": {
|
|
"appId": "com.bizgaze.connect.desktop",
|
|
"productName": "Biz Connect",
|
|
"directories": { "buildResources": "build", "output": "dist" },
|
|
"publish": [
|
|
{ "provider": "generic", "url": "https://remote.bizgaze.com/downloads/" }
|
|
],
|
|
"win": { "target": "nsis", "icon": "build/icon.ico" },
|
|
"nsis": {
|
|
"oneClick": true,
|
|
"perMachine": false,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "Biz Connect",
|
|
"runAfterFinish": true
|
|
},
|
|
"mac": { "target": "dmg", "category": "public.app-category.business", "icon": "build/icon.ico" },
|
|
"linux": { "target": "AppImage", "category": "Network" }
|
|
}
|
|
}
|