@orsetra/shared-ui 1.0.28 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ import {
6
6
  Package,
7
7
  Settings,
8
8
  Rocket,
9
+ LineChart,
9
10
  } from "lucide-react"
10
11
 
11
12
  // Types pour les menus
@@ -29,15 +30,20 @@ export interface SidebarMenus {
29
30
 
30
31
  export const menuItems: MainMenuItem[] = [
31
32
  {
32
- id: "assets-manager",
33
+ id: "assets",
33
34
  label: "Assets",
34
35
  icon: <Rocket className="h-6 w-6" />
35
36
  },
36
37
  {
37
- id: "applications-manager",
38
- label: "Applications",
38
+ id: "runtime",
39
+ label: "Runtime",
39
40
  icon: <Package className="h-6 w-6" />
40
41
  },
42
+ {
43
+ id: "monitoring",
44
+ label: "Monitoring",
45
+ icon: <LineChart className="h-6 w-6" />
46
+ },
41
47
  {
42
48
  id: "api-manager",
43
49
  label: "API Manager",
@@ -47,14 +53,16 @@ export const menuItems: MainMenuItem[] = [
47
53
  id: "access-manager",
48
54
  label: "Access Manager",
49
55
  icon: <Shield className="h-6 w-6" />
50
- }
56
+ },
57
+
51
58
  ]
52
59
 
53
60
  // Labels des menus principaux pour l'affichage
54
61
  export const menuLabels: Record<string, string> = {
55
- "assets-manager": "Assets",
56
- "applications-manager": "Applications",
62
+ "assets": "Assets",
63
+ "runtime": "Runtime",
64
+ "monitoring": "Monitoring",
57
65
  "api-manager": "API Manager",
58
- "access-manager": "Access Manager"
66
+ "access-manager": "Access Manager",
59
67
  }
60
68
 
@@ -3,7 +3,7 @@
3
3
  import * as React from "react"
4
4
  import { Slot } from "@radix-ui/react-slot"
5
5
  import { VariantProps, cva } from "class-variance-authority"
6
- import { PanelLeft, Plus } from "lucide-react"
6
+ import { LineChart, PanelLeft, Plus } from "lucide-react"
7
7
  import Link from "next/link"
8
8
  import { usePathname } from "next/navigation"
9
9
 
@@ -207,10 +207,11 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {} }: SidebarPr
207
207
  {currentMenu && menuLabels[currentMenu] && (
208
208
  <div className="px-4 py-3 border-b border-ui-border">
209
209
  <div className="flex items-center gap-2">
210
- {currentMenu === "assets-manager" && <Rocket className="h-4 w-4 text-interactive" />}
211
- {currentMenu === "applications-manager" && <Package className="h-4 w-4 text-interactive" />}
210
+ {currentMenu === "assets" && <Rocket className="h-4 w-4 text-interactive" />}
211
+ {currentMenu === "runtime" && <Package className="h-4 w-4 text-interactive" />}
212
212
  {currentMenu === "api-manager" && <Settings className="h-4 w-4 text-interactive" />}
213
- {currentMenu === "access-manager" && <Shield className="h-4 w-4 text-interactive" />}
213
+ {currentMenu === "access-manager" && <Shield className="h-4 w-4 text-interactive" />}
214
+ {currentMenu === "monitoring" && <LineChart className="h-4 w-4 text-interactive" />}
214
215
  <h2 className="text-sm font-semibold text-text-primary">
215
216
  {menuLabels[currentMenu]}
216
217
  </h2>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",