Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ad2ef96b4 | ||
|
|
38e038b3a0 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@govoplan/tickets-webui",
|
"name": "@govoplan/tickets-webui",
|
||||||
"version": "0.1.20",
|
"version": "0.1.22",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Canonical GovOPlaN operational ticket lifecycle module.",
|
"description": "Canonical GovOPlaN operational ticket lifecycle module.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "govoplan-tickets"
|
name = "govoplan-tickets"
|
||||||
version = "0.1.20"
|
version = "0.1.22"
|
||||||
description = "Canonical GovOPlaN operational ticket lifecycle module."
|
description = "Canonical GovOPlaN operational ticket lifecycle module."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
"""German translations for public structured documentation metadata."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
|
|
||||||
|
GERMAN_STRUCTURED_TRANSLATIONS: dict[str, dict[str, Any]] = {'tickets.module-boundary': {'consequence_classes': {'canonical_store': 'Tickets ist der einzige '
|
||||||
|
'betriebsbereite '
|
||||||
|
'Ticketshop; Helpdesk '
|
||||||
|
'liefert Richtlinien und '
|
||||||
|
'Warteschlangensemantik.',
|
||||||
|
'case_boundary': 'Fall Eskalation schafft '
|
||||||
|
'eine stabile auditierbare '
|
||||||
|
'Verbindung und konvertiert '
|
||||||
|
'oder kopiert nie '
|
||||||
|
'Ticket-Historie.',
|
||||||
|
'soft_delete': 'Die Löschung verbirgt die '
|
||||||
|
'aktuelle Arbeit, bewahrt aber '
|
||||||
|
'unveränderliche Nachweise der '
|
||||||
|
'Rechenschaftspflicht.'}}}
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from govoplan_core.core.modules import with_documentation_structured_translations
|
||||||
|
from govoplan_tickets.backend.german_structured_documentation import GERMAN_STRUCTURED_TRANSLATIONS
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from sqlalchemy import func
|
from sqlalchemy import func
|
||||||
@@ -61,7 +64,7 @@ from govoplan_tickets.backend.service import (
|
|||||||
|
|
||||||
MODULE_ID = "tickets"
|
MODULE_ID = "tickets"
|
||||||
MODULE_NAME = "Tickets"
|
MODULE_NAME = "Tickets"
|
||||||
MODULE_VERSION = "0.1.20"
|
MODULE_VERSION = "0.1.22"
|
||||||
WRITE_SCOPE = LEGACY_WRITE_SCOPE
|
WRITE_SCOPE = LEGACY_WRITE_SCOPE
|
||||||
OPTIONAL_DEPENDENCIES = (
|
OPTIONAL_DEPENDENCIES = (
|
||||||
"cases",
|
"cases",
|
||||||
@@ -382,5 +385,10 @@ manifest = ModuleManifest(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
manifest = with_documentation_structured_translations(
|
||||||
|
manifest, locale="de", translations=GERMAN_STRUCTURED_TRANSLATIONS
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_manifest() -> ModuleManifest:
|
def get_manifest() -> ModuleManifest:
|
||||||
return manifest
|
return manifest
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class ManifestTests(unittest.TestCase):
|
|||||||
manifest = get_manifest()
|
manifest = get_manifest()
|
||||||
|
|
||||||
self.assertEqual("tickets", manifest.id)
|
self.assertEqual("tickets", manifest.id)
|
||||||
self.assertEqual("0.1.20", manifest.version)
|
self.assertEqual("0.1.22", manifest.version)
|
||||||
self.assertEqual(("access",), manifest.dependencies)
|
self.assertEqual(("access",), manifest.dependencies)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@govoplan/tickets-webui",
|
"name": "@govoplan/tickets-webui",
|
||||||
"version": "0.1.20",
|
"version": "0.1.22",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -514,7 +514,7 @@ function TicketDetail({ record, availability, history, canTriage, canAssign, can
|
|||||||
<Button type="submit" disabled={saving || !comment.trim()}>Add comment</Button>
|
<Button type="submit" disabled={saving || !comment.trim()}>Add comment</Button>
|
||||||
</form>
|
</form>
|
||||||
</section>}
|
</section>}
|
||||||
{canAdmin && <section className="ticket-destructive-actions" aria-label="Destructive ticket actions"><h2>Administrative removal</h2><p>Deletion removes the ticket from active queues and Search while retaining immutable evidence.</p><Button type="button" variant="danger" onClick={onDelete}><Trash2 size={16} /> Delete ticket</Button></section>}
|
{canAdmin && <section className="ticket-destructive-actions" aria-label="Destructive ticket actions"><h2>Administrative removal</h2><p>Deletion removes the ticket from active queues and Search while retaining immutable evidence.</p><Button type="button" variant="danger" helpContextId="tickets.action.delete" helpModuleId="tickets" onClick={onDelete}><Trash2 size={16} /> Delete ticket</Button></section>}
|
||||||
</article>
|
</article>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user