create-pmos 0.83.0 → 0.84.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@9bf7ec5
1
+ kernel-source: pmos@fea3b24
2
2
  assembled: 2026-10-07
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-10-07T16:01:13Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-07T16:12:03Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-10-07T16:01:13Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-07T16:12:03Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-10-07T16:01:13Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-07T16:12:03Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -27,16 +27,16 @@ Each place is drawn when its run is built. Until then the place says which run b
27
27
 
28
28
  ## Settings
29
29
 
30
- Settings holds settings only, in eight sections:
30
+ Settings holds settings only, in eight sections. On a wide screen they are cards in two columns, like Agenda: Repositories, New sessions, Profiles and Theme on the left, and Validate consent, People, Online and Updates on the right. On a narrow screen the cards stack in one column. Each switch (Validate consent, People, Online) turns on when you press it. **Check for updates** is at the top right of the page.
31
31
 
32
32
  - **Repositories**: every registered repository. Press a repository to make it the current one. Press its ⋯ for **Rename** or **Remove from PMOS**. Each asks in a sheet, and a remove asks you to confirm. **Add repository** shows the scan of a folder before you add it.
33
33
  - **Profiles**: the Claude profiles a session can start with. They open in the detail.
34
34
  - **New sessions**: the default CLI and the default model for a new session in the dock.
35
- - **Validate consent**: the consent of the current repository. Turn it on or off here. **Open Validate** opens the Validate page as a tab.
35
+ - **Validate consent**: the consent of the current repository. Use its switch to turn it on or off. **Open Validate** opens the Validate page as a tab.
36
36
  - **People**: whether the morning brief keeps attendee names from the calendar for the current repository. It is off until you turn it on. Turning it off also hides the names recorded before.
37
- - **Online**: puts this workspace at your own address, such as `pmos.pm-os.app`, through a Cloudflare tunnel. Enter the public address, the tunnel name, your Cloudflare team domain, the Access audience (AUD) tag and your email, then press **Turn on**. The workspace runs the tunnel and remembers the switch when it restarts. On your phone, open the address and sign in with Cloudflare Access (Google or an email code). The workspace does not ask for its token there. Only the computer that runs the workspace can change this section. A phone sees whether it is on. When a sign-in at the address is refused, this section names the check that failed, such as the email or the AUD tag. [REMOTE.md](../REMOTE.md) has the one-time Cloudflare steps.
37
+ - **Online**: puts this workspace at your own address, such as `pmos.pm-os.app`, through a Cloudflare tunnel. Enter the public address, the tunnel name, your Cloudflare team domain, the Access audience (AUD) tag and your email, then turn on the **Online** switch. The workspace runs the tunnel and remembers the switch when it restarts. On your phone, open the address and sign in with Cloudflare Access (Google or an email code). The workspace does not ask for its token there. Only the computer that runs the workspace can change this section. A phone sees whether it is on. When a sign-in at the address is refused, this section names the check that failed, such as the email or the AUD tag. [REMOTE.md](../REMOTE.md) has the one-time Cloudflare steps.
38
38
  - **Theme**: Dark or Light.
39
- - **Updates**: the version of the workspace app and the version of the kit in the current repository. Press **Check for updates** to compare them with the latest published version of PMOS. This is the only time the workspace asks the internet for a version, and it asks only when you press. When a newer version is available, one button shows: **Update to** and the version. It updates every part that is older, in this order:
39
+ - **Updates**: the version of the workspace app and the version of the kit in the current repository. Press **Check for updates** at the top of the page to compare them with the latest published version of PMOS. This is the only time the workspace asks the internet for a version, and it asks only when you press. When a newer version is available, one button shows: **Update to** and the version. It updates every part that is older, in this order:
40
40
  - **The kit** in the current repository, when it is older. This does what `npx create-pmos@latest --update` does in a terminal. It changes only the kit's own files under `pmos/` (skills, scripts, templates and guides). Your records in `state/`, `planning/` and `okf/product/` do not change. The last lines of the output show under the button. The changed files are under `pmos/`, which Sync treats as records, so Sync (or automatic sync) sends them with your other records. To read them first, look at `git diff pmos/` before you sync.
