From e5c94ebf6d80996768cc85f6d94ac1119b2500ff Mon Sep 17 00:00:00 2001 From: sravan Date: Wed, 1 Jul 2026 18:19:01 +0530 Subject: [PATCH] fix: login submits on Enter (real
) + desktop notifications show "Biz Connect" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - home.html: login is now a real with a submit button, so Enter (or click) both submit natively — replaces the ad-hoc keydown handler. (build batch19; header stays removed) - desktop/main.js: app.setAppUserModelId('com.bizgaze.connect.desktop') so Windows resolves the installed shortcut and toasts read "Biz Connect" instead of "electron.app.BizConnect". - desktop version → 0.1.1; installer rebuilt. Co-Authored-By: Claude Opus 4.8 --- desktop/main.js | 5 +++++ desktop/package.json | 2 +- server/public/home.html | 13 ++++++------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/desktop/main.js b/desktop/main.js index 8ec0f25..b9518f3 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -17,6 +17,11 @@ const path = require('path'); let autoUpdater = null; try { ({ autoUpdater } = require('electron-updater')); } catch (_) { /* not installed in dev */ } +// Windows attributes notifications to the AppUserModelID. Without setting it, toasts read +// "electron.app."; setting it to the installer's appId makes Windows resolve the +// installed "Biz Connect" shortcut, so notifications show "Biz Connect". +app.setAppUserModelId('com.bizgaze.connect.desktop'); + // Renderer asks (via preload) to raise the window — e.g. when an OS notification is clicked. ipcMain.on('focus-window', () => { if (!win) return; diff --git a/desktop/package.json b/desktop/package.json index dfc4ff0..3a43767 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -1,6 +1,6 @@ { "name": "biz-connect-desktop", - "version": "0.1.0", + "version": "0.1.1", "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", diff --git a/server/public/home.html b/server/public/home.html index 8eae0f8..fc963e7 100644 --- a/server/public/home.html +++ b/server/public/home.html @@ -731,7 +731,7 @@ - +
Loading…
@@ -2704,13 +2704,13 @@ async function renderLogin(){ `:''} -
- Email + + Email Password${pwField('li_pw','password')} - +

-
+ ${regOpen?``:''} `; - document.getElementById('li_btn').onclick=doLogin; + document.getElementById('loginForm').addEventListener('submit',(e)=>{ e.preventDefault(); doLogin(); }); // Enter or "Sign in" both submit wireEyes(); - onEnter(['li_email','li_pw'],doLogin); if(regOpen){ const lf=document.getElementById('loginForm'), rf=document.getElementById('regForm'); const tl=document.getElementById('tabLogin'), tr=document.getElementById('tabReg');