From 5eece0d70424fd10e0f10bd8675e728a9555855c Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 8 Oct 2026 20:34:18 +0200 Subject: [PATCH] Align workflow pages with Hub design and permission-aware menu --- app/shared/frontend/base.html | 20 ++ app/tags/backend/views.py | 9 +- app/tags/frontend/classification.html | 39 ++- app/tags/frontend/tags_admin.html | 2 +- app/workflows/decisions.py | 3 +- app/workflows/frontend/_nav.html | 6 + app/workflows/frontend/_style.html | 3 + app/workflows/frontend/builder.html | 27 +- app/workflows/frontend/decision.html | 16 +- app/workflows/frontend/operations.html | 12 +- app/workflows/frontend/resources.html | 8 +- app/workflows/ui_access.py | 11 + app/workflows/views.py | 11 +- docs/workflow-manuel-testplan.md | 347 +++++++++++++++++++++++++ docs/workflow-status.md | 8 + static/js/menu-access.js | 20 ++ tests/test_menu_access.cjs | 27 ++ tests/test_workflow_design.py | 91 +++++++ tests/test_workflow_page_access.py | 46 ++++ 19 files changed, 657 insertions(+), 49 deletions(-) create mode 100644 app/workflows/frontend/_nav.html create mode 100644 app/workflows/frontend/_style.html create mode 100644 app/workflows/ui_access.py create mode 100644 docs/workflow-manuel-testplan.md create mode 100644 static/js/menu-access.js create mode 100644 tests/test_menu_access.cjs create mode 100644 tests/test_workflow_design.py create mode 100644 tests/test_workflow_page_access.py diff --git a/app/shared/frontend/base.html b/app/shared/frontend/base.html index 0d70614..49a9bed 100644 --- a/app/shared/frontend/base.html +++ b/app/shared/frontend/base.html @@ -30,6 +30,8 @@ --bottom-bar-zindex: 1030; } + [data-menu-permission][data-access-denied] { display: none !important; } + /* Keep the content viewport stable when a tall dropdown opens/closes. Without a reserved scrollbar gutter, wide case hero sections visibly jump a few pixels on smaller monitors. */ @@ -1555,6 +1557,15 @@
  • Faktura-fejl-finder
  • +