clavarium 0.2.21-next.2 → 0.2.22-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.21-next.2",
3
+ "version": "0.2.22-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.21-next.2",
9
+ "version": "0.2.22-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
13
13
  "@xterm/xterm": "^6.0.0",
14
- "clavarium-docket": "0.1.0-next.2",
15
- "clavarium-parley": "0.13.2-next.1",
14
+ "clavarium-docket": "0.1.0",
15
+ "clavarium-parley": "0.13.2",
16
16
  "mermaid": "11.17.2",
17
17
  "node-pty": "^1.1.0",
18
18
  "pdfjs-dist": "6.4.299",
@@ -687,9 +687,9 @@
687
687
  }
688
688
  },
689
689
  "node_modules/clavarium-docket": {
690
- "version": "0.1.0-next.2",
691
- "resolved": "https://registry.npmjs.org/clavarium-docket/-/clavarium-docket-0.1.0-next.2.tgz",
692
- "integrity": "sha512-g3j0kvessJcdXUPkagSXYetDUIqJvPzTt9RT345rn0xu3bC5HKYpNgUkOhQAPQ2iU0BBfcf5SQlwfE1f3NhXTA==",
690
+ "version": "0.1.0",
691
+ "resolved": "https://registry.npmjs.org/clavarium-docket/-/clavarium-docket-0.1.0.tgz",
692
+ "integrity": "sha512-lGZR16J8/fLxfGXVPhB2JFXCwHTZJsol4eLXXbBY8PFZz+T0/hzObPuFiK+dIrNnvLfuXTPyGFeIwI9/vyXa4Q==",
693
693
  "license": "MIT",
694
694
  "bin": {
695
695
  "docket": "bin/docket.mjs",
@@ -700,9 +700,9 @@
700
700
  }
701
701
  },
