From 1ef53cb618510a0cf91dce3e6cfdbd7cc3839bac Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Mon, 30 Nov 2026 10:00:19 +0000 Subject: [PATCH] feat(admin): the Export and monitoring card shows the SBOM at every update as always on (admin-settings-tabs 2.2) Board VqInstellingen draws 'SBOM bij elke update' as a read-only 'Altijd aan' status (design-system#1272, decided 2026-11-30T09:50Z): spec inventory-export makes an SBOM after every successful install a MUST, so there is no switch. The card's SBOM row carries the 'Always on' status chip. Assisted-by: ClaudeCode:claude-opus-5-5 --- l10n/en.json | 3 ++- l10n/nl.js | 3 ++- l10n/nl.json | 3 ++- openspec/changes/admin-settings-tabs/tasks.md | 6 +++++ src/components/ExportMonitoringCard.spec.ts | 11 +++++++++ src/components/ExportMonitoringCard.vue | 24 +++++++++++++++++-- 6 files changed, 45 insertions(+), 5 deletions(-) diff --git a/l10n/en.json b/l10n/en.json index ea55eddf..353b4281 100644 --- a/l10n/en.json +++ b/l10n/en.json @@ -1201,7 +1201,8 @@ "{app} {version}, waits for Retry": "{app} {version}, waits for Retry", "in the window {window}": "in the window {window}", "Export and monitoring": "Export and monitoring", - "An SBOM at every update": "An SBOM at every update", + "SBOM at every update": "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..08ecf093 100644 --- a/l10n/nl.js +++ b/l10n/nl.js @@ -1135,7 +1135,8 @@ OC.L10N.register( "{app} {version}, waits for Retry": "{app} {version}, wacht op Opnieuw proberen", "in the window {window}": "in het venster {window}", "Export and monitoring": "Export en monitoring", - "An SBOM at every update": "Een SBOM bij elke update", + "SBOM at every update": "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..8dbd9314 100644 --- a/l10n/nl.json +++ b/l10n/nl.json @@ -1203,7 +1203,8 @@ "{app} {version}, waits for Retry": "{app} {version}, wacht op Opnieuw proberen", "in the window {window}": "in het venster {window}", "Export and monitoring": "Export en monitoring", - "An SBOM at every update": "Een SBOM bij elke update", + "SBOM at every update": "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..03bd77cf 100644 --- a/openspec/changes/admin-settings-tabs/tasks.md +++ b/openspec/changes/admin-settings-tabs/tasks.md @@ -227,6 +227,12 @@ 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 card draws "SBOM bij elke update" as a read-only "Altijd aan" status instead of a switch + (design-system#1272; spec inventory-export unchanged, an SBOM after every successful install is a MUST), and the + card follows it: the SBOM row's title carries the "Always on" status chip, with no control. vitest + `ExportMonitoringCard.spec.ts`. + Left for 2.2: Instances (no board; QUESTION queued). - [ ] 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..7f79b9ca 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.exists()).toBe(true) + expect(status.text()).toBe('Always on') + expect(card.find('dt').text()).toContain('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..648897bb 100644 --- a/src/components/ExportMonitoringCard.vue +++ b/src/components/ExportMonitoringCard.vue @@ -6,7 +6,10 @@ 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 +is the board's read-only "Altijd aan" status (decided 30 Nov 2026 09:50Z): +spec inventory-export makes it a MUST after every successful install, so +there is no switch. @spec openspec/changes/admin-settings-tabs/tasks.md -->