41
41
  - **The workspace app**, when it is older. This does what `pmos upgrade` does in a terminal. The button asks you first. The workspace stops, installs the new version and starts again, and the page reloads when the new version starts. The reloaded page runs the new version's code: each start gives the page files a new address, so neither the browser nor the Online address's tunnel can keep the old ones. You do not need a terminal or a hard refresh. Sessions keep running in tmux. It works on the computer that runs the workspace and at its Online address, because the page comes back there after the restart. It also works on a phone or public address that signs in with a token set in `PMOS_TOKEN`, which the workspace keeps. When the workspace made its own token at start, the token changes on the restart, so the page refuses and says where to press it. When the workspace runs from a PMOS checkout, update it with `git pull` instead.
42
42
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.83.0",
9
+ "version": "0.84.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -2359,18 +2359,22 @@
2359
2359
  .fr-body[data-fr-dock="rail"] > .fr-dock {
2360
2360
  display: none !important;
2361
2361
  }
2362
- /* Settings: one column of seven sections. */
2362
+ /* Settings: a full-width two-column grid of cards, laid out like Agenda. The grid sits in a container so it folds to one
2363
+ * column by the width of the page, not the window. */
2363
2364
  .fr-set {
2364
2365
  display: flex;
2365
2366
  flex-direction: column;
2366
- gap: 24px;
2367
- max-width: 720px;
2368
- padding: 24px 16px 48px;
2367
+ gap: 12px;
2368
+ width: 100%;
2369
+ padding: 16px 16px 48px;
2370
+ container-type: inline-size;
2369
2371
  }
2370
2372
  .fr-set__intro {
2371
2373
  display: flex;
2372
- flex-direction: column;
2373
- gap: 4px;
2374
+ align-items: center;
2375
+ justify-content: space-between;
2376
+ gap: 12px;
2377
+ min-height: 32px;
2374
2378
  }
2375
2379
  .fr-set__h1 {
2376
2380
  margin: 0;
@@ -2382,10 +2386,39 @@
2382
2386
  color: var(--muted-foreground);
2383
2387
  font-size: 12px;
2384
2388
  }
2389
+ .fr-set__grid {
2390
+ display: grid;
2391
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
2392
+ grid-template-rows: repeat(5, auto);
2393
+ gap: 12px;
2394
+ align-items: stretch;
2395
+ }
2396
+ /* Left: repositories, new sessions, profiles, theme. Right: Validate, People, Online, updates. The DOM order stays
2397
+ * repositories, profiles, sessions, validate, people, online, theme, updates; Online spans two rows so the columns stay level. */
2398
+ .fr-set__section[data-fr-section="repositories"] { grid-column: 1; grid-row: 1 / span 1; }
2399
+ .fr-set__section[data-fr-section="sessions"] { grid-column: 1; grid-row: 2 / span 1; }
2400
+ .fr-set__section[data-fr-section="profiles"] { grid-column: 1; grid-row: 3 / span 1; }
2401
+ .fr-set__section[data-fr-section="theme"] { grid-column: 1; grid-row: 4 / span 1; }
2402
+ .fr-set__section[data-fr-section="validate"] { grid-column: 2; grid-row: 1 / span 1; }
2403
+ .fr-set__section[data-fr-section="people"] { grid-column: 2; grid-row: 2 / span 1; }
2404
+ .fr-set__section[data-fr-section="online"] { grid-column: 2; grid-row: 3 / span 2; }
2405
+ .fr-set__section[data-fr-section="updates"] { grid-column: 2; grid-row: 5 / span 1; }
2406
+ @container (max-width: 700px) {
2407
+ .fr-set__grid {
2408
+ grid-template-columns: minmax(0, 1fr);
2409
+ grid-template-rows: none;
2410
+ }
2411
+ .fr-set__section[data-fr-section] { grid-column: 1; grid-row: auto; }
2412
+ }
2385
2413
  .fr-set__section {
2386
2414
  display: flex;
2387
2415
  flex-direction: column;
2388
2416
  gap: 8px;
2417
+ min-width: 0;
2418
+ padding: 10px 12px;
2419
+ border: 1px solid var(--border);
2420
+ border-radius: 8px;
2421
+ background: var(--card);
2389
2422
  }