702
702
  "node_modules/clavarium-parley": {
703
- "version": "0.13.2-next.1",
704
- "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.13.2-next.1.tgz",
705
- "integrity": "sha512-+jnrnnKWJeIOlfNZoWQVkl7qydmoE+j4M6YuhjiYjVP0EgrEm7mmcqlGfzaiOcLNMKU47ZLXif1Z4C2vHCeaNg==",
703
+ "version": "0.13.2",
704
+ "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.13.2.tgz",
705
+ "integrity": "sha512-S1U62cNUjTGity2ISPhZl0mtUfTdR57l0on1ydrS00ey/U9PVoyCB943exUx6ahGHQ1JAl/tD412YVmITYy21A==",
706
706
  "license": "MIT",
707
707
  "bin": {
708
708
  "parley": "bin/parley.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.21-next.2",
3
+ "version": "0.2.22-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
@@ -44,8 +44,8 @@
44
44
  "dependencies": {
45
45
  "@xterm/addon-fit": "^0.11.0",
46
46
  "@xterm/xterm": "^6.0.0",
47
- "clavarium-docket": "0.1.0-next.2",
48
- "clavarium-parley": "0.13.2-next.1",
47
+ "clavarium-docket": "0.1.0",
48
+ "clavarium-parley": "0.13.2",
49
49
  "mermaid": "11.17.2",
50
50
  "node-pty": "^1.1.0",
51
51
  "pdfjs-dist": "6.4.299",
package/web/app.js CHANGED
@@ -2039,8 +2039,8 @@
2039
2039
  $('machine-size-wait').textContent = waiting; $('machine-size-wait').hidden = !waiting;
2040
2040
  /* Asleep: chosen now, applied as it wakes -- it is not woken for it. */
2041
2041
  $('machine-size-hint').textContent = here?.asleep === true
2042
- ? 'It is asleep: a new size is kept and applied when it wakes. Its machine is then stopped cleanly, set and started again, and the tool takes up its session. A disk can only grow.'
2043
- : 'Changing them stops the machine cleanly, sets them and starts it again: its work folder, folders and branches stay. A disk can only grow.';
2042
+ ? 'Asleep: kept and applied when it wakes. A disk only grows.'
2043
+ : 'Restarts the machine; its work stays. A disk only grows.';
2044
2044
  $('machine-later-text').textContent = here?.sizeAtWake ? `Will be applied when it wakes: ${laterWords(here.sizeAtWake)}` : '';
2045
2045
  $('machine-later').hidden = !here?.sizeAtWake;
2046
2046
  $('machine-size-apply').textContent = here?.asleep === true ? 'Keep for its wake' : 'Apply...';
@@ -2445,9 +2445,9 @@
2445
2445
  $('talk-invite').hidden = !talk.on;
2446
2446
  $('talk-declare').hidden = !talk.on;
2447
2447
  if (talk.on) $('talk-declare').textContent = talk.tools
2448
- ? `Then "Ask the tool to use it": it is told, in its terminal, that parley is installed in its machine, to use it and to write to you in ${languageName(deviceLang())}. From then on, this conversation opens on its chat; its terminal is one click away.`
2449
- : 'The tools folder (/tools) is not in place on this server yet: the tool cannot be asked to install parley.';
2450
- if (!talk.on && talk.possible === false) $('talk-about').textContent = 'This conversation works on the disk of its machine: talking through the app needs its work folder kept here.';
2448
+ ? `Then "Ask the tool to use it": it is told to talk to you here, in ${languageName(deviceLang())}.`
2449
+ : 'The tools folder (/tools) is not in place yet: the tool cannot be asked.';
2450
+ if (!talk.on && talk.possible === false) $('talk-about').textContent = 'Needs its work folder kept here (it works on its machine\'s disk)';
2451
2451
  }
2452
2452
  for (const b of $('talk-on').children) {
2453
2453
  b.addEventListener('click', async () => {
@@ -2616,24 +2616,24 @@
2616
2616
  const state = $('alerts-state');
2617
2617
  if (!pushable()) {
2618
2618
  $('alerts-on').hidden = true;
2619
- state.textContent = /iPad|iPhone|iPod/.test(navigator.userAgent) ? 'On an iPhone or an iPad, alerts come once the page is installed as an app (Share, then "Add to Home Screen").' : 'This browser cannot be alerted.';
2619
+ state.textContent = /iPad|iPhone|iPod/.test(navigator.userAgent) ? 'Install the app first (Share, then "Add to Home Screen")' : 'Not possible in this browser';
2620
2620
  return;
2621
2621
  }
2622
2622
  const registration = await navigator.serviceWorker.ready;
2623
2623
  const mine = await registration.pushManager.getSubscription();
2624
2624
  const about = await fetch(`${API}/alerts`).then((r) => r.json()).catch(() => ({ devices: [] }));
2625
2625
  $('alerts-on').hidden = Boolean(mine); $('alerts-off').hidden = $('alerts-test').hidden = !mine;
2626
- state.textContent = said ?? (mine ? `This device is told when a tool stops and waits for you. ${about.devices.length} device(s) in all.` : `When a tool stops and waits for you, this device can be told.${about.devices.length > 0 ? ` ${about.devices.length} other device(s) already are.` : ''}`);
2626
+ state.textContent = said ?? (mine ? `On · ${about.devices.length} device${about.devices.length === 1 ? '' : 's'} in all` : `Off${about.devices.length > 0 ? ` · ${about.devices.length} other device${about.devices.length === 1 ? '' : 's'} on` : ''}`);
2627
2627
  }
2628
2628
  $('alerts-on').addEventListener('click', async () => {
2629
2629
  try {
2630
- if ((await Notification.requestPermission()) !== 'granted') { await paintAlerts('Alerts are refused for this site in the settings of this browser.'); return; }
2630
+ if ((await Notification.requestPermission()) !== 'granted') { await paintAlerts('Refused in this browser\'s settings'); return; }
2631
2631
  const { key } = await fetch(`${API}/alerts`).then((r) => r.json());
2632
2632
  const registration = await navigator.serviceWorker.ready;
2633
2633
  const subscription = await registration.pushManager.subscribe({ userVisibleOnly: true, applicationServerKey: pushKey(key) });
2634
2634
  await post(`${API}/alerts`, { subscription: subscription.toJSON(), label: /Android/.test(navigator.userAgent) ? 'Android' : /iPad|iPhone/.test(navigator.userAgent) ? 'iPhone or iPad' : 'Computer' });
2635
2635
  await paintAlerts();
2636
- } catch (error) { await paintAlerts(`This device could not be set up for alerts: ${error.message}`); }
2636
+ } catch (error) { await paintAlerts(`Could not be set up: ${error.message}`); }
2637
2637
  });
2638
2638
  $('alerts-off').addEventListener('click', async () => {
2639
2639
  const registration = await navigator.serviceWorker.ready;
@@ -3746,13 +3746,15 @@
3746
3746
  await paintOperators();
3747
3747
  };
3748
3748
  for (const o of got.operators) {
3749
- const row = el('div', 'folder'); row.dataset.email = o.email;
3750
- const name = el('b', '', o.email);
3751
- const state = el('small', 'hint', o.locked ? ` locked until ${new Date(o.locked).toLocaleTimeString([], { timeStyle: 'short' })}` : o.enabled ? (o.email === got.me ? ' you' : '') : ' disabled');
3752
- name.append(state);
3749
+ const row = el('div', 'list-item folder'); row.dataset.email = o.email;
3750
+ const name = el('div', 'set-what'); name.append(el('b', '', o.email));
3751
+ const word = o.locked ? `Locked until ${new Date(o.locked).toLocaleTimeString([], { timeStyle: 'short' })}` : o.enabled ? (o.email === got.me ? 'You' : '') : 'Disabled';
3752
+ if (word) name.append(el('small', '', word));
3753
3753
  const buttons = [['password', 'New password']];
3754
3754
  if (o.email !== got.me) buttons.push(o.enabled ? ['disable', 'Disable'] : ['enable', 'Enable'], ['remove', 'Remove']);
3755
- row.append(name, ...buttons.map(([verb, label]) => { const b = el('button', verb === 'remove' ? 'danger' : '', label); b.type = 'button'; b.dataset.act = verb; b.addEventListener('click', () => void act([o.email, verb])); return b; }));
3755
+ const acts = el('div', 'set-control');
3756
+ acts.append(...buttons.map(([verb, label]) => { const b = el('button', verb === 'remove' ? 'danger' : '', label); b.type = 'button'; b.dataset.act = verb; b.addEventListener('click', () => void act([o.email, verb])); return b; }));
3757
+ row.append(name, acts);
3756
3758
  rows.append(row);
3757
3759
  }
3758
3760
  }
@@ -3768,6 +3770,17 @@
3768
3770
  catch (error) { $('operators-error').textContent = error.message; $('operators-error').hidden = false; }
3769
3771
  await paintOperators();
3770
3772
  });
3773
+ /* THE CATEGORIES OF SETTINGS, beside them on a wide screen: one click brings its group into sight; the one in sight is marked. */
3774
+ const settingsNav = [...document.querySelectorAll('#settings-nav button[data-group]')];
3775
+ const markGroup = (key) => { for (const b of settingsNav) b.setAttribute('aria-current', String(b.dataset.group === key)); };
3776
+ for (const b of settingsNav) b.addEventListener('click', () => { document.getElementById(`settings-group-${b.dataset.group}`)?.scrollIntoView({ block: 'start', behavior: 'smooth' }); markGroup(b.dataset.group); });
3777
+ $('settings').addEventListener('scroll', () => {
3778
+ const top = $('settings').getBoundingClientRect().top + 60;
3779
+ const groups = [...document.querySelectorAll('#settings .settings-group')];
3780
+ const seen = groups.filter((g) => g.getBoundingClientRect().top <= top).pop() ?? groups[0];
3781
+ if (seen) markGroup(seen.dataset.group);
3782
+ }, { passive: true });
3783
+ markGroup('device');
3771
3784
  async function openSettings({ push = true } = {}) {
3772
3785
  enterPlace('settings', push);
3773
3786
  void paintAlerts().catch(() => {});
@@ -3776,9 +3789,10 @@
3776
3789
  const [platform, saved] = await Promise.all([fetch(`${API}/platform`).then((r) => r.json()).catch(() => ({})), fetch(`${API}/shortcuts`).then((r) => r.json()).catch(() => [])]);
3777
3790
  const list = $('settings-shortcuts'); list.replaceChildren();
3778
3791
  for (const shortcut of saved) {
3779
- const row = document.createElement('div'); row.className = 'folder';
3780
- const label = document.createElement('b'); label.textContent = shortcut.label;
3781
- const what = document.createElement('small'); what.className = 'hint'; what.textContent = ` ${shortcut.enter ? 'sent with Enter' : 'typed, left to be completed'}`; label.append(what);
3792
+ const row = document.createElement('div'); row.className = 'list-item';
3793
+ const label = document.createElement('div'); label.className = 'set-what';
3794
+ const name = document.createElement('b'); name.textContent = shortcut.label;
3795
+ const what = document.createElement('small'); what.textContent = shortcut.enter ? 'Sends Enter' : 'Typed, not sent'; label.append(name, what);
3782
3796
  const remove = document.createElement('button'); remove.type = 'button'; remove.textContent = 'Remove';
3783
3797
  remove.addEventListener('click', async () => { await post(`${API}/shortcuts/${shortcut.id}/remove`).catch(() => {}); await openSettings(); void paintShortcuts(); });
3784
3798
  row.append(label, remove); list.append(row);
@@ -3786,11 +3800,11 @@
3786
3800
  void paintDictation();
3787
3801
  void paintOperators();
3788
3802
  /* With no shortcut, one line: how to add one (this is the only place to remove them). */
3789
- $('settings-shortcuts-hint').textContent = saved.length ? 'The ready-made answers under the terminal. They are added there ("+ Shortcut"); they are removed here.' : 'No shortcut yet: add one under the terminal, with "+ Shortcut".';
3803
+ $('settings-shortcuts-hint').textContent = saved.length ? 'Added under the terminal, with "+ Shortcut".' : 'No shortcut yet · add one under the terminal, with "+ Shortcut".';
3790
3804
  $('settings-people').textContent = (platform.operators ?? []).length
3791
- ? `Who may sign in: ${platform.operators.join(', ')} (Settings, Administrators).`
3792
- : 'Development mode: anyone on this machine is the operator.';
3793
- $('settings-address').textContent = `Address: ${platform.address ?? 'not declared'}.`;
3805
+ ? `Administrators: ${platform.operators.join(', ')}`
3806
+ : 'Development mode: anyone on this machine is the operator';
3807
+ $('settings-address').textContent = `Address: ${platform.address ?? 'not declared'}`;
3794
3808
  $('settings-about').textContent = `Clavarium ${platform.version ?? ''}`;
3795
3809
  void paintInstance();
3796
3810
  if ($('settings-wifi-top').open) void paintWifi();
@@ -3816,12 +3830,10 @@
3816
3830
  };
3817
3831
  async function paintDictation() {
3818
3832
  const [about, secrets] = await Promise.all([getJson('/dictation', null), getJson('/secrets', [])]);
3819
- if (!about) { $('settings-dictation').textContent = 'Dictation cannot be set from here.'; $('dictation-form').hidden = true; return; }
3820
- $('settings-dictation').textContent = about.source === 'settings'
3821
- ? `On: speech is turned into text by "${about.model}", chosen here.${about.env ? ' The engine set on the server (CLAVARIUM_TRANSCRIPTION_URL) is the fallback when this is turned off.' : ''}`
3822
- : about.source === 'env'
3823
- ? `On: speech is turned into text by "${about.env.model}", set on the server (CLAVARIUM_TRANSCRIPTION_URL). An engine chosen here takes its place.`
3824
- : 'Off: no speech-to-text engine, so Dictate is not offered. Choose one below.';
3833
+ if (!about) { $('settings-dictation').textContent = 'Not set from here'; $('dictation-form').hidden = true; return; }
3834
+ $('settings-dictation').textContent = about.source === 'settings' ? `On · "${about.model}" · chosen here`
3835
+ : about.source === 'env' ? `On · "${about.env.model}" · set on the server` : 'Off · choose a provider';
3836
+ $('settings-dictation').dataset.tone = about.source ? 'ok' : '';
3825
3837
  if (about.secretMissing) dictationSay(`The secret "${about.secret}" is gone: choose another key.`);
3826
3838
  dictationProviders = about.providers;
3827
3839
  const provider = $('dictation-provider');
@@ -3906,14 +3918,15 @@
3906
3918
  async function paintCertificate() {
3907
3919
  const c = await fetch(`${API}/certificate`).then((r) => (r.ok ? r.json() : null)).catch(() => null);
3908
3920
  const line = $('updates-certificate');
3909
- if (!c || c.local) { line.hidden = true; return; }
3921
+ if (!c || c.local) { $('updates-certificate-row').hidden = true; return; }
3910
3922
  const day = (iso) => new Date(iso).toLocaleDateString(undefined, { dateStyle: 'medium' });
3911
3923
  const bad = c.none || !c.trusted || c.daysLeft < 10;
3912
- line.className = bad ? 'error' : 'hint';
3913
- line.textContent = c.none ? `Certificate of ${c.domain}: none is served (${c.why}).`
3914
- : !c.trusted ? `Certificate of ${c.domain}: browsers do not trust it (${c.why})${c.local ? ', it is the machine\'s own until Let\'s Encrypt gives one: sudo clavarium doctor --certificate' : ''}.`
3915
- : `Certificate of ${c.domain}: by ${c.issuer}, valid until ${day(c.validTo)} (${c.daysLeft} days); renewed by itself.${c.daysLeft < 10 ? ' It should have been renewed already: sudo clavarium doctor --certificate.' : ''}`;
3916
- line.hidden = false;
3924
+ line.className = bad ? 'error' : '';
3925
+ line.textContent = c.none ? `None served (${c.why})`
3926
+ : !c.trusted ? `Not trusted by browsers (${c.why})${c.local ? ' · sudo clavarium doctor --certificate' : ''}`
3927
+ : `${c.issuer} · until ${day(c.validTo)} · renews by itself${c.daysLeft < 10 ? ' · late: sudo clavarium doctor --certificate' : ''}`;
3928
+ line.title = c.domain;
3929
+ $('updates-certificate-row').hidden = false;
3917
3930
  }
3918
3931
  /* WHEN IT HAPPENS, in words: the next look of the updater, and when a version that is out gets installed. */
3919
3932
  function paintUpdatesWhen(u) {
@@ -3921,14 +3934,14 @@
3921
3934
  box.hidden = !u.installed || !w; if (box.hidden) return;
3922
3935
  const clock = (ms) => new Date(ms).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
3923
3936
  const inWords = (ms) => { const m = Math.max(1, Math.round((ms - Date.now()) / 60_000)); return m < 60 ? `in ${m} min` : m < 36 * 60 ? `in ${Math.round(m / 60)} h` : `in ${Math.round(m / 1440)} days`; };
3924
- const look = w.nextLookAt ? `the next look ${inWords(w.nextLookAt)} (around ${clock(w.nextLookAt)})` : 'the next look in a few minutes';
3925
- const out = u.available ? `${u.available} is out. ` : '';
3937
+ const look = w.nextLookAt ? `next check ${inWords(w.nextLookAt)} (${clock(w.nextLookAt)})` : 'next check in a few minutes';
3938
+ const out = u.available ? `${u.available} is out · ` : '';
3926
3939
  const lines = {
3927
- auto: w.inWindow ? `${out}Inside the update window now: ${u.available ? 'it is installed at' : 'a version that is out is installed at'} ${look}. The window closes at ${clock(w.windowClosesAt)}.`
3928
- : `${out}${u.available ? 'It is installed' : 'Updates are installed'} in the window only: it opens ${inWords(w.windowOpensAt)} (at ${clock(w.windowOpensAt)}, until ${clock(w.windowClosesAt)}). Looked at every 15 minutes inside it.`,
3929
- asap: `${out}Looked at every 15 minutes, ${look}: ${u.available ? 'it is installed then' : 'a version that is out is installed then'}.`,
3930
- ask: `${out}The registry is asked about every 6 hours${w.askNextAt ? `, next ${inWords(w.askNextAt)}` : ''}; nothing is installed until you choose Update.`,
3931
- off: 'Never by itself: use Check now, then Update.',
3940
+ auto: w.inWindow ? `${out}In the window now · ${look} · closes at ${clock(w.windowClosesAt)}`
3941
+ : `${out}Installed in the window only · it opens ${inWords(w.windowOpensAt)} (${clock(w.windowOpensAt)} to ${clock(w.windowClosesAt)})`,
3942
+ asap: `${out}Installed as soon as out · ${look}`,
3943
+ ask: `${out}Checked every 6 h${w.askNextAt ? ` · next ${inWords(w.askNextAt)}` : ''} · installed when you choose`,
3944
+ off: 'Off · Check now, then Update',
3932
3945
  };
3933
3946
  box.textContent = lines[w.mode] ?? '';
3934
3947
  }
@@ -3941,15 +3954,23 @@
3941
3954
  $('updates-version').textContent = `Clavarium ${u.version ?? ''}`;
3942
3955
  /* Its relay, kept at the version of each release by the updater -- or why not, and what to do once. */
3943
3956
  const relay = u.relay;
3957
+ /* [what is said, what to do once (behind a small "i"), whether it asks for something]. */
3944
3958
  const RELAY_SAID = {
3945
- brought: (r) => `The relay was brought to ${r.version} with this update.`,
3946
- current: (r) => `The relay is up to date (${r.version}).`,
3947
- refused: () => 'The relay does not take this server\'s maintenance key, so it is not kept up to date by itself. Once: on this server, sudo clavarium key gives its two keys; on the relay, run relay.sh again with --key and --keeper-key.',
3948
- 'no-key': () => 'This server has no maintenance key for its relay: the relay is not kept up to date by itself (sudo clavarium online --relay HOST sets one up).',
3949
- failed: (r) => `The relay could not be brought up to date: ${r.why ?? 'unknown'}. Tried again at the next turn of the updater.`,
3959
+ brought: (r) => [`Relay updated to ${r.version}`],
3960
+ current: (r) => [`Relay up to date (${r.version})`],
3961
+ refused: () => ['Relay not kept up to date: it refuses this server\'s key', 'Once: sudo clavarium key on this server, then relay.sh again on the relay, with --key and --keeper-key.', true],
3962
+ 'no-key': () => ['Relay not kept up to date: no maintenance key', 'sudo clavarium online --relay HOST sets one up.', true],
3963
+ failed: (r) => [`Relay update failed: ${r.why ?? 'unknown'} · tried again later`, '', true],
3950
3964
  };
3951
- $('updates-relay').hidden = !relay || !RELAY_SAID[relay.state];
3952
- if (relay && RELAY_SAID[relay.state]) { $('updates-relay').textContent = RELAY_SAID[relay.state](relay); $('updates-relay').dataset.state = relay.state; }
3965
+ const relayBox = $('updates-relay');
3966
+ relayBox.hidden = !relay || !RELAY_SAID[relay.state];
3967
+ if (relay && RELAY_SAID[relay.state]) {
3968
+ const [said, todo, asks] = RELAY_SAID[relay.state](relay);
3969
+ relayBox.replaceChildren(el('span', '', said));
3970
+ if (todo) { const more = el('details', 'more'); more.append(el('summary', '', 'How'), el('span', '', todo)); relayBox.append(' ', more); }
3971
+ relayBox.className = asks ? 'callout' : 'hint';
3972
+ relayBox.dataset.state = relay.state;
3973
+ }
3953
3974
  paintUpdatesWhen(u);
3954
3975
  void paintCertificate();
3955
3976
  for (const id of ['updates-check', 'updates-settings', 'updates-back']) $(id).hidden = !u.installed;
@@ -3960,6 +3981,7 @@
3960
3981
  }
3961
3982
  const running = u.running;
3962
3983
  updatesBusy = Boolean(running);
3984
+ $('updates-line').dataset.tone = running ? 'warn' : u.checkError ? 'bad' : u.available ? 'warn' : 'ok';
3963
3985
  $('updates-state').textContent = running ? `${running.action === 'back' ? 'Going back to' : 'Updating to'} ${running.version}: ${running.step.toLowerCase()}...`
3964
3986
  : u.checkError ? 'Could not check just now.'
3965
3987
  : u.available ? `${u.available} is out.`
@@ -3988,7 +4010,7 @@
3988
4010
  [$('updates-from').value, $('updates-to').value] = u.window.split('-');
3989
4011
  }
3990
4012
  const auto = u.mode === 'auto';
3991
- $('updates-window').hidden = !auto; $('updates-window-label').hidden = !auto;
4013
+ $('updates-window').hidden = !auto; $('updates-window-label').hidden = !auto; $('updates-window-row').hidden = !auto;
3992
4014
  const back = $('updates-back'); back.replaceChildren();
3993
4015
  for (const r of running ? [] : u.back) {
3994
4016
  const b = document.createElement('button'); b.type = 'button'; b.textContent = `Go back to ${r.version}`;
@@ -4399,7 +4421,7 @@
4399
4421
  const q = new URLSearchParams({ kind: $('events-kind').value, q: $('events-q').value.trim(), limit: '100', ...(before ? { before } : {}) });
4400
4422
  const got = await fetch(`${API}/events?${q}`).then((r) => (r.ok ? r.json() : null)).catch(() => null);
4401
4423
  if (ask !== eventsAsk) return;
4402
- if (!got) { $('events-said').textContent = 'What happened cannot be read just now.'; return; }
4424
+ if (!got) { $('events-said').textContent = 'Activity cannot be read just now.'; return; }
4403
4425
  eventsShown = more ? [...eventsShown, ...got] : got;
4404
4426
  const list = $('events-list'); if (!more) list.replaceChildren();
4405
4427
  for (const e of got) {
@@ -4632,12 +4654,12 @@
4632
4654
  if (!r) return;
4633
4655
  const lines = [];
4634
4656
  if (r.current) {
4635
- lines.push(`Made ${day(r.current.builtAt)}${r.current.sizeMb ? `, ${(r.current.sizeMb / 1024).toFixed(1)} GB on disk` : ''}. Holds: ${r.current.tools.join(', ') || 'no tool'}.`);
4636
- lines.push(r.current.fresh ? `Next rebuild around ${day(r.current.refreshAt)}.` : `Older than ${r.maxAgeDays} days: new conversations are built the long way until it is rebuilt.`);
4637
- } else lines.push('None yet: new conversations are built the long way (several minutes).');
4638
- if (r.building) lines.push(`Being rebuilt since ${new Date(r.building.since).toLocaleTimeString()} (${r.building.step}). New conversations use ${r.current ? 'the current one' : 'the long way'} meanwhile.`);
4639
- if (r.error && !r.building) lines.push(`Last rebuild failed: ${r.error}`);
4640
- $('shelf-state').textContent = lines.join(' ');
4657
+ lines.push(`Made ${day(r.current.builtAt)}${r.current.sizeMb ? ` · ${(r.current.sizeMb / 1024).toFixed(1)} GB` : ''} · holds ${r.current.tools.join(', ') || 'no tool'}`);
4658
+ lines.push(r.current.fresh ? `next rebuild around ${day(r.current.refreshAt)}` : `older than ${r.maxAgeDays} days: new conversations take longer`);
4659
+ } else lines.push('None yet: new conversations take several minutes');
4660
+ if (r.building) lines.push(`rebuilding since ${new Date(r.building.since).toLocaleTimeString()} (${r.building.step})`);
4661
+ if (r.error && !r.building) lines.push(`last rebuild failed: ${r.error}`);
4662
+ $('shelf-state').textContent = lines.join(' · ');
4641
4663
  $('shelf-error').hidden = !r.refused || Boolean(r.building);
4642
4664
  $('shelf-error').textContent = r.refused?.text ?? '';
4643
4665
  $('shelf-rebuild').disabled = Boolean(r.building);
@@ -4658,17 +4680,19 @@
4658
4680
  const rows = $('git-hosts'); rows.replaceChildren();
4659
4681
  $('git-hosts-empty').hidden = hosts.length > 0;
4660
4682
  for (const h of hosts) {
4661
- const row = document.createElement('div'); row.className = 'folder'; row.dataset.host = h.host;
4662
- const label = document.createElement('b'); label.textContent = h.host;
4663
- const key = document.createElement('code'); key.textContent = `${h.type} ${h.fingerprint}`;
4683
+ const row = document.createElement('div'); row.className = 'list-item folder'; row.dataset.host = h.host;
4684
+ const label = document.createElement('div'); label.className = 'set-what';
4685
+ const name = document.createElement('b'); name.textContent = h.host;
4686
+ const key = document.createElement('small'); key.className = 'mono-cut'; key.textContent = `${h.type} ${h.fingerprint}`; key.title = key.textContent;
4687
+ label.append(name, key);
4664
4688
  const forget = document.createElement('button'); forget.type = 'button'; forget.textContent = 'Forget';
4665
4689
  forget.addEventListener('click', async () => {
4666
- if (forget.dataset.sure !== 'yes') { forget.dataset.sure = 'yes'; forget.textContent = 'Yes, forget it: the next contact will trust whatever key this server shows'; return; }
4690
+ if (forget.dataset.sure !== 'yes') { forget.dataset.sure = 'yes'; forget.textContent = 'Yes, forget it'; return; }
4667
4691
  forget.disabled = true; $('git-hosts-error').hidden = true;
4668
4692
  try { await post(`${API}/git-hosts/forget`, { host: h.host }); } catch (error) { $('git-hosts-error').textContent = error.message; $('git-hosts-error').hidden = false; }
4669
4693
  await paintHosts();
4670
4694
  });
4671
- row.append(label, key, forget); rows.append(row);
4695
+ row.append(label, forget); rows.append(row);
4672
4696
  }
4673
4697
  }
4674
4698
  $('settings-close').addEventListener('click', () => leavePlace());
@@ -6825,7 +6849,7 @@
6825
6849
  const apple = /iPad|iPhone|iPod/.test(navigator.userAgent) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
6826
6850
  let installEvent = null;
6827
6851
  let installOffered = false;
6828
- const offerInstall = () => { installOffered = true; $('install').hidden = false; };
6852
+ const offerInstall = () => { installOffered = true; $('install').hidden = false; $('install-row').hidden = false; };
6829
6853
  /* Chrome reads the manifest again when its address changes, and may then
6830
6854
  offer the install anew: that offer, if it comes soon, is the one used. */
6831
6855
  let freshOffer = null;
@@ -6833,7 +6857,7 @@
6833
6857
  event.preventDefault(); installEvent = event; offerInstall();
6834
6858
  if (freshOffer) { const take = freshOffer; freshOffer = null; take(event); }
6835
6859
  });
