From 705255f378edf7643cd84fe5692cf2a0378b91a2 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Mon, 24 Aug 2026 11:36:50 +0200 Subject: [PATCH] fix(webui): bind wiki publication to help --- package.json | 2 +- pyproject.toml | 2 +- src/govoplan_wiki/backend/manifest.py | 2 +- tests/test_manifest.py | 2 +- webui/package.json | 2 +- webui/src/features/wiki/WikiPage.tsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 716d8b7..8c193c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/wiki-webui", - "version": "0.1.21", + "version": "0.1.22", "private": true, "description": "GovOPlaN governed collaborative Wiki module.", "type": "module", diff --git a/pyproject.toml b/pyproject.toml index 39cb4b6..267316c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-wiki" -version = "0.1.21" +version = "0.1.22" description = "GovOPlaN governed collaborative Wiki module." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_wiki/backend/manifest.py b/src/govoplan_wiki/backend/manifest.py index be34803..948ebdc 100644 --- a/src/govoplan_wiki/backend/manifest.py +++ b/src/govoplan_wiki/backend/manifest.py @@ -55,7 +55,7 @@ from govoplan_wiki.backend.service import ( MODULE_ID = "wiki" MODULE_NAME = "Wiki" -MODULE_VERSION = "0.1.21" +MODULE_VERSION = "0.1.22" OPTIONAL_DEPENDENCIES = ( "files", "dms", diff --git a/tests/test_manifest.py b/tests/test_manifest.py index edeada6..afb9ca4 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -18,7 +18,7 @@ class WikiManifestTests(unittest.TestCase): def test_manifest_registers_complete_vertical_slice(self) -> None: manifest = get_manifest() self.assertEqual("wiki", manifest.id) - self.assertEqual("0.1.21", manifest.version) + self.assertEqual("0.1.22", manifest.version) self.assertEqual(("access",), manifest.dependencies) self.assertEqual( {READ_SCOPE, WRITE_SCOPE, COMMENT_SCOPE, PUBLISH_SCOPE, ADMIN_SCOPE}, diff --git a/webui/package.json b/webui/package.json index 22c3cfc..96b452d 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/wiki-webui", - "version": "0.1.21", + "version": "0.1.22", "private": true, "type": "module", "main": "src/index.ts", diff --git a/webui/src/features/wiki/WikiPage.tsx b/webui/src/features/wiki/WikiPage.tsx index fbd1272..6f70e10 100644 --- a/webui/src/features/wiki/WikiPage.tsx +++ b/webui/src/features/wiki/WikiPage.tsx @@ -186,7 +186,7 @@ function WikiDetail({ record, revisions, comments, canWrite, canPublish, canComm {canWrite && record.state !== "archived" && } {canWrite && record.state !== "archived" && } {(canWrite || canPublish) && } - {canPublish && record.state === "draft" && } + {canPublish && record.state === "draft" && } {record.published_revision && record.state === "draft" &&
Readers and Search still receive published revision {record.published_revision} until this draft is published.
}
{record.body || This page has no body text yet.}