2390
2423
  .fr-set__head {
2391
2424
  display: flex;
@@ -2395,14 +2428,27 @@
2395
2428
  min-height: 32px;
2396
2429
  }
2397
2430
  .fr-set__title {
2431
+ display: flex;
2432
+ align-items: center;
2433
+ gap: 6px;
2398
2434
  margin: 0;
2399
- font-size: 14px;
2400
- font-weight: 600;
2435
+ color: var(--muted-foreground);
2436
+ font-size: 11px;
2437
+ font-weight: 500;
2438
+ letter-spacing: 0.04em;
2439
+ text-transform: uppercase;
2401
2440
  }
2402
2441
  .fr-set__fields {
2403
2442
  display: flex;
2404
2443
  flex-wrap: wrap;
2405
- gap: 16px;
2444
+ gap: 10px;
2445
+ }
2446
+ .fr-set__fields--grid {
2447
+ display: grid;
2448
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
2449
+ }
2450
+ .fr-set__fields--grid > * {
2451
+ min-width: 0;
2406
2452
  }
2407
2453
  .fr-set__line {
2408
2454
  display: flex;
@@ -2410,6 +2456,32 @@
2410
2456
  justify-content: space-between;
2411
2457
  gap: 12px;
2412
2458
  }
2459
+ .fr-set__line--box {
2460
+ justify-content: flex-start;
2461
+ gap: 10px;
2462
+ padding: 8px 10px;
2463
+ border: 1px solid var(--border);
2464
+ border-radius: 8px;
2465
+ background: var(--background);
2466
+ font-size: 14px;
2467
+ }
2468
+ .fr-set__sw {
2469
+ display: flex;
2470
+ align-items: center;
2471
+ justify-content: space-between;
2472
+ gap: 12px;
2473
+ padding: 8px 10px;
2474
+ border: 1px solid var(--border);
2475
+ border-radius: 8px;
2476
+ background: var(--background);
2477
+ }
2478
+ .fr-set__sw-text {
2479
+ flex: 1;
2480
+ min-width: 0;
2481
+ display: grid;
2482
+ gap: 2px;
2483
+ font-size: 14px;
2484
+ }
2413
2485
  .fr-set__add {
2414
2486
  padding: 12px 0;
2415
2487
  }
@@ -2422,6 +2494,7 @@
2422
2494
  overflow: auto;
2423
2495
  padding: 8px;
2424
2496
  border: 1px solid var(--border);
2497
+ border-radius: 6px;
2425
2498
  background: var(--muted);
2426
2499
  color: var(--foreground);
2427
2500
  font-family: var(--mono);
@@ -2441,9 +2514,13 @@
2441
2514
  }
2442
2515
  }