6836
- addEventListener('appinstalled', () => { installEvent = null; installOffered = false; $('install').hidden = true; $('install-name-form').hidden = true; });
6860
+ addEventListener('appinstalled', () => { installEvent = null; installOffered = false; $('install').hidden = true; $('install-row').hidden = true; $('install-name-form').hidden = true; });
6837
6861
  if (apple && !asApp) offerInstall();
6838
6862
  /* FIRST A NAME FOR THIS DEVICE, then the browser's own question. */
6839
6863
  $('install').addEventListener('click', async () => {
@@ -6868,7 +6892,7 @@
6868
6892
  installEvent = null;
6869
6893
  asked.prompt();
6870
6894
  const choice = await asked.userChoice.catch(() => ({ outcome: 'dismissed' }));
6871
- if (choice.outcome === 'accepted') { installOffered = false; $('install').hidden = true; }
6895
+ if (choice.outcome === 'accepted') { installOffered = false; $('install').hidden = true; $('install-row').hidden = true; }
6872
6896
  else installEvent = asked;
6873
6897
  });
6874
6898
 
package/web/index.html CHANGED
@@ -128,22 +128,19 @@
128
128
  <div class="panel-top"><b id="panel-title">This conversation</b></div>
129
129
  <p id="panel-error" class="error" role="alert" hidden></p>
130
130
  <details class="chapter" id="chapter-general" data-chapter="general">
131
- <summary><span class="chapter-title">General</span><span class="chapter-about">What it is, and how you talk with it.</span></summary>
131
+ <summary><span class="chapter-title">General</span><span class="chapter-about">Name, group, chat.</span></summary>
132
132
  <div class="chapter-body">
133
133
  <dl id="general-facts" class="facts"></dl>
134
134
  <div id="title-box" hidden>
135
- <form id="title-form" class="row" autocomplete="off"><label for="title-name">Name</label><input id="title-name" maxlength="60" spellcheck="false"><button type="submit">Save</button></form>
135
+ <form id="title-form" class="set-row" autocomplete="off"><div class="set-what"><label for="title-name">Name</label></div><div class="set-control"><input id="title-name" maxlength="60" spellcheck="false"><button type="submit">Save</button></div></form>
136
136
  </div>
137
137
  <div id="group-box" hidden>
138
- <form id="group-form" class="row" autocomplete="off"><label for="group-name">Group</label><input id="group-name" maxlength="40" list="group-names" placeholder="None" spellcheck="false"><button type="submit">Save</button></form>
139
- <p class="hint">A folder of the list, shared by every device: choose one, type a new one, or empty it for none.</p>
140
- <form id="group-rename-form" class="row" autocomplete="off" hidden><label for="group-rename">Rename its group</label><input id="group-rename" maxlength="40" spellcheck="false"><button type="submit">Rename for all</button></form>
141
- <div class="row" id="order-row"><span>Its place</span><button type="button" id="move-up">Move up</button><button type="button" id="move-down">Move down</button><button type="button" id="group-up" hidden>Group up</button><button type="button" id="group-down" hidden>Group down</button></div>
142
- <p class="hint" id="order-hint">The same order on every device. In the list: drag it (on a phone or tablet, hold it, then drag), or Alt and an arrow key.</p>
138
+ <form id="group-form" class="set-row" autocomplete="off"><div class="set-what"><label for="group-name">Group</label><small>A folder of the list. Empty: none</small></div><div class="set-control"><input id="group-name" maxlength="40" list="group-names" placeholder="None" spellcheck="false"><button type="submit">Save</button></div></form>
139
+ <form id="group-rename-form" class="set-row" autocomplete="off" hidden><div class="set-what"><label for="group-rename">Rename its group</label></div><div class="set-control"><input id="group-rename" maxlength="40" spellcheck="false"><button type="submit">Rename for all</button></div></form>
140
+ <div class="set-row" id="order-row"><div class="set-what"><span>Its place</span><small id="order-hint">Also: drag it in the list, or Alt and an arrow</small></div><div class="set-control"><button type="button" id="move-up">Move up</button><button type="button" id="move-down">Move down</button><button type="button" id="group-up" hidden>Group up</button><button type="button" id="group-down" hidden>Group down</button></div></div>
143
141
  </div>
144
142
  <div id="hide-box" hidden>
145
- <div class="row"><span>In the list</span><div class="levels" id="hide-on" role="group" aria-label="Hidden from the list"><button type="button" data-on="false">Shown</button><button type="button" data-on="true">Hidden</button></div></div>
146
- <p class="hint">Hidden, it runs as before, keeps what it was given and stays in Access; "hidden" at the bottom of the list shows it.</p>
143
+ <div class="set-row"><div class="set-what"><span>In the list</span><small>Hidden, it still runs</small></div><div class="set-control"><div class="levels" id="hide-on" role="group" aria-label="Hidden from the list"><button type="button" data-on="false">Shown</button><button type="button" data-on="true">Hidden</button></div></div></div>
147
144
  </div>
148
145
  <!-- WHAT ITS TOOL IS TOLD ABOUT WHERE IT IS: the exact text, made by the
149
146
  server from these settings; the owner's own lines; told again on a click. -->
@@ -152,32 +149,27 @@
152
149
  <div id="guide-shown" hidden>
153
150
  <label for="guide-lines">Your own lines for it</label>
154
151
  <textarea id="guide-lines" rows="3" maxlength="1200" spellcheck="true" placeholder="Write to me in French.&#10;Never change the photos in family-archive."></textarea>
155
- <p class="hint" id="guide-limits">What you want it to keep in mind: your language, what not to touch, how to work. Plain text, 12 short lines at most; never a password or a key.</p>
152
+ <p class="hint" id="guide-limits">Your language, what not to touch, how to work. 12 short lines; never a password.</p>
156
153
  <div class="row"><button type="button" id="guide-save">Save my lines</button><button type="button" id="guide-tell">Tell it again</button></div>
157
- <p class="hint" id="guide-tell-hint">Saved, it is in its machine for its next start. Tell it again: it is already working, and should read it now (one line is typed in its terminal).</p>
154
+ <p class="hint" id="guide-tell-hint">Saved: read at its next start. Tell it again: read now.</p>
158
155
  <p class="hint" id="guide-said" role="status"></p>
159
156
  <p class="hint" id="guide-where"></p>
160
157
  <pre id="guide-text" tabindex="0" aria-label="What its tool is told"></pre>
161
158
  </div>
162
159
  </div>
163
160
  <div id="talk-box">
