Skip to content

Commit a0ce9e4

Browse files
authored
fixed link + added icons in new menu (#4575)
* fix branches link in new menu * added icons on internal menu items
1 parent 5e3922b commit a0ce9e4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

backend/infrahub/menu/menu.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
3333
namespace="Builtin",
3434
name="ObjectManagement",
3535
label="Object Management",
36+
icon="mdi:cube-outline",
3637
protected=True,
3738
section=MenuSection.INTERNAL,
3839
order_weight=1000,
@@ -73,6 +74,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
7374
namespace="Builtin",
7475
name="ChangeControl",
7576
label="Change Control",
77+
icon="mdi:compare-vertical",
7678
protected=True,
7779
section=MenuSection.INTERNAL,
7880
order_weight=2000,
@@ -81,7 +83,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
8183
namespace="Builtin",
8284
name="Branches",
8385
label="Branches",
84-
path="/branche",
86+
path="/branches",
8587
icon="mdi:layers-triple",
8688
protected=True,
8789
section=MenuSection.INTERNAL,
@@ -123,6 +125,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
123125
namespace="Builtin",
124126
name="UnifiedStorage",
125127
label="Unified Storage",
128+
icon="mdi:archive-arrow-down-outline",
126129
protected=True,
127130
section=MenuSection.INTERNAL,
128131
order_weight=3000,
@@ -163,6 +166,7 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
163166
namespace="Builtin",
164167
name="Admin",
165168
label="Admin",
169+
icon="mdi:settings-outline",
166170
protected=True,
167171
section=MenuSection.INTERNAL,
168172
order_weight=3000,

backend/tests/unit/graphql/mutations/test_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def test_menu_update_protected(db: InfrahubDatabase, register_core_models_
4343
namespace="Builtin",
4444
name="Branches",
4545
label="Branches",
46-
path="/branche",
46+
path="/branches",
4747
icon="mdi:layers-triple",
4848
protected=True,
4949
section=MenuSection.INTERNAL,
@@ -83,7 +83,7 @@ async def test_menu_delete_protected(db: InfrahubDatabase, register_core_models_
8383
namespace="Builtin",
8484
name="Branches",
8585
label="Branches",
86-
path="/branche",
86+
path="/branches",
8787
icon="mdi:layers-triple",
8888
protected=True,
8989
section=MenuSection.INTERNAL,

0 commit comments

Comments
 (0)