From 6159bde2b506b7edfd3d8fdf9d2af34fd56d18df Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Tue, 18 Aug 2026 21:32:34 +0200 Subject: [PATCH] test: pin resident parking permit record journey --- src/govoplan_records/backend/manifest.py | 12 ++++++++++++ tests/fixtures/service_to_decision_journey.json | 4 ++-- tests/test_records.py | 5 ++++- webui/src/styles/records.css | 8 ++++---- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/govoplan_records/backend/manifest.py b/src/govoplan_records/backend/manifest.py index 19b91ef..8480444 100644 --- a/src/govoplan_records/backend/manifest.py +++ b/src/govoplan_records/backend/manifest.py @@ -26,6 +26,7 @@ from govoplan_core.core.modules import ( ModuleManifest, NavItem, PermissionDefinition, + ProductAreaContribution, RoleTemplate, ) from govoplan_core.core.provider_governance import declared_module_architecture @@ -392,6 +393,17 @@ manifest = ModuleManifest( surface_id="records.navigation", ), ), + product_areas=( + ProductAreaContribution( + id="records-documents", + module_id=MODULE_ID, + label="i18n:govoplan-core.product_area.records_documents", + icon="folder", + description="i18n:govoplan-core.product_area.records_documents_description", + surface_ids=("records.navigation", "records.workspace"), + order=30, + ), + ), view_surfaces=( ViewSurface( id="records.workspace.file-plan", diff --git a/tests/fixtures/service_to_decision_journey.json b/tests/fixtures/service_to_decision_journey.json index 07d6df6..e243b33 100644 --- a/tests/fixtures/service_to_decision_journey.json +++ b/tests/fixtures/service_to_decision_journey.json @@ -1,6 +1,6 @@ { - "id": "assisted-service-to-decision-record", - "description": "A completed assisted service is filed, closed, held, appraised, independently approved, and exercised through the archive simulation boundary.", + "id": "resident-parking-permit-assisted-record", + "description": "A completed assisted resident parking permit service is filed, closed, held, appraised, independently approved, and exercised through the archive simulation boundary.", "record": { "record_id": "record-1", "record_number": "2026/0001", diff --git a/tests/test_records.py b/tests/test_records.py index 4c39f32..92c1648 100644 --- a/tests/test_records.py +++ b/tests/test_records.py @@ -515,7 +515,10 @@ class RecordsTests(unittest.TestCase): ).read_text(encoding="utf-8") ) expected = fixture["expected"] - self._create_record() + record = self._create_record() + self.assertEqual(fixture["record"]["record_id"], record["record_id"]) + self.assertEqual(fixture["record"]["record_number"], record["record_number"]) + self.assertEqual(fixture["record"]["class_id"], record["class_id"]) closed = self.records.close_record( self.session, self.principal, diff --git a/webui/src/styles/records.css b/webui/src/styles/records.css index 78eb02d..e618687 100644 --- a/webui/src/styles/records.css +++ b/webui/src/styles/records.css @@ -375,7 +375,7 @@ min-width: 24px; height: 24px; place-items: center; - border-radius: 50%; + border-radius: var(--radius-round); background: var(--surface-strong); color: var(--muted); font-size: 12px; @@ -450,7 +450,7 @@ align-self: start; margin: 5px 0 0 3px; border: 2px solid var(--accent); - border-radius: 50%; + border-radius: var(--radius-round); background: var(--panel-soft); } @@ -506,7 +506,7 @@ grid-column: 1 / -1; } -@media (max-width: 1260px) { +@media (max-width: 1280px) { .records-workspace { grid-template-columns: minmax(190px, 220px) minmax(330px, 0.85fr) minmax(390px, 1fr); } @@ -542,7 +542,7 @@ } } -@media (max-width: 640px) { +@media (max-width: 680px) { .records-workspace { display: flex; overflow-y: auto;