164
- <div class="panel-top"><b>Talk through the app</b></div>
165
- <p class="hint" id="talk-about">A chat screen instead of its terminal: a small command, parley, installed in its machine by Clavarium, lets the tool tell you something, ask you something, show you a file, say what it is doing and read your answers. Turned on, WHAT THE TOOL POSTS THERE IS READ BY THIS SERVER; what it prints in its terminal is not. It works as far as the tool agrees to use it.</p>
166
- <div class="row"><div class="levels" id="talk-on" role="group" aria-label="Talk through the app"><button type="button" data-on="true">On</button><button type="button" data-on="false">Off</button></div><button type="button" id="talk-invite" hidden>Ask the tool to use it</button></div>
161
+ <div class="set-row"><div class="set-what"><b>Chat</b><small id="talk-about">A chat screen instead of its terminal. What the tool posts there is read by this server</small></div><div class="set-control"><div class="levels" id="talk-on" role="group" aria-label="Talk through the app"><button type="button" data-on="true">On</button><button type="button" data-on="false">Off</button></div><button type="button" id="talk-invite" hidden>Ask the tool to use it</button></div></div>
167
162
  <p class="hint" id="talk-declare" hidden></p>
168
- <form id="chat-name-form" class="row" autocomplete="off"><label for="chat-name">Its name in the chat</label><input id="chat-name" maxlength="40" placeholder="Assistant" spellcheck="false"><button type="submit">Save</button></form>
169
- <p class="hint" id="chat-name-hint">Shown above its messages. Empty: a neutral word, "Assistant" in your language. Its tool is named, small, in the detailed view.</p>
163
+ <form id="chat-name-form" class="set-row" autocomplete="off"><div class="set-what"><label for="chat-name">Its name in the chat</label><small id="chat-name-hint">Empty: "Assistant"</small></div><div class="set-control"><input id="chat-name" maxlength="40" placeholder="Assistant" spellcheck="false"><button type="submit">Save</button></div></form>
170
164
  </div>
171
165
  <!-- DICTATION INTO ITS TERMINAL: marked once per message, so that the tool knows it may hold recognition mistakes. -->
172
166
  <div id="voice-mark-box" hidden>
173
- <div class="panel-top"><b>Mark what I dictate</b></div>
174
- <div class="row"><div class="levels" id="voice-mark" role="group" aria-label="Mark what I dictate"><button type="button" data-on="true">On</button><button type="button" data-on="false">Off</button></div></div>
175
- <p class="hint">On: what you dictate into its terminal starts with a microphone sign, once per message, so that the tool knows a word may have been misheard. Never in a shell.</p>
167
+ <div class="set-row"><div class="set-what"><b>Mark what I dictate</b><small>A microphone sign before it: a word may be misheard</small></div><div class="set-control"><div class="levels" id="voice-mark" role="group" aria-label="Mark what I dictate"><button type="button" data-on="true">On</button><button type="button" data-on="false">Off</button></div></div></div>
176
168
  </div>
177
169
  </div>
178
170
  </details>
179
171
  <details class="chapter" id="chapter-machine" data-chapter="machine">
180
- <summary><span class="chapter-title">Machine</span><span class="chapter-about">Its health, its memory and disk; restart, sleep.</span></summary>
172
+ <summary><span class="chapter-title">Machine</span><span class="chapter-about">Health, size, restart.</span></summary>
181
173
  <div class="chapter-body">
182
174
  <div class="panel-top"><b>Health</b><button type="button" id="health-check">Look now</button></div>
183
175
  <ul id="machine-health" class="health-lines" aria-live="polite"></ul>
@@ -192,15 +184,11 @@
192
184
  <button type="button" id="sleep" hidden title="Freezes the tool as it is; it wakes when you open the conversation">Sleep</button>
193
185
  </div>
194
186
  <div id="resume-box" hidden>
195
- <div class="panel-top"><b>When its tool starts</b></div>
196
- <div class="row"><div class="levels" id="resume-on" role="group" aria-label="When its tool starts"><button type="button" data-on="true">Resume its last session</button><button type="button" data-on="false">Start fresh</button></div></div>
197
- <p class="hint" id="resume-hint">Each time its machine starts (a wake after a stop, a restart), the tool takes up the session it had, as it was. Start fresh: it starts a new one, with nothing of before in mind.</p>
187
+ <div class="set-row"><div class="set-what"><b>When its tool starts</b><small id="resume-hint">After a wake or a restart</small></div><div class="set-control"><div class="levels" id="resume-on" role="group" aria-label="When its tool starts"><button type="button" data-on="true">Resume its last session</button><button type="button" data-on="false">Start fresh</button></div></div></div>
198
188
  </div>
199
189
  <!-- FULL RIGHTS IN ITS OWN MACHINE: the default, said plainly where it is changed. -->
200
190
  <div id="rights-box" hidden>
201
- <div class="panel-top"><b>Ask before acting</b></div>
202
- <div class="row"><div class="levels" id="ask-first" role="group" aria-label="Ask before acting"><button type="button" data-on="false">Off</button><button type="button" data-on="true">On</button></div></div>
203
- <p class="hint" id="rights-hint">Off (the default): <b>the tool acts without asking you</b>, with every right inside its own machine: it installs, changes and deletes there as it sees fit. Outside its machine it reaches only what you attached to it, as you attached it. On: it asks you before it acts, as it does by itself. Taken into account the next time the tool starts: restart the machine to apply it now.</p>
191
+ <div class="set-row"><div class="set-what"><b>Ask before acting</b><small id="rights-hint">Off: <b>the tool acts without asking you</b>, inside its own machine. At its next start</small></div><div class="set-control"><div class="levels" id="ask-first" role="group" aria-label="Ask before acting"><button type="button" data-on="false">Off</button><button type="button" data-on="true">On</button></div></div></div>
204
192
  </div>
205
193
  <div class="panel-top"><b>Memory, cores and disk</b></div>
206
194
  <form id="machine-size" autocomplete="off">
@@ -211,7 +199,7 @@
211
199
  <label for="machine-disk">Disk</label>
212
200
  <select id="machine-disk"></select>
213
201
  <p class="hint" id="machine-size-wait" role="status" hidden></p>