2443
2516
  @media (pointer: coarse) {
2444
- .fr-set__head {
2517
+ .fr-set__head,
2518
+ .fr-set__intro {
2445
2519
  min-height: 44px;
2446
2520
  }
2521
+ .fr-set__sw {
2522
+ min-height: 48px;
2523
+ }
2447
2524
  /* The dock's own strip and bottom bar (panel-tabs.js) size their controls inline at 22-30px; under touch each is a
2448
2525
  * 44px target. The strip's fixed height yields to them. */
2449
2526
  .fr-dock [data-tabs="bar"] {
@@ -31,6 +31,7 @@ import { repoRow } from './fixture.js';
31
31
  import { sessionDefaults, setSessionDefaults } from './dock.js';
32
32
  import { COPY } from './frame-copy.js';
33
33
  import { askConfirm } from './dialogs.js';
34
+ import { icon } from './icons.js';
34
35
 
35
36
  const P = COPY.page;
36
37
  const roots = new WeakMap(); // host -> { root, sig }
@@ -104,10 +105,17 @@ async function setOnline(patch) {
104
105
  setState({});
105
106
  }
106
107
 
107
- const section = (id, title, kids, action) => el('section', { class: 'fr-set__section', 'data-fr-section': id },
108
- el('div', { class: 'fr-set__head' }, el('h2', { class: 'fr-set__title' }, title), action || null),
108
+ /* A card: a small uppercase eyebrow (icon + title) over the section's rows. The section ids and data-fr hooks are the contract. */
109
+ const section = (id, title, kids, action, iconName) => el('section', { class: 'fr-set__section', 'data-fr-section': id },
110
+ el('div', { class: 'fr-set__head' }, el('h2', { class: 'fr-set__title' }, iconName ? icon(iconName) : null, title), action || null),
109
111
  kids);
110
112
 
113
+ /** A toggle row: the state text beside a Turn on / Turn off button (the same button as before the redesign). */
114
+ function switchRow({ textEl, on, disabled, attrs, onClick }) {
115
+ const toggle = button({ label: on ? P.turnOff : P.turnOn, variant: 'outline', size: 'sm', disabled: !!disabled, attrs, onClick });
116
+ return el('div', { class: 'fr-set__sw' }, el('div', { class: 'fr-set__sw-text' }, textEl), toggle);
117
+ }
118
+
111
119
  /* ── the eight sections ────────────────────────────────────────────────────────────────────────────────────────── */
112
120
 
113
121
  function reposSection(scope) {
@@ -142,7 +150,7 @@ function reposSection(scope) {
142
150
  });
143
151
  const kids = rows.length ? rows : [empty({ text: P.reposEmpty })];
144
152
  if (addOpen) kids.push(addBoard());
145
- return section('repositories', P.repos, kids, add);
153
+ return section('repositories', P.repos, kids, add, 'git-branch');
146
154
  }
147
155
 
148
156
  function loadAdd() {
@@ -173,7 +181,7 @@ function profilesSection() {
173
181
  return section('profiles', P.profiles, [row({
174
182
  title: P.profilesRow, meta: [P.profilesMeta], onOpen: open, openLabel: P.profilesOpen, trail: [more],
175
183
  attrs: { 'data-fr-row': 'profiles' },
176
- })]);
184
+ })], null, 'bot');
177
185
  }
178
186
 
179
187
  function sessionsSection() {
@@ -190,21 +198,21 @@ function sessionsSection() {
190
198
  onCommit: (v) => { setSessionDefaults({ tier: v }); setState({}); },
191
199
  attrs: { 'data-fr': 'default-model' },
192
200
  });
193
- return section('sessions', P.sessions, [el('div', { class: 'fr-set__fields' }, cli, model), el('p', { class: 'fr-set__note' }, P.sessionsNote)]);
201
+ return section('sessions', P.sessions, [el('div', { class: 'fr-set__fields fr-set__fields--grid' }, cli, model), el('p', { class: 'fr-set__note' }, P.sessionsNote)], null, 'square-terminal');
194
202
  }
195
203
 
196
204
  function validateSection(scope) {
197
205
  const repo = scope === 'all' ? null : activeProduct();
198
206
  const ws = wsOfRepo(repo);
199
- if (!ws) return section('validate', P.validate, [empty({ text: P.validateNoRepo })]);
207
+ if (!ws) return section('validate', P.validate, [empty({ text: P.validateNoRepo })], null, 'check');
200
208
  readConsent(ws);
201
209
  const c = consentByWs.get(ws) || {};
202
210
  const known = c.on === true || c.on === false;
203
211
  const line = c.error ? P.validateUnread : !known ? '' : c.on ? P.validateOn : P.validateOff;
204
- const toggle = known ? button({
205
- label: c.on ? P.turnOff : P.turnOn, variant: 'outline', size: 'sm',
206
- attrs: { 'data-fr': 'consent-toggle' }, onClick: () => setConsent(ws, !c.on),
207
- }) : null;
212
+ const stateEl = el('span', { 'data-fr': 'consent-state', 'data-on': known ? String(c.on) : 'unread' }, line);
213
+ const toggleRow = known ? switchRow({
214
+ textEl: stateEl, label: line, on: c.on, attrs: { 'data-fr': 'consent-toggle' }, onClick: () => setConsent(ws, !c.on),
215
+ }) : el('div', { class: 'fr-set__sw' }, el('div', { class: 'fr-set__sw-text' }, stateEl));
208
216
  // Validate itself is a tool, not a place: it opens as a tab in the dock, from here only
209
217
  const open = button({
210
218
  label: P.validateOpen, variant: 'outline', size: 'sm', attrs: { 'data-fr': 'open-validate' },
@@ -214,32 +222,31 @@ function validateSection(scope) {
214
222
  const f = frame(); if (f) f.openDock();
215
223
  },
216
224
  });
217
- return section('validate', P.validate, [el('div', { class: 'fr-set__line' },
218
- el('span', { 'data-fr': 'consent-state', 'data-on': known ? String(c.on) : 'unread' }, line), toggle, open)]);
225
+ return section('validate', P.validate, [toggleRow], open, 'check');
219
226
  }
