From 43760f456642ef9ff5d720761cdcf280ca37bf0f Mon Sep 17 00:00:00 2001 From: bilalabbad Date: Tue, 8 Oct 2024 15:09:18 +0200 Subject: [PATCH 1/2] fix branches link in new menu --- backend/infrahub/menu/menu.py | 2 +- backend/tests/unit/graphql/mutations/test_menu.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/infrahub/menu/menu.py b/backend/infrahub/menu/menu.py index ba7d554aa8..ca1785f542 100644 --- a/backend/infrahub/menu/menu.py +++ b/backend/infrahub/menu/menu.py @@ -81,7 +81,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str: namespace="Builtin", name="Branches", label="Branches", - path="/branche", + path="/branches", icon="mdi:layers-triple", protected=True, section=MenuSection.INTERNAL, diff --git a/backend/tests/unit/graphql/mutations/test_menu.py b/backend/tests/unit/graphql/mutations/test_menu.py index 857d8f6072..e50472d6e3 100644 --- a/backend/tests/unit/graphql/mutations/test_menu.py +++ b/backend/tests/unit/graphql/mutations/test_menu.py @@ -43,7 +43,7 @@ async def test_menu_update_protected(db: InfrahubDatabase, register_core_models_ namespace="Builtin", name="Branches", label="Branches", - path="/branche", + path="/branches", icon="mdi:layers-triple", protected=True, section=MenuSection.INTERNAL, @@ -83,7 +83,7 @@ async def test_menu_delete_protected(db: InfrahubDatabase, register_core_models_ namespace="Builtin", name="Branches", label="Branches", - path="/branche", + path="/branches", icon="mdi:layers-triple", protected=True, section=MenuSection.INTERNAL, From 6e158fe6ad82bcfce11601db53c3f4fc54155908 Mon Sep 17 00:00:00 2001 From: bilalabbad Date: Tue, 8 Oct 2024 15:51:37 +0200 Subject: [PATCH 2/2] added icons on internal menu items --- backend/infrahub/menu/menu.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/infrahub/menu/menu.py b/backend/infrahub/menu/menu.py index ca1785f542..cbc4576594 100644 --- a/backend/infrahub/menu/menu.py +++ b/backend/infrahub/menu/menu.py @@ -33,6 +33,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str: namespace="Builtin", name="ObjectManagement", label="Object Management", + icon="mdi:cube-outline", protected=True, section=MenuSection.INTERNAL, order_weight=1000, @@ -73,6 +74,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str: namespace="Builtin", name="ChangeControl", label="Change Control", + icon="mdi:compare-vertical", protected=True, section=MenuSection.INTERNAL, order_weight=2000, @@ -123,6 +125,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str: namespace="Builtin", name="UnifiedStorage", label="Unified Storage", + icon="mdi:archive-arrow-down-outline", protected=True, section=MenuSection.INTERNAL, order_weight=3000, @@ -163,6 +166,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str: namespace="Builtin", name="Admin", label="Admin", + icon="mdi:settings-outline", protected=True, section=MenuSection.INTERNAL, order_weight=3000,