214
- <p class="hint" id="machine-size-hint">Changing them stops the machine cleanly, sets them and starts it again: its work folder, folders and branches stay. A disk can only grow.</p>
202
+ <p class="hint" id="machine-size-hint">Restarts the machine; its work stays. A disk only grows.</p>
215
203
  <!-- CHOSEN WHILE IT SLEEPS: kept, and applied when it wakes (server/conversations.mjs, #wakeResized). -->
216
204
  <p class="hint" id="machine-later" role="status" hidden><span id="machine-later-text"></span> · <button type="button" id="machine-later-cancel" class="inline">cancel</button></p>
217
205
  <div class="row"><button type="submit" id="machine-size-apply">Apply...</button></div>
@@ -228,19 +216,19 @@
228
216
  <label class="check"><input type="checkbox" id="react-on"> <span id="react-on-label">Also tell its agent</span></label>
229
217
  <input id="react-message" maxlength="500" spellcheck="false" aria-label="What its agent is told ({problem}: what was found)">
230
218
  <input id="react-command" maxlength="500" spellcheck="false" placeholder="a command, run in its machine: rm -rf ~/.cache/*" aria-label="The command run in its machine" hidden>
231
- <p class="hint" id="react-hint">You are told either way. Once each time it happens; what was said or run shows in its chat.</p>
219
+ <p class="hint" id="react-hint">You are told either way.</p>
232
220
  <div class="row"><button type="submit">Save</button><span class="hint" id="react-said" role="status"></span></div>
233
221
  </form>
234
222
  </div>
235
223
  </details>
236
224
  <details class="chapter" id="chapter-access" data-chapter="access">
237
- <summary><span class="chapter-title">Access</span><span class="chapter-about">Folders, repositories, mailboxes, secrets, network.</span></summary>
225
+ <summary><span class="chapter-title">Access</span><span class="chapter-about">Folders, repositories, secrets, network.</span></summary>
238
226
  <div class="chapter-body">
239
- <p class="hint">What this conversation has: it appears in its machine under <code>/resources/</code>. Read-only is enforced outside the machine: the tool cannot lift it.</p>
227
+ <p class="hint">In its machine under <code>/resources/</code>. Read-only cannot be lifted by the tool.</p>
240
228
  <div class="panel-top"><b>Folders, repositories, mailboxes</b><button type="button" id="attach-open" class="primary">+ Attach</button></div>
241
229
  <div id="panel-rows"></div>
242
230
  <p id="panel-empty" class="hint" hidden>Nothing is attached to this conversation.</p>
243
- <div class="row to-access"><button type="button" id="access-assets-here">Attach an asset</button><span class="hint">Every asset, in Access, with what this conversation may do with each.</span></div>
231
+ <div class="row to-access"><button type="button" id="access-assets-here">Attach an asset</button><span class="hint">Every asset, in Access.</span></div>
244
232
  <div class="panel-top"><b>Secrets handed to its tool</b></div>
245
233
  <div id="access-secrets"></div>
246
234
  <p id="access-secrets-empty" class="hint" hidden>No secret is handed to it.</p>
@@ -252,13 +240,13 @@
252
240
  <button type="button" id="attach-manage">Manage all assets</button>
253
241
  </div>
254
242
  <div class="panel-top"><b>Network</b></div>
255
- <p class="hint">Offline, the machine of this conversation reaches nothing outside. Its terminal and its folders keep working. The cut is made outside the machine: the tool cannot undo it.</p>
243
+ <p class="hint">Offline: its machine reaches nothing outside. The tool cannot undo it.</p>
256
244
  <div class="levels" id="network" role="group" aria-label="Network of this conversation">
257
245
  <button type="button" data-online="true">Online</button><button type="button" data-online="false">Offline</button>
258
246
  </div>
259
247
  <div id="signin-setup" hidden>
260
248
  <div class="panel-top"><b>Sign-in mailbox</b></div>
261
- <p class="hint">A mailbox used only for this tool's account. When its provider sends a sign-in link there, the link appears next to the terminal. The mailbox is read, never changed; its password stays on the host and never enters the machine. Use an app password where the mail provider offers one.</p>
249
+ <p class="hint">A mailbox for this tool's account: its sign-in links appear next to the terminal. Read only; its password never enters the machine.</p>
262
250
  <p id="signin-state" class="hint"></p>
263
251
  <form id="signin-form" autocomplete="off">
264
252
  <div class="row"><input id="signin-host" placeholder="imap.example.com" aria-label="Mail server" spellcheck="false" autocapitalize="none">
@@ -270,21 +258,21 @@
270
258
  </div>
271
259
  </details>
272
260
  <details class="chapter" id="chapter-wakeups" data-chapter="wakeups">
273
- <summary><span class="chapter-title">Wake-ups</span><span class="chapter-about">A line typed to the tool when something arrives, or by the clock.</span></summary>
261
+ <summary><span class="chapter-title">Wake-ups</span><span class="chapter-about">When something arrives, or by the clock.</span></summary>
274
262
  <div class="chapter-body">
275
263
  <div id="wakeups-box">
276
264
  <div class="panel-top"><b>Wake it by itself</b></div>
277
- <p class="hint">When something arrives in what it has (a file, a mail, a commit), or by the clock, a line you wrote is typed to the tool. A conversation that is asleep is not woken. Where its chat is on, the line goes to its docket instead: it waits there until the tool says it was done, and the tool is told again until then.</p>
265
+ <p class="hint">A line you wrote, given to the tool when something arrives or by the clock. Never wakes a sleeping machine.</p>
278
266
  <div id="wakeups-rows"></div>
279
267
  <div id="wakeup-address-box" class="notice-box" hidden>
280
268
  <b>Its address, shown this once</b>
281
269
  <input id="wakeup-address" readonly spellcheck="false" aria-label="The address that wakes it">
282
- <p class="hint">Whoever has this address can wake the tool. Copy it now: it is not kept in a form that can be shown again.</p>
270
+ <p class="hint">Whoever has this address can wake the tool. Shown this once.</p>
283
271
  <div class="row"><button type="button" id="wakeup-address-copy" class="primary">Copy</button><button type="button" id="wakeup-address-done">I have it</button></div>
284
272
  </div>
285
273
  <div id="docket-box" hidden>
286
274
  <div class="panel-top"><b>Its docket</b></div>
287
- <p class="hint">What woke it, and whether it was done; the reminders the tool set itself (it can, with "docket remind"). Take one back if you do not want it.</p>
275
+ <p class="hint">What woke it, and whether it was done; the reminders it set itself.</p>
288
276
  <div id="docket-plans"></div>
289
277
  <div id="docket-events"></div>
290
278
  </div>
@@ -318,7 +306,7 @@
318
306
  <label for="wakeup-line">The cron line this sets: minute hour day month weekday</label>
319
307
  <input id="wakeup-line" spellcheck="false" autocapitalize="off" value="0 * * * *">
320
308
  </div>
321
- <div data-for="call" hidden><p class="hint">It gets an address of its own. Whatever calls that address with POST wakes the tool. What the caller sends replaces {text} in your line, as one plain line.</p></div>
309
+ <div data-for="call" hidden><p class="hint">An address of its own: a POST to it wakes the tool; what it sends replaces {text}.</p></div>
322
310
  <label for="wakeup-message">What is typed to the tool</label>
323
311
  <textarea id="wakeup-message" rows="3" maxlength="1000" placeholder="New requests arrived in /resources/handoff: {files}. Read them and do what they ask."></textarea>
324
312
  <p class="hint">{files} is replaced by the names of what arrived.</p>
@@ -331,7 +319,7 @@
331
319
  </div>
332
320
  </details>
333
321
  <details class="chapter" id="chapter-answerer" data-chapter="answerer">
334
- <summary><span class="chapter-title">Answerer</span><span class="chapter-about">Models that answer its simple questions while you are away.</span></summary>
322
+ <summary><span class="chapter-title">Answerer</span><span class="chapter-about">Simple questions answered while you are away.</span></summary>
335
323
  <div class="chapter-body">
336
324
  <div id="answerer-box">
337
325
  <div class="panel-top"><b>Answers in your place</b></div>
@@ -357,19 +345,19 @@
357
345
  </div>
358
346
  </details>
359
347
  <details class="chapter" id="chapter-sharing" data-chapter="sharing">
360
- <summary><span class="chapter-title">Sharing</span><span class="chapter-about">Its terminal, its chat, or both, on another device.</span></summary>
348
+ <summary><span class="chapter-title">Sharing</span><span class="chapter-about">On another device.</span></summary>
361
349
  <div class="chapter-body">
362
- <p class="hint">Give a phone or a tablet its terminal, its chat, or both. Change it here at any time, or take it back.</p>
350
+ <p class="hint">Its terminal, its chat, or both, on a phone or a tablet.</p>
363
351
  <div id="share-here"></div>
364
352
  <p id="share-here-none" class="hint" hidden>No device has it.</p>
365
353
  <div class="row"><button type="button" id="share" hidden>Pair a new device...</button></div>
366
- <div class="row to-access"><button type="button" id="access-devices-here">Share with a device</button><span class="hint">Every device, in Access, with what each has of this conversation.</span></div>
354
+ <div class="row to-access"><button type="button" id="access-devices-here">Share with a device</button><span class="hint">Every device, in Access.</span></div>
367
355
  </div>
368
356
  </details>
369
357
  <details class="chapter" id="chapter-advanced" data-chapter="advanced">
370
358
  <summary><span class="chapter-title">Advanced</span><span class="chapter-about">Archive it.</span></summary>
371
359
  <div class="chapter-body">
372
- <p class="hint">Archiving deletes its machine, with everything on its disk. Attached folders are kept; its work folder is put aside on the server.</p>
360
+ <p class="hint">Deletes its machine and its disk. Attached folders are kept; its work folder is put aside.</p>
373
361
  <div class="row" id="conversation-actions"><button type="button" id="archive" hidden>Archive...</button></div>
374
362
  </div>
375
363
  </details>
@@ -574,57 +562,42 @@
574
562
  </div>
575
563
  <div id="settings" class="sheet" hidden>
576
564
  <div class="panel-top"><b>Settings</b><button type="button" id="settings-close" class="as-link place-back">&lsaquo; Conversations</button></div>
565
+ <!-- THE CATEGORIES: a list beside them on a wide screen, headings one under the other on a phone. -->
566
+ <nav id="settings-nav" class="settings-nav" aria-label="Categories of Settings">
567
+ <button type="button" data-group="device">This device</button>
568
+ <button type="button" data-group="chat">Chat</button>
569
+ <button type="button" data-group="server">Server &amp; access</button>
570
+ <button type="button" data-group="storage">Storage &amp; machines</button>
571
+ <button type="button" data-group="diagnostics">Diagnostics</button>
572
+ </nav>
573
+ <div id="settings-groups" class="settings-groups">
574
+ <section class="settings-group" id="settings-group-device" data-group="device">
577
575
  <h3 class="chapter-group">This device</h3>
578
576
  <details class="chapter" id="settings-ch-screen" data-chapter="s-screen">
579
- <summary><span class="chapter-title">Screen</span><span class="chapter-about">Light or dark, text size, the app.</span></summary>
577
+ <summary><span class="chapter-title">Screen</span><span class="chapter-about">Theme, text size, the app.</span></summary>
580
578
  <div class="chapter-body">
581
- <div class="row"><span>Screen</span><button type="button" id="theme" aria-label="Light or dark screen">Light</button><button type="button" id="install" class="primary" hidden>Install the app</button></div>
582
- <form id="install-name-form" class="row" autocomplete="off" hidden><label for="install-name">Name on this device</label><input id="install-name" maxlength="30" spellcheck="false"><button type="submit" class="primary">Install</button><button type="button" id="install-name-cancel">Cancel</button></form>
583
- <div class="row"><span>Text size</span><span class="text-size" id="settings-text" role="group" aria-label="Text size"><button type="button" data-text="smaller" aria-label="Smaller text">A&minus;</button><button type="button" data-text="normal" aria-label="Normal text size" class="text-now">100%</button><button type="button" data-text="larger" aria-label="Larger text">A+</button></span></div>
584
- <p class="hint">All text, the terminal's too, on this device only. Also: two fingers pinched, Ctrl and the wheel, Ctrl + and Ctrl -.</p>
579
+ <div class="set-row"><div class="set-what"><span>Theme</span><small>This device only</small></div><div class="set-control"><button type="button" id="theme" aria-label="Light or dark screen">Light</button></div></div>
580
+ <div class="set-row"><div class="set-what"><span>Text size</span><small>Also: a pinch, or Ctrl + and Ctrl -</small></div><div class="set-control"><span class="text-size" id="settings-text" role="group" aria-label="Text size"><button type="button" data-text="smaller" aria-label="Smaller text">A&minus;</button><button type="button" data-text="normal" aria-label="Normal text size" class="text-now">100%</button><button type="button" data-text="larger" aria-label="Larger text">A+</button></span></div></div>
581
+ <div class="set-row" id="install-row" hidden><div class="set-what"><span>App</span><small>Installed on this device's home screen</small></div><div class="set-control"><button type="button" id="install" class="primary" hidden>Install the app</button></div></div>
582
+ <form id="install-name-form" class="set-row" autocomplete="off" hidden><div class="set-what"><label for="install-name">Name on this device</label></div><div class="set-control"><input id="install-name" maxlength="30" spellcheck="false"><button type="submit" class="primary">Install</button><button type="button" id="install-name-cancel">Cancel</button></div></form>
585
583
  </div>
586
584
  </details>
587
585
  <details class="chapter" id="settings-ch-alerts" data-chapter="s-alerts">
588
- <summary><span class="chapter-title">Alerts</span><span class="chapter-about">Be told here when a tool waits for you.</span></summary>
586
+ <summary><span class="chapter-title">Alerts</span><span class="chapter-about">When a tool needs you.</span></summary>
589
587
  <div class="chapter-body">
590
- <p class="hint" id="alerts-state">When a tool stops and waits for you, this device can be told.</p>
591
- <div class="row"><button type="button" id="alerts-on" class="primary">Alert me on this device</button><button type="button" id="alerts-off" hidden>Stop alerting this device</button><button type="button" id="alerts-test" hidden>Send a test</button></div>
592
- </div>
593
- </details>
594
- <h3 class="chapter-group">This server</h3>
595
- <details class="chapter" id="settings-ch-general" data-chapter="s-general">
596
- <summary><span class="chapter-title">General</span><span class="chapter-about">The name of this Clavarium.</span></summary>
597
- <div class="chapter-body">
598
- <form id="instance-form" class="row" autocomplete="off"><label for="instance-name">Name of this Clavarium</label><input id="instance-name" maxlength="30" spellcheck="false"><button type="submit">Save</button></form>
599
- <p class="hint" id="instance-hint">In the title of its tab, above its list, in its alerts, and under its icon once installed. Empty: the name drawn from its address.</p>
600
- <p class="error" id="instance-error" role="alert" hidden></p>
601
- </div>
602
- </details>
603
- <!-- WHO MAY SIGN IN (server/operators.mjs): hidden on this machine alone. -->
604
- <details class="chapter" id="settings-ch-operators" data-chapter="s-operators" hidden>
605
- <summary><span class="chapter-title">Administrators</span><span class="chapter-about">Who may sign in, and their passwords.</span></summary>
606
- <div class="chapter-body">
607
- <div id="operators-rows"></div>
608
- <form id="operators-new" class="row" autocomplete="off"><label for="operators-email">Add an administrator</label><input id="operators-email" type="email" placeholder="someone@example.com" spellcheck="false" autocapitalize="off" required><button type="submit">Add</button></form>
609
- <div id="operators-password" class="as-form" hidden><p><b id="operators-password-for"></b>: its password, shown <b>this once</b>. Give it to them yourself.</p><div class="row"><input id="operators-password-value" readonly spellcheck="false"><button type="button" id="operators-password-copy">Copy</button><button type="button" id="operators-password-done">Done</button></div></div>
610
- <p class="hint">Five failed sign-ins within 15 minutes lock that address for 15 minutes; you are told. The last administrator is never locked out nor removed.</p>
611
- <p class="error" id="operators-error" role="alert" hidden></p>
612
- </div>
613
- </details>
614
- <details class="chapter" id="settings-ch-shortcuts" data-chapter="s-shortcuts">
615
- <summary><span class="chapter-title">Shortcuts</span><span class="chapter-about">The ready-made answers under the terminal.</span></summary>
616
- <div class="chapter-body">
617
- <p class="hint" id="settings-shortcuts-hint">The ready-made answers under the terminal. They are added there ("+ Shortcut"); they are removed here.</p>
618
- <div id="settings-shortcuts"></div>
588
+ <div class="set-row"><div class="set-what"><span>On this device</span><small id="alerts-state">Off</small></div><div class="set-control"><button type="button" id="alerts-on" class="primary">Turn on</button><button type="button" id="alerts-off" hidden>Turn off</button><button type="button" id="alerts-test" hidden>Send a test</button></div></div>
619
589
  </div>
620
590
  </details>
591
+ </section>
592
+ <section class="settings-group" id="settings-group-chat" data-group="chat">
593
+ <h3 class="chapter-group">Chat</h3>
621
594
  <details class="chapter" id="settings-ch-words" data-chapter="s-words">
622
- <summary><span class="chapter-title">Chat screen</span><span class="chapter-about">Its language, and your own words.</span></summary>
595
+ <summary><span class="chapter-title">Chat screen</span><span class="chapter-about">Language and wording.</span></summary>
623
596
  <div class="chapter-body">
624
- <div class="row"><label for="words-lang">Language</label><select id="words-lang"><option value="device">The language of each device</option></select></div>
597
+ <div class="set-row"><div class="set-what"><label for="words-lang">Language</label><small>Of the chat screen, every device</small></div><div class="set-control"><select id="words-lang"><option value="device">The language of each device</option></select></div></div>
625
598
  <details id="words-box">
626
599
  <summary>Your own words</summary>
627
- <p class="hint">Replace any word of the chat screen with your own, for every device: <code>{"send": "Go"}</code>. Only the words you give change. They are shown as plain text.</p>
600
+ <p class="hint">Any word of the chat, replaced for every device: <code>{"send": "Go"}</code>.</p>
628
601
  <textarea id="words-own" rows="6" spellcheck="false" aria-label="Your own words, as JSON"></textarea>
629
602
  <div class="row"><button type="button" id="words-save" class="primary">Save</button><button type="button" id="words-show">Show all the words</button><span class="hint" id="words-saved" role="status"></span></div>
630
603
  <pre id="words-all" class="hint" hidden></pre>
@@ -635,39 +608,129 @@
635
608
  </div>
636
609
  </details>
637
610
  <details class="chapter" id="settings-ch-thread" data-chapter="s-thread">
638
- <summary><span class="chapter-title">Chat thread</span><span class="chapter-about">What the chat says of machines and repositories.</span></summary>
611
+ <summary><span class="chapter-title">Chat events</span><span class="chapter-about">Machines and repositories, in the chat.</span></summary>
639
612
  <div class="chapter-body">
640
- <p class="hint">Besides the messages, the chat says what happened to its machine and its repositories. <b>Needs you</b>: in both views. <b>News</b>: in the simple view as one short line, several in a row grouped. <b>Trace</b>: in the detailed view only. Never counted as unread.</p>
613
+ <p class="hint"><b>Needs you</b>: both views. <b>News</b>: one short line. <b>Trace</b>: detailed view only.</p>
641
614
  <div id="thread-levels" class="thread-levels"></div>
642
615
  <p class="hint" id="thread-saved" role="status"></p>
643
616
  <p id="thread-error" class="error" role="alert" hidden></p>
644
617
  </div>
645
618
  </details>
619
+ <details class="chapter" id="settings-ch-shortcuts" data-chapter="s-shortcuts">
620
+ <summary><span class="chapter-title">Shortcuts</span><span class="chapter-about">Ready answers under the terminal.</span></summary>
621
+ <div class="chapter-body">
622
+ <p class="hint" id="settings-shortcuts-hint">The ready-made answers under the terminal. They are added there ("+ Shortcut"); they are removed here.</p>
623
+ <div id="settings-shortcuts"></div>
624
+ </div>
625
+ </details>
646
626
  <details class="chapter" id="settings-ch-dictation" data-chapter="s-dictation">
647
- <summary><span class="chapter-title">Dictation</span><span class="chapter-about">Speech to text, on this server.</span></summary>
627
+ <summary><span class="chapter-title">Dictation</span><span class="chapter-about">Speech to text.</span></summary>
648
628
  <div class="chapter-body">
649
- <p id="settings-dictation" class="hint"></p>
650
- <form id="dictation-form" autocomplete="off">
651
- <div class="row"><label for="dictation-provider">Provider</label><select id="dictation-provider"></select></div>
652
- <div class="row"><label for="dictation-url">Address</label><input id="dictation-url" type="url" spellcheck="false" placeholder="https://.../v1/audio/transcriptions"></div>
653
- <div class="row"><label for="dictation-model">Model</label><input id="dictation-model" spellcheck="false" maxlength="100"></div>
654
- <div class="row"><label for="dictation-secret">Key</label><select id="dictation-secret"><option value="">No key</option></select></div>
655
- <div class="row"><label for="dictation-language">Language</label><select id="dictation-language"><option value="">Automatic</option><option value="en">English (en)</option><option value="fr">French (fr)</option><option value="de">German (de)</option><option value="es">Spanish (es)</option><option value="it">Italian (it)</option><option value="nl">Dutch (nl)</option><option value="pt">Portuguese (pt)</option><option value="other">Another code...</option></select><input id="dictation-language-code" maxlength="8" spellcheck="false" placeholder="code, such as pl" aria-label="Language code" hidden></div>
656
- <p class="hint" id="dictation-key-hint">The key is one of your secrets (Assets, Secrets), chosen by its name: it is never shown, and only this server uses it, when it transcribes.</p>
657
- <p class="hint" id="dictation-other-hint" hidden>"Other (compatible)": any engine with the same interface (<code>/v1/audio/transcriptions</code>). Only with it may the address be on this server's own network (localhost, a private address, plain http), for an engine of your own: the others must be public HTTPS addresses.</p>
658
- <div class="row"><button type="submit" class="primary" id="dictation-save">Save</button><button type="button" id="dictation-try">Try it</button><button type="button" id="dictation-off">Turn off</button><span class="hint" id="dictation-saved" role="status"></span></div>
629
+ <p id="settings-dictation" class="status-line"></p>
630
+ <form id="dictation-form" class="set-rows" autocomplete="off">
631
+ <div class="set-row"><div class="set-what"><label for="dictation-provider">Provider</label></div><div class="set-control"><select id="dictation-provider"></select></div></div>
632
+ <div class="set-row"><div class="set-what"><label for="dictation-url">Address</label><small>Its transcription endpoint</small></div><div class="set-control"><input id="dictation-url" type="url" spellcheck="false" placeholder="https://.../v1/audio/transcriptions"></div></div>
633
+ <div class="set-row"><div class="set-what"><label for="dictation-model">Model</label></div><div class="set-control"><input id="dictation-model" spellcheck="false" maxlength="100"></div></div>
634
+ <div class="set-row"><div class="set-what"><label for="dictation-secret">Key</label><small id="dictation-key-hint">One of your secrets. Never shown</small></div><div class="set-control"><select id="dictation-secret"><option value="">No key</option></select></div></div>
635
+ <div class="set-row"><div class="set-what"><label for="dictation-language">Language</label></div><div class="set-control"><select id="dictation-language"><option value="">Automatic</option><option value="en">English (en)</option><option value="fr">French (fr)</option><option value="de">German (de)</option><option value="es">Spanish (es)</option><option value="it">Italian (it)</option><option value="nl">Dutch (nl)</option><option value="pt">Portuguese (pt)</option><option value="other">Another code...</option></select><input id="dictation-language-code" maxlength="8" spellcheck="false" placeholder="code, such as pl" aria-label="Language code" hidden></div></div>
636
+ <p class="hint" id="dictation-other-hint" hidden>Any engine with the same interface (<code>/v1/audio/transcriptions</code>); it alone may be on this server's own network.</p>
637
+ <div class="action-row"><span class="hint" id="dictation-saved" role="status"></span><button type="button" id="dictation-off">Turn off</button><button type="button" id="dictation-try">Try it</button><button type="submit" class="primary" id="dictation-save">Save</button></div>
659
638
  <p class="hint" id="dictation-heard" role="status" hidden></p>
660
639
  <p class="error" id="dictation-error" role="alert" hidden></p>
661
640
  </form>
662
641
  </div>
663
642
  </details>
643
+ </section>
644
+ <section class="settings-group" id="settings-group-server" data-group="server">
645
+ <h3 class="chapter-group">Server &amp; access</h3>
646
+ <details class="chapter" id="settings-ch-general" data-chapter="s-general">
647
+ <summary><span class="chapter-title">General</span><span class="chapter-about">Server name.</span></summary>
648
+ <div class="chapter-body">
649
+ <form id="instance-form" class="set-row" autocomplete="off"><div class="set-what"><label for="instance-name">Name</label><small id="instance-hint">In tabs, alerts and the app icon. Empty: from the address</small></div><div class="set-control"><input id="instance-name" maxlength="30" spellcheck="false"><button type="submit">Save</button></div></form>
650
+ <p class="error" id="instance-error" role="alert" hidden></p>
651
+ </div>
652
+ </details>
653
+ <!-- WHO MAY SIGN IN (server/operators.mjs): hidden on this machine alone. -->
654
+ <details class="chapter" id="settings-ch-operators" data-chapter="s-operators" hidden>
655
+ <summary><span class="chapter-title">Administrators</span><span class="chapter-about">Who may sign in.</span></summary>
656
+ <div class="chapter-body">
657
+ <div id="operators-rows"></div>
658
+ <form id="operators-new" class="set-row" autocomplete="off"><div class="set-what"><label for="operators-email">Add an administrator</label><small>Email address</small></div><div class="set-control"><input id="operators-email" type="email" placeholder="someone@example.com" spellcheck="false" autocapitalize="off" required><button type="submit">Add</button></div></form>
659
+ <div id="operators-password" class="as-form" hidden><p><b id="operators-password-for"></b>: its password, shown <b>this once</b>. Give it to them yourself.</p><div class="row"><input id="operators-password-value" readonly spellcheck="false"><button type="button" id="operators-password-copy">Copy</button><button type="button" id="operators-password-done">Done</button></div></div>
660
+ <p class="hint">5 failed sign-ins lock an address for 15 min. The last administrator is never locked or removed.</p>
661
+ <p class="error" id="operators-error" role="alert" hidden></p>
662
+ </div>
663
+ </details>
664
+ <!-- NETWORK: this server's Wi-Fi (server/wifi.mjs; done as root by the host program,
665
+ through NetworkManager). A switch goes back by itself when the new network does not work. -->
666
+ <details class="chapter" id="settings-wifi-top" data-chapter="s-network">
667
+ <summary><span class="chapter-title">Network</span><span class="chapter-about">Its cable and its Wi-Fi.</span></summary>
668
+ <div class="chapter-body">
669
+ <div id="wifi" tabindex="-1">
670
+ <p id="wifi-now" role="status"></p>
671
+ <ul id="net-links" class="net-links" hidden></ul>
672
+ <p id="wifi-last" class="hint" role="status" hidden></p>
673
+ <!-- ITS NETWORK SET UP OUTSIDE CLAVARIUM (netplan and systemd-networkd, as the Ubuntu installer leaves it): handed over to NetworkManager, back as it was if it does not work. -->
674
+ <div id="wifi-hand" hidden>
675
+ <p id="wifi-hand-about">Let Clavarium manage it: Wi-Fi chosen here, a cable taken by itself. Your Wi-Fi stays as it is.</p>
676
+ <div class="row"><button type="button" class="primary" id="wifi-hand-go">Manage the network</button><button type="button" id="wifi-hand-cancel" hidden>Cancel</button></div>
677
+ </div>
678
+ <p id="wifi-hand-said" role="status" hidden></p>
679
+ <div id="wifi-controls" hidden>
680
+ <div class="row"><button type="button" id="wifi-scan">Look for networks</button><span class="hint" id="wifi-said" role="status"></span></div>
681
+ <ul id="wifi-list" class="wifi-list" hidden></ul>
682
+ <form id="wifi-join" class="wifi-join" hidden>
683
+ <p id="wifi-join-what"></p>
684
+ <div id="wifi-password-box">
685
+ <label for="wifi-password">Its password</label>
686
+ <input id="wifi-password" type="password" autocomplete="off" spellcheck="false" autocapitalize="off" minlength="8" maxlength="63">
687
+ </div>
688
+ <p class="hint" id="wifi-join-back"></p>
689
+ <div class="row"><button type="submit" class="primary" id="wifi-join-go">Join</button><button type="button" id="wifi-join-cancel">Cancel</button></div>
690
+ <p id="wifi-join-error" class="error" role="alert" hidden></p>
691
+ </form>
692
+ <details id="wifi-saved-box" hidden>
693
+ <summary>Networks this server keeps</summary>
694
+ <div id="wifi-saved"></div>
695
+ </details>
696
+ </div>
697
+ </div>
698
+ </div>
699
+ </details>
700
+ <details class="chapter" id="settings-updates-top" data-chapter="s-updates">
701
+ <summary><span class="chapter-title">Updates</span><span class="chapter-about">Version and updates.</span></summary>
702
+ <div class="chapter-body">
703
+ <div id="updates" tabindex="-1">
704
+ <div class="set-row updates-head"><div class="status-line" id="updates-line"><b id="updates-version"></b><span id="updates-state" class="hint" role="status"></span></div><div class="set-control"><button type="button" id="updates-check">Check now</button></div></div>
705
+ <p id="updates-news" class="updates-news callout" hidden></p>
706
+ <div id="updates-relay" class="hint" hidden></div>
707
+ <div class="action-row" id="updates-offer" hidden><span class="hint" id="updates-retry-note" hidden></span><button type="button" id="updates-retry-no" hidden>Cancel</button><button type="button" id="updates-retry-yes" class="primary" hidden>Try again</button><button type="button" id="updates-apply" class="primary"></button></div>
708
+ <div id="updates-settings" class="set-rows">
709
+ <div class="set-row"><div class="set-what"><label for="updates-mode">Mode</label><small>When updates are installed</small></div><div class="set-control"><select id="updates-mode"><option value="auto">Automatic, in a window</option><option value="asap">As soon as out</option><option value="ask">Ask me</option><option value="off">Off</option></select></div></div>
710
+ <div class="set-row" id="updates-window-row"><div class="set-what"><label for="updates-from" id="updates-window-label">Window</label><small>Hours when it may restart</small></div><div class="set-control"><span id="updates-window" class="updates-window"><input type="time" id="updates-from" aria-label="From"><span aria-hidden="true">to</span><input type="time" id="updates-to" aria-label="To"></span></div></div>
711
+ <div class="set-row"><div class="set-what"><label for="updates-channel">Channel</label><small>Stable, or test versions</small></div><div class="set-control"><select id="updates-channel"><option value="latest">Stable</option><option value="next">Next (test versions)</option></select></div></div>
712
+ <!-- What the front serves to a browser (server/certificate.mjs). -->
713
+ <div class="set-row" id="updates-certificate-row" hidden><div class="set-what"><span>Certificate</span><small id="updates-certificate" role="status"></small></div></div>
714
+ </div>
715
+ <!-- WHEN: the updater's next look, and when a version that is out is installed (server/updates.mjs, schedule). -->
716
+ <p class="hint" id="updates-when" hidden></p>
717
+ <p class="hint" id="updates-saved" role="status"></p>
718
+ <div id="updates-back" class="action-row"></div>
719
+ <details id="updates-history-box" hidden><summary>History</summary><ul id="updates-history" class="updates-history"></ul></details>
720
+ <p id="updates-error" class="error" role="alert" hidden></p>
721
+ </div>
722
+ </div>
723
+ </details>
724
+ </section>
725
+ <section class="settings-group" id="settings-group-storage" data-group="storage">
726
+ <h3 class="chapter-group">Storage &amp; machines</h3>
664
727
  <!-- THIS SERVER: its disk and memory, what takes them, and the reserve
