fix(ui): move widget and page documentation into 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.
This commit is contained in:
2026-09-09 02:04:19 +02:00
parent 1d41cdbbe2
commit 129f2a4c73
10 changed files with 50 additions and 39 deletions
+11
View File
@@ -1,12 +1,23 @@
from __future__ import annotations
import unittest
from pathlib import Path
from govoplan_core.core.modules import ModuleManifest
from govoplan_scheduling.backend.manifest import get_manifest
class SchedulingManifestTests(unittest.TestCase):
def test_widget_documentation_is_contributed_for_its_dashboard_title(self) -> None:
root = Path(__file__).resolve().parents[1]
contribution = (root / "webui/src/module.ts").read_text(encoding="utf-8")
widget = (root / "webui/src/features/scheduling/SchedulingRequestsWidget.tsx").read_text(encoding="utf-8")
self.assertIn(
'documentation: { topicId: "scheduling.find-and-decide-meeting-time", documentationType: "user" }',
contribution,
)
self.assertNotIn("DocumentationHelpLink", widget)
def test_all_static_topics_have_complete_german_content(self) -> None:
manifest = get_manifest()
for topic in manifest.documentation: