From d9652c05ef15a9cf82abf89d65a57dae40a09ba3 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Mon, 30 Nov 2026 10:03:26 +0000 Subject: [PATCH] feat(admin): the SBOM at every update is an always-on status, as board VqInstellingen now draws [skip ci] Decision FINISH-ORDER 2026-11-30T09:50Z option (a): spec inventory-export makes the SBOM after every successful install a MUST, so the Export en monitoring card shows it as a read-only 'Always on' status, no switch. Board amended in design-system#1273. Assisted-by: ClaudeCode:claude-opus-5-5 --- l10n/en.json | 1 + l10n/nl.js | 1 + l10n/nl.json | 1 + openspec/changes/admin-settings-tabs/tasks.md | 5 ++++ src/components/ExportMonitoringCard.spec.ts | 11 +++++++++ src/components/ExportMonitoringCard.vue | 23 +++++++++++++++++-- 6 files changed, 40 insertions(+), 2 deletions(-) diff --git a/l10n/en.json b/l10n/en.json index ea55eddf..3e8009ad 100644 --- a/l10n/en.json +++ b/l10n/en.json @@ -1202,6 +1202,7 @@ "in the window {window}": "in the window {window}", "Export and monitoring": "Export and monitoring", "An SBOM at every update": "An SBOM at every update", + "Always on": "Always on", "After every successful install a CycloneDX SBOM of the state it produced is kept with the history (the newest 200). The History tab exports the current inventory as CycloneDX or SPDX.": "After every successful install a CycloneDX SBOM of the state it produced is kept with the history (the newest 200). The History tab exports the current inventory as CycloneDX or SPDX.", "Metrics for monitoring": "Metrics for monitoring", "OpenMetrics on the server's /metrics (Nextcloud 33 and later): versioniq_app_version per app, with app_id, version, shipped, source and behind; behind is unknown until the first check.": "OpenMetrics on the server's /metrics (Nextcloud 33 and later): versioniq_app_version per app, with app_id, version, shipped, source and behind; behind is unknown until the first check.", diff --git a/l10n/nl.js b/l10n/nl.js index 57af4e0d..98751004 100644 --- a/l10n/nl.js +++ b/l10n/nl.js @@ -1136,6 +1136,7 @@ OC.L10N.register( "in the window {window}": "in het venster {window}", "Export and monitoring": "Export en monitoring", "An SBOM at every update": "Een SBOM bij elke update", + "Always on": "Altijd aan", "After every successful install a CycloneDX SBOM of the state it produced is kept with the history (the newest 200). The History tab exports the current inventory as CycloneDX or SPDX.": "Na elke geslaagde installatie wordt een CycloneDX-SBOM van de toestand die zij opleverde bij de historie bewaard (de nieuwste 200). Het tabblad Historie exporteert de huidige inventaris als CycloneDX of SPDX.", "Metrics for monitoring": "Metrics voor monitoring", "OpenMetrics on the server's /metrics (Nextcloud 33 and later): versioniq_app_version per app, with app_id, version, shipped, source and behind; behind is unknown until the first check.": "OpenMetrics op het /metrics van de server (Nextcloud 33 en later): versioniq_app_version per app, met app_id, version, shipped, source en behind; behind is unknown tot de eerste controle.", diff --git a/l10n/nl.json b/l10n/nl.json index b4209b21..dce59c72 100644 --- a/l10n/nl.json +++ b/l10n/nl.json @@ -1204,6 +1204,7 @@ "in the window {window}": "in het venster {window}", "Export and monitoring": "Export en monitoring", "An SBOM at every update": "Een SBOM bij elke update", + "Always on": "Altijd aan", "After every successful install a CycloneDX SBOM of the state it produced is kept with the history (the newest 200). The History tab exports the current inventory as CycloneDX or SPDX.": "Na elke geslaagde installatie wordt een CycloneDX-SBOM van de toestand die zij opleverde bij de historie bewaard (de nieuwste 200). Het tabblad Historie exporteert de huidige inventaris als CycloneDX of SPDX.", "Metrics for monitoring": "Metrics voor monitoring", "OpenMetrics on the server's /metrics (Nextcloud 33 and later): versioniq_app_version per app, with app_id, version, shipped, source and behind; behind is unknown until the first check.": "OpenMetrics op het /metrics van de server (Nextcloud 33 en later): versioniq_app_version per app, met app_id, version, shipped, source en behind; behind is unknown tot de eerste controle.", diff --git a/openspec/changes/admin-settings-tabs/tasks.md b/openspec/changes/admin-settings-tabs/tasks.md index fd6985a9..a6331b85 100644 --- a/openspec/changes/admin-settings-tabs/tasks.md +++ b/openspec/changes/admin-settings-tabs/tasks.md @@ -227,6 +227,11 @@ Hydra `admin-settings-tabs` row 19 (versioniq). Board VqInstellingen. `AutoUpdateSettingsStoreTest`, `AutoUpdateJobProposalsTest`, `AutoUpdateDryRunPlannerTest`, `ProposalServiceTest`, `ApiProposalSettingsTest`; vitest `ApprovalCard.spec.ts`. Left for 2.2: Instances (no board); VqInstellingen: a switch for the SBOM at every update (always on). + - Twenty-second step (30 Nov 2026, decided 09:50Z, FINISH-ORDER DECISIONS): board VqInstellingen's Export en + monitoring draws the SBOM at every update as a read-only "Altijd aan" status instead of a switch + (design-system#1273), since spec inventory-export makes that SBOM a MUST; the card's SBOM row carries the same + "Always on" status, no control. vitest `ExportMonitoringCard.spec.ts`. + Left for 2.2: Instances (no board), and the live pixel pass of the whole page against the amended boards. - [ ] 2.3 The settings-floor number on the reference stack (nginx, php-fpm, MariaDB, Redis; hydra admin-settings-tabs 3.1). The main bundle grows from 771 kB to 3,302 kB (gzip 239 to 848 kB) with the shell's dependency chain. - 29 Nov 2026, measured, RED (not ticked): sandbox reference stack (nginx, php-fpm 8.3 static 12 with opcache, diff --git a/src/components/ExportMonitoringCard.spec.ts b/src/components/ExportMonitoringCard.spec.ts index 2ae74c3b..e6e7114c 100644 --- a/src/components/ExportMonitoringCard.spec.ts +++ b/src/components/ExportMonitoringCard.spec.ts @@ -16,6 +16,17 @@ describe('ExportMonitoringCard', () => { expect(text).toContain('History tab') }) + it('shows the SBOM at every update as an always-on status, not a switch', () => { + const card = mount(ExportMonitoringCard) + const status = card.find('[data-testid="export-monitoring-sbom-status"]') + + expect(status.text()).toBe('Always on') + expect(status.attributes('aria-describedby')).toBe('export-monitoring-sbom-label') + expect(card.find('#export-monitoring-sbom-label').text()).toBe('An SBOM at every update') + expect(card.find('[role="switch"]').exists()).toBe(false) + expect(card.find('input').exists()).toBe(false) + }) + it('names the OpenMetrics family and its labels', () => { const text = mount(ExportMonitoringCard).find('[data-testid="export-monitoring-metrics"]').text() diff --git a/src/components/ExportMonitoringCard.vue b/src/components/ExportMonitoringCard.vue index 3610199b..84db2e22 100644 --- a/src/components/ExportMonitoringCard.vue +++ b/src/components/ExportMonitoringCard.vue @@ -6,7 +6,9 @@ Board VqInstellingen's "Export en monitoring" card: what versioniq already exports on its own. Every successful install keeps an SBOM of the state it produced (SbomArchive), and the server's OpenMetrics endpoint carries versioniq_app_version per app (AppVersionMetricFamily). Neither has a -setting, so the card says what happens and where to find it. +setting, so the card says what happens and where to find it; the SBOM row +carries the board's read-only "Always on" status (decision 30 Nov 2026 +09:50Z: spec inventory-export makes the SBOM a MUST, so no switch). @spec openspec/changes/admin-settings-tabs/tasks.md -->