665
728
  no machine may eat into (server/capacity.mjs). Nothing here wakes a machine. -->
666
729
  <details class="chapter" id="settings-server-top" data-chapter="s-resources">
667
- <summary><span class="chapter-title">Resources</span><span class="chapter-about">Disk and memory, what takes them, the reserve.</span></summary>
730
+ <summary><span class="chapter-title">Resources</span><span class="chapter-about">Disk, memory and the reserve.</span></summary>
668
731
  <div class="chapter-body">
669
732
  <div id="settings-server" tabindex="-1">
670
- <p id="server-unknown" class="hint" hidden>This server's disk and memory cannot be read just now. Nothing is refused for lack of room while they cannot.</p>
733
+ <p id="server-unknown" class="hint" hidden>Disk and memory cannot be read just now.</p>
671
734
  <div class="curves" id="server-curves" data-of="server" hidden>
672
735
  <div class="curves-head"><b>Over time</b><div class="levels curves-span" role="group" aria-label="Over"><button type="button" data-span="1h" aria-pressed="true">1 h</button><button type="button" data-span="24h" aria-pressed="false">24 h</button><button type="button" data-span="7d" aria-pressed="false">7 days</button></div></div>
673
736
  <div class="curves-row"></div>
@@ -675,8 +738,8 @@
675
738
  <div id="server-disks"></div>
