openvibers/openvibe.network Commits
Your machines: the pairing panel stays closed until Pair a machine (#505)
Changes
@@@ -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; }@@@ -134,5 +134,7 @@ assert.ok(NOT_FOUND.ACCOUNT_HUB_PATHS.includes('/machines'), '/machines is the aawait 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); });
@@ -329,6 +329,9 @@ button.td-stat:hover span { color: var(--accent-light); }
@@ -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 { 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-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; }
.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-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-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; }
.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; }
@@ -134,5 +134,7 @@ assert.ok(NOT_FOUND.ACCOUNT_HUB_PATHS.includes('/machines'), '/machines is the a
@@ -134,5 +134,7 @@ assert.ok(NOT_FOUND.ACCOUNT_HUB_PATHS.includes('/machines'), '/machines is the a
await p.sandbox.loadMachines();
await p.sandbox.loadMachines();
assert.match(p.ids['mc-list'].textContent, /Sign in to see your machines/);
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');
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); });
})().catch((e) => { console.error(e); process.exit(1); });