Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions l10n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
1 change: 1 addition & 0 deletions l10n/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
1 change: 1 addition & 0 deletions l10n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
5 changes: 5 additions & 0 deletions openspec/changes/admin-settings-tabs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 11 additions & 0 deletions src/components/ExportMonitoringCard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
23 changes: 21 additions & 2 deletions src/components/ExportMonitoringCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
<script setup lang="ts">
Expand All @@ -17,7 +19,12 @@ import { t } from '@nextcloud/l10n'
<section :class="$style.card" data-testid="export-monitoring-card">
<h3>{{ t('versioniq', 'Export and monitoring') }}</h3>
<dl :class="$style.facts">
<dt>{{ t('versioniq', 'An SBOM at every update') }}</dt>
<dt :class="$style.row">
<span id="export-monitoring-sbom-label">{{ t('versioniq', 'An SBOM at every update') }}</span>
<span :class="$style.status"
aria-describedby="export-monitoring-sbom-label"
data-testid="export-monitoring-sbom-status">{{ t('versioniq', 'Always on') }}</span>
</dt>
<dd data-testid="export-monitoring-sbom">
{{ t('versioniq', '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.') }}
</dd>
Expand All @@ -36,5 +43,17 @@ import { t } from '@nextcloud/l10n'

.facts dt { font-weight: 600; }

.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }

.status {
flex: none;
padding: 3px 10px;
border-radius: 12px;
font-size: 13px;
white-space: nowrap;
background: var(--color-success-hover, #e7f3ea);
color: var(--color-success-text, #1e6b2a);
}

.facts dd { margin: 0 0 8px; color: var(--color-text-maxcontrast); font-size: 13px; overflow-wrap: anywhere; }
</style>