676
739
  <!-- ALL THE MACHINES TO ANOTHER DISK (server/machinesmove.mjs). -->
677
740
  <details id="move-machines-box">
678
- <summary>The disks, and moving all the machines to another one...</summary>
679
- <p class="hint">Every machine is stopped, its disk copied to the disk you choose, and started again as its conversation is opened. <b>This server stops meanwhile</b>: this page comes back by itself. It takes from a few minutes to much longer, with the size of the machines. The copy on the disk of now is kept until you remove it.</p>
741
+ <summary>Disks, and moving the machines to another one</summary>
742
+ <p class="hint">All machines are copied to the chosen disk. <b>This server stops meanwhile</b>; the old copy is kept.</p>
680
743
  <div id="move-machines-rows"></div>
681
744
  <p class="hint" id="move-machines-said" role="status"></p>
682
745
  </details>
@@ -705,7 +768,7 @@
705
768
  <span class="hint" id="reserve-saved" role="status"></span>
706
769
  </div>
707
770
  <p class="server-note" id="reserve-now"></p>
708
- <p class="hint">Judged on what is really free. A machine is not created, started or given more if that would leave less. Below it, you are alerted and the running machine that takes the most is put to sleep. Waking is never refused for lack of disk, so you can get in to clean up.</p>
771
+ <details class="more"><summary>How the reserve works</summary><span>No machine is created, started or enlarged into it. Below it you are alerted and the largest running machine is put to sleep. Waking is always allowed, to clean up.</span></details>
709
772
  <p class="server-note promised" id="promised-disk" hidden></p>
710
773
  <p class="server-note promised" id="promised-memory" hidden></p>
711
774
  <p id="reserve-error" class="error" role="alert" hidden></p>
@@ -715,72 +778,37 @@
715
778
  (server/updates.mjs; the updater, as root: deploy/updater.mjs). -->
716
779
  </div>
717
780
  </details>
718
- <!-- NETWORK: this server's Wi-Fi (server/wifi.mjs; done as root by the host program,
719
- through NetworkManager). A switch goes back by itself when the new network does not work. -->
720
- <details class="chapter" id="settings-wifi-top" data-chapter="s-network">
721
- <summary><span class="chapter-title">Network</span><span class="chapter-about">Its cable and its Wi-Fi.</span></summary>
781
+ <details class="chapter" id="settings-ch-backup" data-chapter="s-backup">
782
+ <summary><span class="chapter-title">Backup</span><span class="chapter-about">Export, import, full backup.</span></summary>
722
783
  <div class="chapter-body">
