Skip to content

Commit 4e7fbc3

Browse files
authored
feat(settings): the federation card's facts are the board's compact list, the directory among them (admin-settings-tabs 2.1) (#2379)
Assisted-by: ClaudeCode:claude-opus-5-5
1 parent 803fed8 commit 4e7fbc3

3 files changed

Lines changed: 27 additions & 14 deletions

File tree

‎openspec/changes/admin-settings-tabs/tasks.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
- Speed check GREEN (30 Nov 2026, sandbox reference stack: nginx, php-fpm 8.3 + opcache, MariaDB, APCu, Redis; NC 34.0.6, OpenRegister main, nextcloud-vue 2.267.0; nextcloud-vue perf harness, 7 warm loads): `/settings/admin/stackiq` 642 ms vs the Sharing page 600 ms (+42 ms, limit +150), first useful content 404 ms (limit 570). Still open for this task: the pixel pass against the three boards.
1111
- Pixel, Data tab (30 Nov 2026, SkInstellingenGegevens): the EOL feed and organisation sync cards put their sync button in the card body and Save in a footer (#2362); the board's standards bulk update card is on the tab (#2365). Still different: no Voorbeeldgegevens card (no demo-data action in the admin UI), no overdue-standards count; the live pixel re-run remains.
1212
- Pixel, Exchange tab (30 Nov 2026, SkInstellingenUitwisseling): the webhooks are a table (Address, Events, Last delivery as a coloured chip, Actions) with Add webhook under it instead of in the title row; the Integraties card lists integriq's connections (#2372). Still different: no Alles controleren (integriq has no re-check-all endpoint).
13-
- Pixel, Exchange tab, federation (30 Nov 2026, SkInstellingenUitwisseling): the subscribed peers are a table (Catalogue, Address, Last pulled, Objects, Actions); stale/blocked badges, last error and the failure streak stay in their cells. Add peer and Pull now sit under the table, Add peer opens the add field (open by itself while no peer is subscribed), and the board's Herkomst line shows the first peer's name. Each peer has the board's action menu; Remove peer asks first in the board's confirmation (Peer, Gevolg). The registration is the board's Aangekondigd line next to Herkomst, the switch stays above it. Still different: the menu has no per-peer Nu ophalen or Adres wijzigen (the API pulls all peers and has no address change); the confirmation says fetched objects stay, because removing a peer deletes nothing (the board's 'De N opgehaalde objecten verdwijnen' waits for Ruben, COORDINATOR-QUEUE 30 Nov).
13+
- Pixel, Exchange tab, federation (30 Nov 2026, SkInstellingenUitwisseling): the subscribed peers are a table (Catalogue, Address, Last pulled, Objects, Actions); stale/blocked badges, last error and the failure streak stay in their cells. Add peer and Pull now sit under the table, Add peer opens the add field (open by itself while no peer is subscribed), and the board's Herkomst line shows the first peer's name. Each peer has the board's action menu; Remove peer asks first in the board's confirmation (Peer, Gevolg). The registration is the board's Aangekondigd line next to Herkomst, the switch stays above it; the directory address joins that compact fact list (labels left, muted) and the card's sub-headings are at the card's text size (live screenshot 30 Nov 2026). Still different: the menu has no per-peer Nu ophalen or Adres wijzigen (the API pulls all peers and has no address change); the confirmation says fetched objects stay, because removing a peer deletes nothing (the board's 'De N opgehaalde objecten verdwijnen' waits for Ruben, COORDINATOR-QUEUE 30 Nov).
1414
- [ ] 2.2 Archive this change with its spec synced.

‎src/views/settings/sections/FederationSettings.vue‎

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,16 @@
7777
{{ registrationText }}
7878
</span>
7979
</dd>
80+
<dt>{{ t('stackiq', 'Directory') }}</dt>
81+
<dd class="federation-directory">
82+
{{ status.directoryUrl || t('stackiq', 'No directory configured') }}
83+
</dd>
8084
<dt>{{ t('stackiq', 'Origin') }}</dt>
8185
<dd data-testid="federation-origin">
8286
{{ originText }}
8387
</dd>
8488
</dl>
8589

86-
<div class="federation-directory">
87-
<h3>{{ t('stackiq', 'Directory') }}</h3>
88-
<p class="help-text">
89-
{{ status.directoryUrl || t('stackiq', 'No directory configured') }}
90-
</p>
91-
</div>
92-
9390
<!-- Add-peer control: open from Add peer under the table (board
9491
SkInstellingenUitwisseling), and always open while no peer is subscribed. -->
9592
<div v-if="addFormShown" class="federation-add-peer" data-testid="federation-add-peer">
@@ -611,26 +608,42 @@ export default defineComponent({
611608
margin-bottom: calc(var(--default-grid-baseline) * 4);
612609
}
613610
611+
/* Board SkInstellingenUitwisseling: a compact fact list, labels left and muted. */
614612
.federation-facts {
615613
display: grid;
616614
grid-template-columns: max-content 1fr;
617-
gap: 8px 16px;
615+
gap: 4px 16px;
618616
margin: 0 0 calc(var(--default-grid-baseline) * 4);
617+
font-size: 14px;
618+
}
619+
620+
.federation-facts dt,
621+
.federation-facts dd {
622+
margin: 0;
623+
padding: 0;
624+
text-align: start;
619625
}
620626
621627
.federation-facts dt {
622628
color: var(--color-text-maxcontrast);
623629
}
624630
625-
.federation-facts dd {
626-
margin: 0;
631+
.federation-directory {
632+
word-break: break-all;
633+
}
634+
635+
/* The sub-headings stay for screen readers and the e2e, at the card's text size. */
636+
.federation-add-peer h3,
637+
.federation-peers h3 {
638+
margin: 0 0 4px;
639+
font-size: 15px;
640+
font-weight: 600;
627641
}
628642
629643
.federation-registration--failed {
630644
color: var(--color-error-text);
631645
}
632646
633-
.federation-directory,
634647
.federation-add-peer {
635648
margin-bottom: 1.5rem;
636649
max-width: 640px;

‎tests/vitest/federationSettingsPeers.spec.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ describe('the add-peer field', () => {
125125
})
126126

127127
describe('the board facts', () => {
128-
it('lists Announced before Origin, the registration under Announced', async () => {
128+
it('lists Announced, Directory and Origin, the registration under Announced', async () => {
129129
const { wrapper } = await rows([{ url: 'https://a.example', name: 'A', failures: 0 }])
130-
expect(wrapper.findAll('.federation-facts dt').map((dt) => dt.text())).toEqual(['Announced', 'Origin'])
130+
expect(wrapper.findAll('.federation-facts dt').map((dt) => dt.text())).toEqual(['Announced', 'Directory', 'Origin'])
131131
expect(wrapper.find('.federation-facts [data-testid="federation-registration"]').text()).toBe('Not registered with the directory yet.')
132132
})
133133
})

0 commit comments

Comments
 (0)