fix(webui): bind retention controls to help

This commit is contained in:
2026-08-24 11:36:37 +02:00
parent 62970d6374
commit 357303d04d
5 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "govoplan-datasources"
version = "0.1.23"
version = "0.1.24"
description = "Governed datasource catalogue, staging, and materialization lifecycle for GovOPlaN."
readme = "README.md"
requires-python = ">=3.12"
+1 -1
View File
@@ -1,3 +1,3 @@
"""GovOPlaN Datasources module."""
__version__ = "0.1.23"
__version__ = "0.1.24"
+1 -1
View File
@@ -68,7 +68,7 @@ from govoplan_datasources.backend.payloads import ExternalArtifactPayloadBackend
MODULE_ID = "datasources"
MODULE_NAME = "Datasources"
MODULE_VERSION = "0.1.23"
MODULE_VERSION = "0.1.24"
DATASOURCE_INTERFACE_VERSION = "0.2.0"
ARCHITECTURE = ModuleArchitectureDeclaration(
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@govoplan/datasources-webui",
"version": "0.1.23",
"version": "0.1.24",
"private": true,
"type": "module",
"main": "src/index.ts",
@@ -448,7 +448,7 @@ export default function DatasourcesPage({
</Button>
) : null}
{view === "catalogue" && canAdmin ? (
<Button onClick={() => setRetentionOpen(true)} disabled={working}>
<Button helpContextId="datasources.retention" helpModuleId="datasources" onClick={() => setRetentionOpen(true)} disabled={working}>
<Archive size={16} /> Retention
</Button>
) : null}
@@ -1337,7 +1337,7 @@ function GovernanceDialog({
<GovernanceListField label="Purposes" values={draft.purposes} onChange={(values) => setValue("purposes", values)} />
<GovernanceListField label="Legal basis references" values={draft.legal_basis_refs} onChange={(values) => setValue("legal_basis_refs", values)} />
<GovernanceListField label="Official keys" values={draft.official_keys} onChange={(values) => setValue("official_keys", values)} />
<GovernanceListField label="Legal hold references" values={draft.hold_refs} onChange={(values) => setValue("hold_refs", values)} />
<GovernanceListField label="Legal hold references" helpContextId="datasources.field.retention-policy-contract" values={draft.hold_refs} onChange={(values) => setValue("hold_refs", values)} />
<GovernanceListField label="Affected services and processes" values={draft.affected_refs} onChange={(values) => setValue("affected_refs", values)} />
<GovernanceListField label="Dependent flows, reports, controls and decisions" values={draft.dependency_refs} onChange={(values) => setValue("dependency_refs", values)} />
<GovernanceListField label="Known limits" values={draft.known_limits} onChange={(values) => setValue("known_limits", values)} />
@@ -1370,15 +1370,17 @@ function GovernanceDialog({
function GovernanceListField({
label,
helpContextId,
values,
onChange
}: {
label: string;
helpContextId?: string;
values: string[];
onChange: (values: string[]) => void;
}) {
return (
<FormField label={label}>
<FormField label={label} helpContextId={helpContextId} helpModuleId="datasources">
<textarea
value={values.join("\n")}
onChange={(event) => onChange(splitLines(event.target.value))}