723
- <div id="wifi" tabindex="-1">
724
- <p id="wifi-now" role="status"></p>
725
- <ul id="net-links" class="net-links" hidden></ul>
726
- <p id="wifi-last" class="hint" role="status" hidden></p>
727
- <!-- ITS NETWORK SET UP OUTSIDE CLAVARIUM (netplan and systemd-networkd, as the Ubuntu installer leaves it): handed over to NetworkManager, back as it was if it does not work. -->
728
- <div id="wifi-hand" hidden>
729
- <p id="wifi-hand-about">Let Clavarium manage it: Wi-Fi chosen here, a cable taken by itself. Your Wi-Fi stays as it is.</p>
730
- <div class="row"><button type="button" class="primary" id="wifi-hand-go">Manage the network</button><button type="button" id="wifi-hand-cancel" hidden>Cancel</button></div>
731
- </div>
732
- <p id="wifi-hand-said" role="status" hidden></p>
733
- <div id="wifi-controls" hidden>
734
- <div class="row"><button type="button" id="wifi-scan">Look for networks</button><span class="hint" id="wifi-said" role="status"></span></div>
735
- <ul id="wifi-list" class="wifi-list" hidden></ul>
736
- <form id="wifi-join" class="wifi-join" hidden>
737
- <p id="wifi-join-what"></p>
738
- <div id="wifi-password-box">
739
- <label for="wifi-password">Its password</label>
740
- <input id="wifi-password" type="password" autocomplete="off" spellcheck="false" autocapitalize="off" minlength="8" maxlength="63">
741
- </div>
742
- <p class="hint" id="wifi-join-back"></p>
743
- <div class="row"><button type="submit" class="primary" id="wifi-join-go">Join</button><button type="button" id="wifi-join-cancel">Cancel</button></div>
744
- <p id="wifi-join-error" class="error" role="alert" hidden></p>
745
- </form>
746
- <details id="wifi-saved-box" hidden>
747
- <summary>Networks this server keeps</summary>
748
- <div id="wifi-saved"></div>
749
- </details>
750
- </div>
751
- </div>
784
+ <div class="set-row"><div class="set-what"><span>Export or import a setup</span><small id="export-note">Conversations, assets, devices, links. Secrets: names only</small></div><div class="set-control"><label class="check" title="The files of the folders too, in a .tar.gz: to move a flow to another Clavarium with what it holds"><input type="checkbox" id="flows-with-files"> With the folders' files</label></div></div>
785
+ <div class="action-row"><span id="flows-said" class="hint" role="status"></span><span class="row access-files"><button type="button" id="flows-import" title="A setup from a file: shown whole before anything is made">Import...</button><button type="button" id="flows-export" title="Everything here, to a file: conversations, assets, devices, links; never a secret's value">Export</button><input type="file" id="flows-file" accept=".json,application/json,.gz,.tgz,application/gzip" hidden></span></div>
786
+ <div class="set-row"><div class="set-what"><span>Full backup</span><small>On the server: <code>sudo deploy/backup.sh --to /a/folder</code> (the archive, and the vault's key apart)</small></div></div>
752
787
  </div>
753
788
  </details>
754
- <details class="chapter" id="settings-updates-top" data-chapter="s-updates">
755
- <summary><span class="chapter-title">Updates</span><span class="chapter-about">The version that runs, and how it updates.</span></summary>
756
- <div class="chapter-body">
757
- <div id="updates" tabindex="-1">
758
- <div class="updates-head"><b id="updates-version"></b><span id="updates-state" role="status"></span><button type="button" id="updates-check">Check now</button></div>
759
- <p id="updates-news" class="updates-news" hidden></p>
760
- <p id="updates-relay" class="hint" hidden></p>
761
- <!-- What the front serves to a browser (server/certificate.mjs). -->
762
- <p id="updates-certificate" class="hint" role="status" hidden></p>
763
- <div class="row" id="updates-offer" hidden><button type="button" id="updates-apply" class="primary"></button><button type="button" id="updates-retry-yes" class="primary" hidden>Try again</button><button type="button" id="updates-retry-no" hidden>Cancel</button><span class="hint" id="updates-retry-note" hidden></span></div>
764
- <div id="updates-settings" class="updates-grid">
765
- <label for="updates-mode">Mode</label>
766
- <select id="updates-mode"><option value="auto">Automatic, in a window</option><option value="asap">As soon as out</option><option value="ask">Ask me</option><option value="off">Off</option></select>
767
- <label for="updates-from" id="updates-window-label">Window</label>
768
- <span id="updates-window" class="updates-window"><input type="time" id="updates-from" aria-label="From"><span aria-hidden="true">to</span><input type="time" id="updates-to" aria-label="To"></span>
769
- <label for="updates-channel">Channel</label>
770
- <select id="updates-channel"><option value="latest">Stable</option><option value="next">Next (test versions)</option></select>
789
+ <details class="chapter" id="settings-ch-advanced" data-chapter="s-advanced">
790
+ <summary><span class="chapter-title">Advanced</span><span class="chapter-about">Ready-made machine, git server keys.</span></summary>
791
+ <div class="chapter-body" id="settings-advanced">
792
+ <div id="shelf">
793
+ <div class="set-row"><div class="set-what"><b>Ready-made machine</b><small>New conversations start from it. Rebuilt monthly</small></div><div class="set-control"><button type="button" id="shelf-rebuild">Rebuild it now</button></div></div>
794
+ <p id="shelf-state" class="hint" role="status"></p>
795
+ <p id="shelf-error" class="error" role="alert" hidden></p>
796
+ </div>
797
+ <div>
798
+ <div class="set-what"><b>Git server keys</b><small>Recorded at first contact; a changed key is refused</small></div>
799
+ <details class="more"><summary>When to forget one</summary><span>Only when the hosting service says on its own site that it changed its key: the next contact then trusts the key it shows.</span></details>
800
+ <p id="git-hosts-empty" class="hint">None yet.</p>
801
+ <div id="git-hosts"></div>
802
+ <p id="git-hosts-error" class="error" role="alert" hidden></p>
771
803
  </div>
772
- <!-- WHEN: the updater's next look, and when a version that is out is installed (server/updates.mjs, schedule). -->
773
- <p class="hint" id="updates-when" hidden></p>
774
- <p class="hint" id="updates-saved" role="status"></p>
775
- <div id="updates-back"></div>
776
- <details id="updates-history-box" hidden><summary>History</summary><ul id="updates-history" class="updates-history"></ul></details>
777
- <p id="updates-error" class="error" role="alert" hidden></p>
778
- </div>
779
804
  </div>
780
805
  </details>
806
+ </section>
807
+ <section class="settings-group" id="settings-group-diagnostics" data-group="diagnostics">
808
+ <h3 class="chapter-group">Diagnostics</h3>
781
809
  <!-- WHAT HAPPENED: the owner's actions and what the server did by itself, dated (server/events.mjs). -->
782
810
  <details class="chapter" id="settings-events-top" data-chapter="s-events">
783
- <summary><span class="chapter-title">What happened</span><span class="chapter-about">Conversations, machines, access, updates, sign-ins: dated.</span></summary>
811
+ <summary><span class="chapter-title">Activity</span><span class="chapter-about">What happened, dated.</span></summary>
784
812
  <div class="chapter-body">
785
813
  <div class="row events-pick">
786
814
  <label>Show <select id="events-kind" class="pill">
@@ -797,7 +825,7 @@
797
825
  <!-- WHAT THE SERVER'S PROGRAMS SAID, to read, copy whole or keep (server/serverlogs.mjs);
798
826
  and this server started again. -->
799
827
  <details class="chapter" id="settings-logs-top" data-chapter="s-logs">
800
- <summary><span class="chapter-title">Logs and restart</span><span class="chapter-about">What the server's programs said; start it again.</span></summary>
828
+ <summary><span class="chapter-title">Logs and restart</span><span class="chapter-about">Server logs; restart.</span></summary>
801
829
  <div class="chapter-body">
802
830
  <div class="row logs-pick">
803
831
  <label>Source <select id="logs-source" class="pill">
@@ -821,39 +849,12 @@
821
849
  <p class="hint" id="logs-said" role="status"></p>
822
850
  <div class="row" id="logs-acts" hidden><button type="button" id="logs-copy">Copy all</button><button type="button" id="logs-save">Download</button></div>
823
851
  <pre id="logs-text" class="logs-text" tabindex="0" hidden></pre>
824
- <p class="hint">What looks like a password, a token or a key is masked. The newest lines are at the bottom.</p>
825
- <div class="row"><button type="button" class="danger" id="server-restart">Restart this server...</button><span class="hint" id="server-restart-said" role="status"></span></div>
826
- <p class="hint">Its machines go on running; the page comes back by itself in a few seconds.</p>
827
- </div>
828
- </details>
829
- <details class="chapter" id="settings-ch-backup" data-chapter="s-backup">
830
- <summary><span class="chapter-title">Storage &amp; backup</span><span class="chapter-about">Disk sizes, and how to back up.</span></summary>
831
- <div class="chapter-body">
832
- <div class="row"><span id="export-note" class="hint">Secrets are never exported, only their names.</span> <label class="check" title="The files of the folders too, in a .tar.gz: to move a flow to another Clavarium with what it holds"><input type="checkbox" id="flows-with-files"> and the files of its folders</label> <span class="row access-files"><button type="button" id="flows-export" title="Everything here, to a file: conversations, assets, devices, links; never a secret's value">Export</button><button type="button" id="flows-import" title="A setup from a file: shown whole before anything is made">Import...</button><input type="file" id="flows-file" accept=".json,application/json,.gz,.tgz,application/gzip" hidden></span> <span id="flows-said" class="hint" role="status"></span></div>
833
- <p class="hint">Each conversation works in a disk of a fixed size (10 GB unless the installation says otherwise). A backup is made on the machine itself, as two files -- the archive, and the key of the vault apart: <code>sudo deploy/backup.sh --to /a/folder</code>.</p>
834
- </div>
835
- </details>
836
- <details class="chapter" id="settings-ch-advanced" data-chapter="s-advanced">
837
- <summary><span class="chapter-title">Advanced</span><span class="chapter-about">Ready-made machine, git server keys.</span></summary>
838
- <div class="chapter-body" id="settings-advanced">
839
- <div id="shelf">
840
- <b>Ready-made machine</b>
841
- <p class="hint">New conversations start from a copy of a machine prepared in advance, with the tools already installed: a minute or two instead of several. It is rebuilt each month in the background; running conversations are not touched.</p>
842
- <p id="shelf-state" role="status"></p>
843
- <div class="row"><button type="button" id="shelf-rebuild">Rebuild it now</button></div>
844
- <p id="shelf-error" class="error" role="alert" hidden></p>
845
- </div>
846
- <div>
847
- <b>Git servers whose key is recorded</b>
848
- <p class="hint">The first time a git server is reached over ssh, the key it shows is recorded; a different key later is refused, because the server may not be who it says. If a hosting service really changed its key (it says so on its own site), forget it here: the next contact will trust whatever key the server shows.</p>
849
- <p id="git-hosts-empty" class="hint">No key recorded yet.</p>
850
- <div id="git-hosts"></div>
851
- <p id="git-hosts-error" class="error" role="alert" hidden></p>
852
- </div>
852
+ <p class="hint">Secrets are masked. Newest at the bottom.</p>
853
+ <div class="set-row"><div class="set-what"><span>Restart this server</span><small id="server-restart-said" role="status">Machines keep running; the page comes back</small></div><div class="set-control"><button type="button" class="danger" id="server-restart">Restart this server...</button></div></div>
853
854
  </div>
854
855
  </details>
855
856
  <details class="chapter" id="settings-ch-about" data-chapter="s-about">
856
- <summary><span class="chapter-title">About</span><span class="chapter-about">The version, who may sign in, the address.</span></summary>
857
+ <summary><span class="chapter-title">About</span><span class="chapter-about">Version, administrators, address.</span></summary>
857
858
  <div class="chapter-body">
858
859
  <!-- Facts only, one line each: a chapter with nothing to act on is not a chapter. -->
859
860
  <p id="settings-about" class="hint"></p>
@@ -861,6 +862,8 @@
861
862
  <p id="settings-address" class="hint"></p>
862
863
  </div>
863
864
  </details>
865
+ </section>
866
+ </div>
864
867
  </div>
865
868
  <div id="copy" class="sheet" hidden>
866
869
  <div class="panel-top"><b>Copy from the screen</b><button type="button" id="copy-close" aria-label="Close" title="Close">&times;</button></div>
package/web/style.css CHANGED
@@ -420,8 +420,9 @@ details.chapter { flex-shrink: 0; border: 1px solid var(--line); border-radius:
420
420
  details.chapter > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 12px 14px; border: 0; background: none; border-radius: 10px; min-height: 48px; }
421
421
  details.chapter > summary::-webkit-details-marker { display: none; }
422
422
  details.chapter > summary::before { content: none; }
423
- details.chapter > summary::after { content: "Expand"; margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--ink2); border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; }
424
- details.chapter[open] > summary::after { content: "Collapse"; }
423
+ /* Folded or open: a chevron, turned when open (no word to wrap under the summary on a phone). */
424
+ details.chapter > summary::after { content: ""; margin-left: auto; align-self: center; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
425
+ details.chapter[open] > summary::after { transform: rotate(-135deg); }
425
426
  details.chapter[open] > summary { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
426
427
  .chapter-title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
427
428
  .chapter-about { font-size: .8125rem; font-weight: 400; color: var(--ink2); flex: 1 1 14rem; }
@@ -1429,3 +1430,84 @@ button.inline.more-recent { text-decoration: none; }
1429
1430
  /* Network: its connections, one a line. */
1430
1431
  .net-links { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
1431
1432
  .net-links code { font-size: .875rem; }
1433
+
1434
+ /* ---------- SETTINGS, AND A CONVERSATION'S SETTINGS: one look ----------
1435
+ Every field the same; a setting is a row (its name and one short line on
1436
+ the left, its control on the right; one under the other on a phone); a
1437
+ state is a line with a dot; what asks for an action is a callout. */
1438
+ :is(#settings, #panel) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select, textarea) {
1439
+ font: .875rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; min-height: 40px; max-width: 100%;
1440
+ }
1441
+ :is(#settings, #panel) select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
1442
+ :is(#settings, #panel) :is(input, select, textarea):focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
1443
+ @media (pointer: coarse) { :is(#settings, #panel) :is(input:not([type=checkbox]):not([type=radio]), select) { min-height: 44px; } }
1444
+ #settings select.pill { font: .875rem var(--sans); font-weight: 400; }
1445
+ :is(#settings, #panel) .chapter-body { gap: 0; padding: 0; background: var(--bar); }
1446
+ :is(#settings, #panel) .chapter-body > * { margin: 0; padding: 12px 16px; }
1447
+ :is(#settings, #panel) .chapter-body > * + * { border-top: 1px solid var(--line); }
1448
+ :is(#settings, #panel) .chapter-body > [hidden] + *, :is(#settings, #panel) .chapter-body > .hint + .hint { border-top: 0; }
1449
+ :is(#settings, #panel) .chapter-body > .hint, :is(#settings, #panel) .chapter-body > .error { padding-top: 8px; padding-bottom: 8px; }
1450
+ .set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
1451
+ .set-row > .set-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
1452
+ .set-row > .set-what > :is(b, label, span:first-child) { font-size: .875rem; font-weight: 600; color: var(--ink); }
1453
+ .set-row > .set-what > small { font-size: .75rem; color: var(--ink2); }
1454
+ .set-row > .set-control { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
1455
+ .set-row > .set-control > :is(input, select) { width: 16rem; }
1456
+ @media (max-width: 560px) { .set-row { grid-template-columns: minmax(0, 1fr); } .set-row > .set-control { justify-content: flex-start; } .set-row > .set-control > :is(input, select) { width: 100%; } }
1457
+ .action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
1458
+ .action-row > [role=status] { margin-right: auto; }
1459
+ .status-line { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
1460
+ .status-line > * { min-width: 0; }
1461
+ .status-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink2); flex: 0 0 auto; }
1462
+ .status-line[data-tone=ok]::before { background: var(--ok); } .status-line[data-tone=warn]::before { background: var(--warn); } .status-line[data-tone=bad]::before { background: var(--danger); }
1463
+ .callout { border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--bar)); border-radius: 4px; font-size: .8125rem; }
1464
+ .callout.bad { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--bar)); }
1465
+ :is(#settings, #panel) .chapter-body > .callout { margin: 8px 16px; padding: 8px 12px; border-top: 0; }
1466
+ .sub-head { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1467
+ /* What is long is said only when asked: a small "i" opens it. */
1468
+ details.more { color: var(--ink2); font-size: .75rem; }
1469
+ details.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--ink2); }
1470
+ details.more > summary::-webkit-details-marker { display: none; }
1471
+ details.more > summary::before { content: "i"; display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--ink2); border-radius: 50%; font: italic 700 .6875rem Georgia, serif; }
1472
+ details.more[open] > summary { margin-bottom: 4px; }
1473
+ /* The categories: beside them on a wide screen, headings one under the other otherwise. */
1474
+ .settings-nav { display: none; }
1475
+ .settings-groups { display: flex; flex-direction: column; gap: 12px; }
1476
+ .settings-group { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 8px; }
1477
+ #settings .chapter-group { margin: 10px 4px 0; font-size: .6875rem; letter-spacing: .06em; }
1478
+ @media (min-width: 1000px) {
1479
+ #settings { display: grid; grid-template-columns: 180px minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; column-gap: 20px; }
1480
+ #settings > .panel-top { grid-column: 1 / -1; }
1481
+ .settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; align-self: start; }
1482
+ .settings-nav button { text-align: left; background: none; border: 0; color: var(--ink2); padding: 9px 10px; border-radius: 8px; font-size: .875rem; }
1483
+ .settings-nav button[aria-current="true"] { background: var(--button, #222c38); color: var(--ink); box-shadow: inset 3px 0 0 var(--brass); }
1484
+ .settings-groups { max-width: 760px; }
1485
+ }
1486
+ /* A form of several settings: each its row, one line between them. */
1487
+ :is(#settings, #panel) .chapter-body > .set-rows { display: flex; flex-direction: column; padding: 0; }
1488
+ .set-rows > * { margin: 0; padding: 12px 16px; }
1489
+ .set-rows > * + * { border-top: 1px solid var(--line); }
1490
+ .set-rows > [hidden] + * { border-top: 0; }
1491
+ /* One thing of a list (a shortcut, an administrator, a key): its name and a line; its actions on the right. */
1492
+ .list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 16px; }
1493
+ .list-item + .list-item { border-top: 1px solid var(--line); }
1494
+ .list-item > .set-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
1495
+ .list-item > .set-what > b { font-size: .875rem; overflow-wrap: anywhere; }
1496
+ .list-item > .set-what > small { font-size: .75rem; color: var(--ink2); }
1497
+ .list-item > :is(button, .set-control) { justify-self: end; }
1498
+ :is(#settings, #panel) .chapter-body > :is(#settings-shortcuts, #operators-rows, #git-hosts) { padding: 0; }
1499
+ .mono-cut { font-family: ui-monospace, Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1500
+ #settings #export-note { max-width: none; text-align: left; margin: 0; order: 0; flex: none; }
1501
+ /* Several settings in one block: one line between them too. */
1502
+ :is(#settings, #panel) .chapter-body > * > :is(.set-row, form.set-row) ~ :is(.set-row, form.set-row):not([hidden]) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
1503
+ /* Nothing in it yet (a list, a line said later): no empty band. */
1504
+ :is(#settings, #panel) .chapter-body > :empty { display: none; }
1505
+ /* A sub-heading inside a chapter: small capitals, no line of its own. */
1506
+ :is(#settings, #panel) .chapter-body .panel-top { border: 0; }
1507
+ :is(#settings, #panel) .chapter-body .panel-top > b { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1508
+ /* The machine's size: each a row, its name on the left, its choice on the right. */
1509
+ #panel #machine-size { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: 10px 16px; align-items: center; max-width: none; }
1510
+ #panel #machine-size > label { font-size: .875rem; font-weight: 600; color: var(--ink); }
1511
+ #panel #machine-size > :is(p, .row) { grid-column: 1 / -1; }
1512
+ #panel #machine-size > .row { justify-content: flex-end; }
1513
+ @media (max-width: 560px) { #panel #machine-size { grid-template-columns: minmax(0, 1fr); } }