From 31e389949024bfd429cb233a56f185eb9210afd0 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Wed, 9 Sep 2026 02:03:40 +0200 Subject: [PATCH] fix(ui): align contextual documentation with headings Verified with the coordinated workspace changes by devkit full run 2026-09-08T225814-186389-0000-3e3ed7cd (all seven phases passed). This shared UI pass does not mark the individual module reviews complete. --- src/govoplan_dist_lists/backend/manifest.py | 8 ++++++-- tests/test_interface_documentation_contract.py | 2 +- .../features/distributionLists/DistributionListsPage.tsx | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/govoplan_dist_lists/backend/manifest.py b/src/govoplan_dist_lists/backend/manifest.py index 5a05777..0b54479 100644 --- a/src/govoplan_dist_lists/backend/manifest.py +++ b/src/govoplan_dist_lists/backend/manifest.py @@ -110,7 +110,9 @@ DOCUMENTATION = ( id="dist_lists.workspace-layout", title="Distribution Lists workspace actions", summary="Find collection-wide commands in their consistent workspace position.", - body="Reload and New distribution list use the persistent full-width workspace header at the upper right; Reload sits immediately before creation. Selecting a record, changing filters, or opening an editor does not move these collection-wide commands into the left pane. Member editing and saving stay with the selected list; membership, provenance, and delivery semantics are unchanged. Existing permissions, disabled-state rules, and unsaved-change guards still apply. Administrators configure authority through the existing permission system; no new permission or automatic operation is introduced.", + body="Open the documentation book beside Distribution Lists for workspace guidance; field " + "documentation stays beside the relevant label. " + "Reload and New distribution list use the persistent full-width workspace header at the upper right; Reload sits immediately before creation. Selecting a record, changing filters, or opening an editor does not move these collection-wide commands into the left pane. Member editing and saving stay with the selected list; membership, provenance, and delivery semantics are unchanged. Existing permissions, disabled-state rules, and unsaved-change guards still apply. Administrators configure authority through the existing permission system; no new permission or automatic operation is introduced.", layer="static", documentation_types=("user", "admin"), audience=("user", "module_admin", "operator"), @@ -118,7 +120,9 @@ DOCUMENTATION = ( translations={"de": { "title": "Verteilerlisten: Aktionen im Arbeitsbereich", "summary": "Sammlungsweite Aktionen an ihrer einheitlichen Position im Arbeitsbereich finden.", - "body": "Neu laden und Neue Verteilerliste stehen oben rechts in der dauerhaft sichtbaren, arbeitsbereichsweiten Leiste; Neu laden steht unmittelbar vor dem Anlegen. Auswahl, Filterwechsel und Bearbeitung verschieben diese sammlungsweiten Aktionen nicht in den linken Bereich. Bearbeiten der Mitglieder und Speichern bleiben bei der ausgewählten Liste; Mitgliedschaft, Herkunftsnachweise und Zustellungssemantik ändern sich nicht. Bestehende Berechtigungen, Deaktivierungsregeln und der Schutz ungespeicherter Änderungen gelten weiterhin. Administratoren konfigurieren Rechte im bestehenden Berechtigungssystem; es entstehen weder neue Rechte noch automatische Vorgänge.", + "body": "Öffnen Sie das Dokumentationsbuch neben Verteilerlisten für Hinweise zum Arbeitsbereich; " + "Felddokumentation bleibt neben der jeweiligen Feldbezeichnung. " + "Neu laden und Neue Verteilerliste stehen oben rechts in der dauerhaft sichtbaren, arbeitsbereichsweiten Leiste; Neu laden steht unmittelbar vor dem Anlegen. Auswahl, Filterwechsel und Bearbeitung verschieben diese sammlungsweiten Aktionen nicht in den linken Bereich. Bearbeiten der Mitglieder und Speichern bleiben bei der ausgewählten Liste; Mitgliedschaft, Herkunftsnachweise und Zustellungssemantik ändern sich nicht. Bestehende Berechtigungen, Deaktivierungsregeln und der Schutz ungespeicherter Änderungen gelten weiterhin. Administratoren konfigurieren Rechte im bestehenden Berechtigungssystem; es entstehen weder neue Rechte noch automatische Vorgänge.", }}, ), DocumentationTopic( diff --git a/tests/test_interface_documentation_contract.py b/tests/test_interface_documentation_contract.py index 7f9fa09..63519f1 100644 --- a/tests/test_interface_documentation_contract.py +++ b/tests/test_interface_documentation_contract.py @@ -48,7 +48,7 @@ class DistributionListsInterfaceDocumentationContractTests(unittest.TestCase): def test_german_reference_documentation_is_complete(self) -> None: topics = manifest.documentation - self.assertEqual(5, len(topics)) + self.assertEqual(6, len(topics)) for topic in topics: translation = topic.translations.get("de", {}) self.assertTrue(translation.get("title"), topic.id) diff --git a/webui/src/features/distributionLists/DistributionListsPage.tsx b/webui/src/features/distributionLists/DistributionListsPage.tsx index 73d1f06..2d06850 100644 --- a/webui/src/features/distributionLists/DistributionListsPage.tsx +++ b/webui/src/features/distributionLists/DistributionListsPage.tsx @@ -544,11 +544,12 @@ export default function DistributionListsPage({ settings, auth }: Props) { return ( } scope="workspace" variant="collection" refreshable reloadAction={{ onReload: () => void reload(selectedId), loading: loading || busy }} - contextActions={Distribution Lists} createAction={} @@ -603,7 +604,6 @@ export default function DistributionListsPage({ settings, auth }: Props) { {selected?.name ?? "No distribution list selected"} {selected ? Revision {selected.current_revision} · {selected.scope_type} scope : null} } - helpAction={} primaryActions={ ariaLabel="Distribution-list workspace" value={view}