220
227
 
221
228
  function peopleSection(scope) {
222
229
  const repo = scope === 'all' ? null : activeProduct();
223
230
  const ws = wsOfRepo(repo);
224
- if (!ws) return section('people', P.people, [empty({ text: P.peopleNoRepo })]);
231
+ if (!ws) return section('people', P.people, [empty({ text: P.peopleNoRepo })], null, 'share-2');
225
232
  readPeople(ws);
226
233
  const c = peopleByWs.get(ws) || {};
227
234
  const known = c.on === true || c.on === false;
228
235
  const line = c.error ? c.error : !known ? '' : c.on ? P.peopleOn : P.peopleOff;
229
- const toggle = known ? button({
230
- label: c.on ? P.turnOff : P.turnOn, variant: 'outline', size: 'sm',
231
- attrs: { 'data-fr': 'people-calendar' }, onClick: () => setPeopleCalendar(ws, !c.on),
232
- }) : null;
233
- return section('people', P.people, [el('p', { class: 'fr-set__note' }, P.peopleNote),
234
- el('div', { class: 'fr-set__line' }, el('span', { 'data-fr': 'people-state', 'data-on': known ? String(c.on) : 'unread' }, line), toggle)]);
236
+ const stateEl = el('span', { 'data-fr': 'people-state', 'data-on': known ? String(c.on) : 'unread' }, line);
237
+ const toggleRow = known ? switchRow({
238
+ textEl: stateEl, label: line, on: c.on, attrs: { 'data-fr': 'people-calendar' }, onClick: () => setPeopleCalendar(ws, !c.on),
239
+ }) : el('div', { class: 'fr-set__sw' }, el('div', { class: 'fr-set__sw-text' }, stateEl));
240
+ return section('people', P.people, [toggleRow, el('p', { class: 'fr-set__note' }, P.peopleNote)], null, 'share-2');
235
241
  }
236
242
 
