diff --git a/package.json b/package.json index c259065..7b498da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/committee", - "version": "0.1.20", + "version": "0.1.21", "private": true, "description": "GovOPlaN Committee platform module seed.", "type": "module", diff --git a/pyproject.toml b/pyproject.toml index 3ca70ce..09fbd4c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-committee" -version = "0.1.20" +version = "0.1.21" description = "GovOPlaN committee governance and formal-decision integration module." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_committee/backend/manifest.py b/src/govoplan_committee/backend/manifest.py index 29b3100..813ad9f 100644 --- a/src/govoplan_committee/backend/manifest.py +++ b/src/govoplan_committee/backend/manifest.py @@ -59,7 +59,7 @@ from govoplan_core.db.base import Base MODULE_ID = "committee" MODULE_NAME = "Committee" -MODULE_VERSION = "0.1.20" +MODULE_VERSION = "0.1.21" READ_SCOPE = "committee:workspace:read" WRITE_SCOPE = "committee:workspace:write" BALLOT_SCOPE = "committee:ballot:finalize" @@ -554,6 +554,21 @@ manifest = ModuleManifest( permissions=PERMISSIONS, role_templates=ROLE_TEMPLATES, documentation=( + DocumentationTopic( + id="committee.workspace-layout", + title="Committee workspace layout", + summary="Find workspace actions and read consistently arranged content.", + body="Reload and New body share the workspace-wide action bar at the upper right; Reload sits directly before New. Searching and selecting a body, meeting, or agenda item leaves those workspace actions in place. Item editing, ballots, and finalization remain scoped to the selected record. Disabled controls explain missing authority; administrators grant the existing management permissions rather than changing layouts.", + layer="static", + documentation_types=("user", "admin"), + audience=("user", "module_admin", "operator"), + order=5, + translations={"de": { + "title": "Gremien: Aufbau des Arbeitsbereichs", + "summary": "Arbeitsbereichsaktionen finden und einheitlich angeordnete Inhalte lesen.", + "body": "Neu laden und Neues Gremium stehen oben rechts in der gemeinsamen Arbeitsbereichsleiste; Neu laden steht unmittelbar vor Neu. Suche und Auswahl eines Gremiums, einer Sitzung oder eines Tagesordnungspunkts verändern diese Positionen nicht. Bearbeitung, Abstimmungen und Abschluss bleiben dem ausgewählten Datensatz zugeordnet. Deaktivierte Aktionen erklären fehlende Berechtigungen; Administratoren vergeben die bestehenden Verwaltungsrechte, statt das Layout zu ändern.", + }}, + ), DocumentationTopic( id="committee.data-subject-requests", title="Committee data-subject requests", diff --git a/tests/test_documentation.py b/tests/test_documentation.py index a9f2b77..8ec8fd8 100644 --- a/tests/test_documentation.py +++ b/tests/test_documentation.py @@ -12,7 +12,21 @@ from govoplan_committee.backend.manifest import manifest class CommitteeDocumentationTests(unittest.TestCase): def test_german_reference_documentation_is_complete(self) -> None: topics = manifest.documentation - self.assertEqual(3, len(topics)) + by_id = {topic.id: topic for topic in topics} + self.assertEqual(len(topics), len(by_id), "Documentation topic IDs must be unique") + self.assertLessEqual( + { + "committee.module-boundary", + "committee.reference.fields-and-consequences", + "committee.data-subject-requests", + "committee.workspace-layout", + }, + set(by_id), + ) + self.assertLessEqual( + {"user", "admin"}, + set(by_id["committee.workspace-layout"].documentation_types), + ) for topic in topics: translation = topic.translations.get("de", {}) self.assertTrue(translation.get("title"), topic.id) diff --git a/webui/package.json b/webui/package.json index f9d512b..05036ce 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/committee-webui", - "version": "0.1.20", + "version": "0.1.21", "private": true, "type": "module", "main": "src/index.ts",