From bd513ff17a7d6e8bf5dc15e55ee7126482d1b3b3 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Wed, 13 Mar 2024 16:09:12 +0100 Subject: [PATCH] Re-add actions.xml file to have a user-action needed on Volto --- CHANGES.rst | 3 ++- .../feedback/profiles/default/actions.xml | 17 +++++++++++++++++ .../feedback/profiles/default/metadata.xml | 2 +- src/collective/feedback/upgrades.py | 4 ++++ src/collective/feedback/upgrades.zcml | 10 ++++++++++ 5 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 src/collective/feedback/profiles/default/actions.xml diff --git a/CHANGES.rst b/CHANGES.rst index bbf2f2d..e51f3bd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,8 @@ Changelog 1.1.1 (unreleased) ------------------ -- Nothing changed yet. +- re-add actions.xml file to have a user-action needed on Volto. + [cekk] 1.1.0 (2024-03-12) diff --git a/src/collective/feedback/profiles/default/actions.xml b/src/collective/feedback/profiles/default/actions.xml new file mode 100644 index 0000000..efe01a6 --- /dev/null +++ b/src/collective/feedback/profiles/default/actions.xml @@ -0,0 +1,17 @@ + + + + + + Feedback dashboard + string:${globals_view/navigationRootUrl}/feedback-dashboard + + + + + + True + + + + diff --git a/src/collective/feedback/profiles/default/metadata.xml b/src/collective/feedback/profiles/default/metadata.xml index 37cad1a..9eca6d5 100644 --- a/src/collective/feedback/profiles/default/metadata.xml +++ b/src/collective/feedback/profiles/default/metadata.xml @@ -1,6 +1,6 @@ - 1100 + 1200 profile-plone.restapi:default profile-souper.plone:default diff --git a/src/collective/feedback/upgrades.py b/src/collective/feedback/upgrades.py index 757c8b4..0f42610 100644 --- a/src/collective/feedback/upgrades.py +++ b/src/collective/feedback/upgrades.py @@ -34,6 +34,10 @@ def update_controlpanel(context): update_profile(context, "controlpanel") +def update_actions(context): + update_profile(context, "actions") + + def to_1100(context): installOrReinstallProduct(api.portal.get(), "souper.plone") context.runAllImportStepsFromProfile("profile-collective.feedback:to_1100") diff --git a/src/collective/feedback/upgrades.zcml b/src/collective/feedback/upgrades.zcml index cc7e2c1..05029de 100644 --- a/src/collective/feedback/upgrades.zcml +++ b/src/collective/feedback/upgrades.zcml @@ -17,4 +17,14 @@ handler=".upgrades.to_1100" /> + + +