237
243
  function onlineSection() {
238
244
  readOnline(false);
239
245
  const d = online.data;
240
- if (!d) return section('online', P.online, [el('p', { class: 'fr-set__note' }, online.error || '')]);
241
- if (d.envHost) return section('online', P.online, [el('p', { class: 'fr-set__note', 'data-fr': 'online-state', 'data-on': 'env' }, P.onlineEnv(d.envHost))]);
242
- const lines = [el('p', { class: 'fr-set__note', 'data-fr': 'online-state', 'data-on': String(!!d.on) }, d.on ? P.onlineOn(d.host) : P.onlineOff)];
246
+ if (!d) return section('online', P.online, [el('p', { class: 'fr-set__note' }, online.error || '')], null, 'globe');
247
+ if (d.envHost) return section('online', P.online, [el('p', { class: 'fr-set__note', 'data-fr': 'online-state', 'data-on': 'env' }, P.onlineEnv(d.envHost))], null, 'globe');
248
+ const stateP = el('p', { class: 'fr-set__note', 'data-fr': 'online-state', 'data-on': String(!!d.on) }, d.on ? P.onlineOn(d.host) : P.onlineOff);
249
+ const lines = [];
243
250
  if (d.on) {
244
251
  const r = d.running || {};
245
252
  lines.push(el('p', { class: 'fr-set__note', 'data-fr': 'online-tunnel' },
@@ -247,24 +254,24 @@ function onlineSection() {
247
254
  if (d.keys && !d.keys.keys) lines.push(el('p', { class: 'fr-set__note', 'data-fr': 'online-keys' }, d.keys.lastError ? P.onlineKeysError(d.keys.lastError) : P.onlineKeysWait));
248
255
  if (d.lastRefusal) lines.push(el('p', { class: 'fr-set__note', 'data-fr': 'online-refused', role: 'status' }, P.onlineRefused(d.lastRefusal.reason, d.lastRefusal.at)));
249
256
  }
250
- if (!d.canChange) return section('online', P.online, [...lines, el('p', { class: 'fr-set__note' }, P.onlineRemote)]);
257
+ if (!d.canChange) return section('online', P.online, [stateP, ...lines, el('p', { class: 'fr-set__note' }, P.onlineRemote)], null, 'globe');
251
258
  const f = (key, label, placeholder) => field({
252
259
  label, value: d[key] || '', placeholder,
253
260
  onCommit: (v) => setOnline({ [key]: v }),
254
261
  attrs: { 'data-fr': 'online-' + key, disabled: d.on ? true : undefined },
255
262
  });
256
- const fields = el('div', { class: 'fr-set__fields' },
263
+ const fields = el('div', { class: 'fr-set__fields fr-set__fields--grid' },
257
264
  f('host', P.onlineHost, 'pmos.example.com'), f('tunnel', P.onlineTunnel, 'pmos'), f('team', P.onlineTeam, 'myteam.cloudflareaccess.com'),
258
265
  f('audience', P.onlineAudience, ''), f('email', P.onlineEmail, 'you@example.com'));
259
266
  const blocked = !d.on && (!d.complete ? P.onlineNeedFields : !d.cloudflared ? P.onlineNoCloudflared : null);
260
- const toggle = button({
261
- label: d.on ? P.turnOff : P.turnOn, variant: 'outline', size: 'sm', disabled: !!blocked,
267
+ const toggleRow = switchRow({
268
+ textEl: stateP, label: d.on ? P.onlineOn(d.host) : P.onlineOff, on: !!d.on, disabled: !!blocked,
262
269
  attrs: { 'data-fr': 'online-toggle' }, onClick: () => setOnline({ on: !d.on }),
263
270
  });
264
- const kids = [el('p', { class: 'fr-set__note' }, P.onlineIntro), fields, el('div', { class: 'fr-set__line' }, ...lines, toggle)];
271
+ const kids = [toggleRow, ...lines, el('p', { class: 'fr-set__note' }, P.onlineIntro), fields];
265
272
  if (blocked) kids.push(el('p', { class: 'fr-set__note', 'data-fr': 'online-blocked' }, blocked));
266
273
  if (online.note) kids.push(el('p', { class: 'fr-set__note', 'data-fr': 'online-error', role: 'alert' }, online.note));
267
- return section('online', P.online, kids);
274
+ return section('online', P.online, kids, null, 'globe');
268
275
  }
269
276
 
270
277
  function themeSection() {
@@ -273,7 +280,7 @@ function themeSection() {
273
280
  items: [{ id: 'dark', label: P.dark }, { id: 'light', label: P.light }],
274
281
  onChange: (id) => setState({ theme: id }),
275
282
  attrs: { 'data-fr': 'theme' },
276
- })]);
283
+ })], null, 'sun');
277
284
  }
278
285
 
