@orsetra/shared-ui 1.1.35 → 1.1.37

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.
@@ -295,16 +295,16 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
295
295
  {orgLoading ? (
296
296
  <div className="h-14 w-14 bg-ui-background animate-pulse flex-shrink-0" />
297
297
  ) : orgData?.logo ? (
298
- <img src={orgData.logo} alt={orgData.nom} className="h-14 w-14 object-cover flex-shrink-0" />
298
+ <img src={orgData.logo} alt={orgData.name } className="h-14 w-14 object-cover flex-shrink-0" />
299
299
  ) : (
300
300
  <div className="h-14 w-14 bg-interactive flex items-center justify-center text-white text-2xl font-bold flex-shrink-0">
301
- {orgData?.nom?.charAt(0)?.toUpperCase() ?? 'O'}
301
+ {orgData?.name?.charAt(0)?.toUpperCase() ?? 'O'}
302
302
  </div>
303
303
  )}
304
304
  <div className="flex flex-col min-w-0 flex-1">
305
305
  <span className="text-xs text-text-secondary uppercase tracking-wide mb-1">Organisation</span>
306
306
  <span className="text-base font-semibold text-text-primary truncate">
307
- {orgLoading ? '…' : (orgData?.nom ?? 'Organisation')}
307
+ {orgLoading ? '…' : (orgData?.name ?? 'Organisation')}
308
308
  </span>
309
309
  </div>
310
310
  <ChevronRight className="h-4 w-4 text-text-secondary flex-shrink-0 opacity-40" />
@@ -21,6 +21,7 @@ import {
21
21
  import { Loader2, FolderKanban } from "lucide-react"
22
22
 
23
23
  export interface Project {
24
+ id: string,
24
25
  name: string
25
26
  alias?: string
26
27
  description?: string
@@ -79,7 +80,7 @@ export function ProjectSelectorModal({
79
80
 
80
81
  // If no project selected yet and we have projects, select the first one
81
82
  if (!selectedProject && projectsList.length > 0) {
82
- setSelectedProject(projectsList[0].name)
83
+ setSelectedProject(projectsList[0].id)
83
84
  }
84
85
  } catch (err) {
85
86
  console.error("Failed to load projects:", err)
@@ -205,9 +206,9 @@ export function ProjectSelectorModal({
205
206
  </SelectTrigger>
206
207
  <SelectContent className="rounded-none">
207
208
  {projects.map((project) => (
208
- <SelectItem key={project.name} value={project.name} className="rounded-none">
209
+ <SelectItem key={project.id} value={project.id} className="rounded-none">
209
210
  <div className="flex flex-col">
210
- <span className="font-medium">{project.alias || project.name}</span>
211
+ <span className="font-medium">{project.alias || project.id}</span>
211
212
  {project.description && (
212
213
  <span className="text-xs text-ibm-gray-60">{project.description}</span>
213
214
  )}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.1.35",
3
+ "version": "1.1.37",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",