openvibers/openvibe.network Commits

Your machines: the pairing panel stays closed until Pair a machine (#505)

OP OpenVibers committed 11 days ago · bef123514b · 2 files, +5 −0

Changes

ddiff --git a/public/css/my.css b/public/css/my.css
iindex 7fad9d6a..74e3f44d 100644
---- a/public/css/my.css
++++ b/public/css/my.css
@@@ -329,6 +329,9 @@ button.td-stat:hover span { color: var(--accent-light); }
.mc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.mc-top > div { flex: 1 1 320px; min-width: 0; }
.mc-pair { margin: 16px 0 4px; padding: 16px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, transparent); display: grid; gap: 10px; }
++/* Closed until "Pair a machine": its own display:grid outranked the hidden attribute, so an empty dashed box sat under
++ the button (design review, 2026-11-01). */
++.mc-pair[hidden] { display: none; }
.mc-pair h4 { font-size: 15px; }
.mc-code { font: 800 clamp(28px, 6vw, 40px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; color: var(--text); }
.mc-cmd { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); overflow-x: auto; font-size: 12.5px; }
ddiff --git a/test/my-machines.test.js b/test/my-machines.test.js
iindex bf35285f..11fd0175 100644
---- a/test/my-machines.test.js
++++ b/test/my-machines.test.js
@@@ -134,5 +134,7 @@ assert.ok(NOT_FOUND.ACCOUNT_HUB_PATHS.includes('/machines'), '/machines is the a
await p.sandbox.loadMachines();
assert.match(p.ids['mc-list'].textContent, /Sign in to see your machines/);
++ // The pairing panel stays closed until "Pair a machine" (its own display:grid outranked the hidden attribute).
++ assert.match(fs.readFileSync(path.join(__dirname, '..', 'public/css/my.css'), 'utf8'), /\.mc-pair\[hidden\] \{ display: none; \}/);
console.log('my machines: state, running, roles as switches saved whole, rename, a second press to revoke, pairing that watches for the machine, empty and signed out');
})().catch((e) => { console.error(e); process.exit(1); });