279
286
  function readKitStatus(ws, force) {
@@ -362,10 +369,10 @@ function updatesSection(scope) {
362
369
  const kids = [];
363
370
  const kitPresent = !!(kit && kit.present);
364
371
  const canUpdate = (cmp.appBehind && !app.fromCheckout) || (cmp.kitBehind && kitPresent);
365
- kids.push(el('div', { class: 'fr-set__line' }, el('span', { 'data-fr': 'app-version' }, P.updatesApp(app.version))));
372
+ kids.push(el('div', { class: 'fr-set__line fr-set__line--box' }, icon('panel-top'), el('span', { 'data-fr': 'app-version' }, P.updatesApp(app.version))));
366
373
  if (cmp.appBehind && app.fromCheckout) kids.push(el('p', { class: 'fr-set__note', 'data-fr': 'app-checkout' }, P.updatesCheckout));
367
374
  const kitText = scope === 'all' || !ws ? P.updatesNoRepo : !kit ? '' : kit.present ? P.updatesKit(kit.version) : P.updatesNoKit;
368
- kids.push(el('div', { class: 'fr-set__line' }, el('span', { 'data-fr': 'kit-version' }, kitText)));
375
+ kids.push(el('div', { class: 'fr-set__line fr-set__line--box' }, icon('cloud'), el('span', { 'data-fr': 'kit-version' }, kitText)));
369
376
  if (canUpdate) {
370
377
  kids.push(el('div', { class: 'fr-set__line' }, button({
371
378
  label: P.updateAllTo(upd.latest), variant: 'primary', size: 'sm', disabled: busy, attrs: { 'data-fr': 'update-all' },
@@ -378,11 +385,17 @@ function updatesSection(scope) {
378
385
  if (upd.error) kids.push(el('p', { class: 'fr-set__note fr-set__error', role: 'alert', 'data-fr': 'update-error' }, upd.error));
379
386
  if (upd.output) kids.push(el('pre', { class: 'fr-set__output', 'data-fr': 'update-output' }, upd.output));
380
387
  kids.push(el('p', { class: 'fr-set__note' }, P.updatesNote));
381
- const check = button({
382
- label: P.updatesCheck, variant: 'outline', size: 'sm', icon: 'refresh-cw', disabled: busy || !ws,
388
+ return section('updates', P.updates, kids, null, 'arrow-down');
389
+ }
390
+
391
+ /** Check for updates sits in the page header; it asks about the current repository's kit. */
392
+ function checkButton(scope) {
393
+ const repo = scope === 'all' ? null : activeProduct();
394
+ const ws = wsOfRepo(repo) || wsOfRepo(activeProduct());
395
+ return button({
396
+ label: P.updatesCheck, variant: 'outline', size: 'sm', icon: 'refresh-cw', disabled: !!upd.phase || !ws,
383
397
  attrs: { 'data-fr': 'check-updates' }, onClick: () => checkUpdates(ws),
384
398
  });
385
- return section('updates', P.updates, kids, check);
386
399
  }
387
400
 
388
401
  /* ── mount ────────────────────────────────────────────────────────────────────────────────────────────────────────── */
@@ -415,15 +428,18 @@ export function mountDestination(host, ctx) {
415
428
  if (sig === r.sig || busy(r.root)) return;
416
429
  r.sig = sig;
417
430
  setChildren(r.root, [
418
- el('header', { class: 'fr-set__intro' }, el('h1', { class: 'fr-set__h1' }, P.title), el('p', { class: 'fr-set__note' }, P.intro)),
419
- reposSection(scope),
420
- profilesSection(),
421
- sessionsSection(),
422
- validateSection(scope),
423
- peopleSection(scope),
424
- onlineSection(),
425
- themeSection(),
426
- updatesSection(scope),
431
+ el('header', { class: 'fr-set__intro' }, el('h1', { class: 'fr-set__h1' }, P.title), checkButton(scope)),
432
+ /* The DOM keeps the section order (the tests and the keyboard order read it); the grid in components.css places the
433
+ * left column (repositories, new sessions, profiles, theme) and the right (Validate, People, Online, updates). */
434
+ el('div', { class: 'fr-set__grid' },
435
+ reposSection(scope),
436
+ profilesSection(),
437
+ sessionsSection(),
438
+ validateSection(scope),
439
+ peopleSection(scope),
440
+ onlineSection(),
441
+ themeSection(),
442
+ updatesSection(scope)),
427
443
  ]);
428
444
  }
429
445