fix: login submits on Enter (real <form>) + desktop notifications show "Biz Connect"
- home.html: login is now a real <form> 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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.<name>"; 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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -731,7 +731,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<script src="/icons.js?v=4"></script>
|
||||
<script>window.__BUILD='2026-06-30-batch18';console.log('%cBiz Connect','color:#1F3B73;font-weight:bold','build '+window.__BUILD);</script>
|
||||
<script>window.__BUILD='2026-07-01-batch19';console.log('%cBiz Connect','color:#1F3B73;font-weight:bold','build '+window.__BUILD);</script>
|
||||
<div class="loading" id="loading">Loading…</div>
|
||||
|
||||
<header>
|
||||
@@ -2704,13 +2704,13 @@ async function renderLogin(){
|
||||
<button id="tabLogin" class="active">Sign in</button>
|
||||
<button id="tabReg">Register team</button>
|
||||
</div>`:''}
|
||||
<div id="loginForm">
|
||||
<span class="lbl">Email</span><input id="li_email" type="email" placeholder="you@bizgaze.com">
|
||||
<form id="loginForm">
|
||||
<span class="lbl">Email</span><input id="li_email" type="email" placeholder="you@bizgaze.com" autocomplete="username">
|
||||
<span class="lbl">Password</span>${pwField('li_pw','password')}
|
||||
<label style="display:flex;align-items:center;gap:.5rem;margin:.7rem 0;color:var(--ink);font-size:.9rem;cursor:pointer"><input type="checkbox" id="li_remember" style="width:18px;height:18px;accent-color:var(--blue);margin:0"> Remember me on this device</label>
|
||||
<button class="gobtn" id="li_btn">Sign in</button>
|
||||
<button class="gobtn" id="li_btn" type="submit">Sign in</button>
|
||||
<p id="li_err" class="formerr"></p>
|
||||
</div>
|
||||
</form>
|
||||
${regOpen?`<div id="regForm" class="hidden">
|
||||
<span class="lbl">Team name</span><input id="rg_team" placeholder="e.g. Acme Inc">
|
||||
<span class="lbl">Email</span><input id="rg_email" type="email" placeholder="you@bizgaze.com">
|
||||
@@ -2719,9 +2719,8 @@ async function renderLogin(){
|
||||
<p id="rg_err" class="formerr"></p>
|
||||
</div>`:''}
|
||||
</div>`;
|
||||
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');
|
||||
|
||||
Reference in New Issue
Block a user