@plexusone/shell 0.3.0 → 0.3.2

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.
package/dist/index.d.mts CHANGED
@@ -180,6 +180,12 @@ interface AppShellConfig {
180
180
  * The application's own entries in the profile menu, above sign-out.
181
181
  */
182
182
  profileItems?: UserAction[];
183
+ /**
184
+ * Where the profile menu's Settings entry goes: the shared pages for the
185
+ * organization and the account. Default: the app catalog's `console`
186
+ * entry; `null` leaves it out.
187
+ */
188
+ settingsHref?: string | null;
183
189
  /**
184
190
  * Show the light, dark and system theme toggle. Default false.
185
191
  */
@@ -294,6 +300,12 @@ interface NavbarProps {
294
300
  * The application's own entries in the profile menu, above sign-out.
295
301
  */
296
302
  profileItems?: UserAction[];
303
+ /**
304
+ * Where the profile menu's Settings entry goes: the shared pages for the
305
+ * organization and the account. Default: the app catalog's `console`
306
+ * entry; `null` leaves it out.
307
+ */
308
+ settingsHref?: string | null;
297
309
  /**
298
310
  * Show the light, dark and system theme toggle. Default false.
299
311
  */
@@ -399,7 +411,7 @@ interface ShellContextValue {
399
411
  * {
400
412
  * items: [
401
413
  * { id: 'home', label: 'Home', href: '/', icon: <HomeIcon /> },
402
- * { id: 'settings', label: 'Settings', href: '/settings', icon: <SettingsIcon /> },
414
+ * { id: 'reports', label: 'Reports', href: '/reports', icon: <ReportsIcon /> },
403
415
  * ],
404
416
  * },
405
417
  * ]}
@@ -441,7 +453,7 @@ declare function useShellOptional(): ShellContextValue | null;
441
453
  * {
442
454
  * items: [
443
455
  * { id: 'home', label: 'Home', href: '/', icon: <HomeIcon /> },
444
- * { id: 'settings', label: 'Settings', href: '/settings', icon: <SettingsIcon /> },
456
+ * { id: 'reports', label: 'Reports', href: '/reports', icon: <ReportsIcon /> },
445
457
  * ],
446
458
  * },
447
459
  * ]}
@@ -471,7 +483,7 @@ declare function Sidebar({ navigation, isCollapsed, onToggleCollapse, logo, logo
471
483
  * />
472
484
  * ```
473
485
  */
474
- declare function Navbar({ showOrgSwitcher, userActions, breadcrumbs, onToggleSidebar, onNavigate, brand, app, organizationId, onOrganizationChange, onNavigateApp, command, actions, profileItems, showThemeToggle, }: NavbarProps): ReactNode;
486
+ declare function Navbar({ showOrgSwitcher, userActions, breadcrumbs, onToggleSidebar, onNavigate, brand, app, organizationId, onOrganizationChange, onNavigateApp, command, actions, profileItems, settingsHref, showThemeToggle, }: NavbarProps): ReactNode;
475
487
 
476
488
  /**
477
489
  * OrgSwitcher - Dropdown for switching between organizations
@@ -571,16 +583,36 @@ interface ProfileMenuProps {
571
583
  organizationId?: string;
572
584
  /** The application's own entries, shown above sign-out. Default: none. */
573
585
  items?: UserAction[];
586
+ /**
587
+ * Where the shared Settings pages are: the organization's members,
588
+ * connections, plan and billing, and the person's account. Default: the
589
+ * app catalog's `console` entry, at the current organization. `null` leaves
590
+ * the entry out.
591
+ */
592
+ settingsHref?: string | null;
574
593
  /** Navigation for entries with an href, for SPA routing. */
575
594
  onNavigate?: (href: string) => void;
576
595
  /** Called when signing out fails. Default: logged to the console. */
577
596
  onSignOutError?: (err: unknown) => void;
578
597
  }
598
+ /** The app catalog's ID for the shared Settings pages, SystemAuth's console. */
599
+ declare const SETTINGS_APP_ID = "console";
600
+ /**
601
+ * The shared Settings pages for an organization, from the app catalog's
602
+ * `console` entry; undefined when the catalog does not list it.
603
+ */
604
+ declare function catalogSettingsHref(apps: ReadonlyArray<{
605
+ id: string;
606
+ url: string;
607
+ }>, organizationId?: string): string | undefined;
579
608
  /** One or two initials from a name or email, for an avatar without an image. */
580
609
  declare function initials(nameOrEmail: string | undefined): string;
581
610
  /**
582
611
  * ProfileMenu shows who is signed in, the current organization and the role
583
- * held in this application, the application's own entries, and sign out. It
612
+ * held in this application, Settings, the application's own entries, and
613
+ * sign out. Settings links to the shared pages for the organization and the
614
+ * account (SystemAuth's console); an application names its own options page
615
+ * after what it holds, so that there is one Settings. It
584
616
  * reads the session from SessionProvider and renders nothing without a
585
617
  * signed-in session.
586
618
  *
@@ -589,7 +621,7 @@ declare function initials(nameOrEmail: string | undefined): string;
589
621
  * <ProfileMenu appId="reports" organizationId={orgId} items={[{ id: 'keys', label: 'API keys', href: '/keys' }]} />
590
622
  * ```
591
623
  */
592
- declare function ProfileMenu({ appId, organizationId, items, onNavigate, onSignOutError, }: ProfileMenuProps): ReactNode;
624
+ declare function ProfileMenu({ appId, organizationId, items, settingsHref, onNavigate, onSignOutError, }: ProfileMenuProps): ReactNode;
593
625
 
594
626
  /**
595
627
  * ThemeToggle cycles the theme through light, dark and the system's
@@ -663,5 +695,5 @@ declare function carryPreferences(url: string, prefs?: CarriedPreferences): stri
663
695
  */
664
696
  declare function adoptCarriedPreferences(): void;
665
697
 
666
- export { AppShell, Breadcrumbs, COLLAPSED_KEY, Navbar, OrgSwitcher, OrganizationSwitcher, ProductSwitcher, ProfileMenu, ShellProvider, Sidebar, THEME_CHANGE_EVENT, THEME_STORAGE_KEY, ThemeToggle, UserMenu, adoptCarriedPreferences, applyStoredTheme, applyTheme, carryPreferences, initials, nextTheme, readStoredTheme, resolveTheme, switcherApps, useShell, useShellOptional, useTheme };
698
+ export { AppShell, Breadcrumbs, COLLAPSED_KEY, Navbar, OrgSwitcher, OrganizationSwitcher, ProductSwitcher, ProfileMenu, SETTINGS_APP_ID, ShellProvider, Sidebar, THEME_CHANGE_EVENT, THEME_STORAGE_KEY, ThemeToggle, UserMenu, adoptCarriedPreferences, applyStoredTheme, applyTheme, carryPreferences, catalogSettingsHref, initials, nextTheme, readStoredTheme, resolveTheme, switcherApps, useShell, useShellOptional, useTheme };
667
699
  export type { AppShellConfig, AppShellProps, BreadcrumbItem, BreadcrumbsProps, CarriedPreferences, NavItem, NavSection, NavbarProps, OrgSwitcherProps, OrganizationSwitcherProps, ProductSwitcherProps, ProfileMenuProps, ShellContextValue, SidebarProps, Theme, UserAction, UserMenuProps };
package/dist/index.d.ts CHANGED
@@ -180,6 +180,12 @@ interface AppShellConfig {
180
180
  * The application's own entries in the profile menu, above sign-out.
181
181
  */
182
182
  profileItems?: UserAction[];
183
+ /**
184
+ * Where the profile menu's Settings entry goes: the shared pages for the
185
+ * organization and the account. Default: the app catalog's `console`
186
+ * entry; `null` leaves it out.
187
+ */
188
+ settingsHref?: string | null;
183
189
  /**
184
190
  * Show the light, dark and system theme toggle. Default false.
185
191
  */
@@ -294,6 +300,12 @@ interface NavbarProps {
294
300
  * The application's own entries in the profile menu, above sign-out.
295
301
  */
296
302
  profileItems?: UserAction[];
303
+ /**
304
+ * Where the profile menu's Settings entry goes: the shared pages for the
305
+ * organization and the account. Default: the app catalog's `console`
306
+ * entry; `null` leaves it out.
307
+ */
308
+ settingsHref?: string | null;
297
309
  /**
298
310
  * Show the light, dark and system theme toggle. Default false.
299
311
  */
@@ -399,7 +411,7 @@ interface ShellContextValue {
399
411
  * {
400
412
  * items: [
401
413
  * { id: 'home', label: 'Home', href: '/', icon: <HomeIcon /> },
402
- * { id: 'settings', label: 'Settings', href: '/settings', icon: <SettingsIcon /> },
414
+ * { id: 'reports', label: 'Reports', href: '/reports', icon: <ReportsIcon /> },
403
415
  * ],
404
416
  * },
405
417
  * ]}
@@ -441,7 +453,7 @@ declare function useShellOptional(): ShellContextValue | null;
441
453
  * {
442
454
  * items: [
443
455
  * { id: 'home', label: 'Home', href: '/', icon: <HomeIcon /> },
444
- * { id: 'settings', label: 'Settings', href: '/settings', icon: <SettingsIcon /> },
456
+ * { id: 'reports', label: 'Reports', href: '/reports', icon: <ReportsIcon /> },
445
457
  * ],
446
458
  * },
447
459
  * ]}
@@ -471,7 +483,7 @@ declare function Sidebar({ navigation, isCollapsed, onToggleCollapse, logo, logo
471
483
  * />
472
484
  * ```
473
485
  */
474
- declare function Navbar({ showOrgSwitcher, userActions, breadcrumbs, onToggleSidebar, onNavigate, brand, app, organizationId, onOrganizationChange, onNavigateApp, command, actions, profileItems, showThemeToggle, }: NavbarProps): ReactNode;
486
+ declare function Navbar({ showOrgSwitcher, userActions, breadcrumbs, onToggleSidebar, onNavigate, brand, app, organizationId, onOrganizationChange, onNavigateApp, command, actions, profileItems, settingsHref, showThemeToggle, }: NavbarProps): ReactNode;
475
487
 
476
488
  /**
477
489
  * OrgSwitcher - Dropdown for switching between organizations
@@ -571,16 +583,36 @@ interface ProfileMenuProps {
571
583
  organizationId?: string;
572
584
  /** The application's own entries, shown above sign-out. Default: none. */
573
585
  items?: UserAction[];
586
+ /**
587
+ * Where the shared Settings pages are: the organization's members,
588
+ * connections, plan and billing, and the person's account. Default: the
589
+ * app catalog's `console` entry, at the current organization. `null` leaves
590
+ * the entry out.
591
+ */
592
+ settingsHref?: string | null;
574
593
  /** Navigation for entries with an href, for SPA routing. */
575
594
  onNavigate?: (href: string) => void;
576
595
  /** Called when signing out fails. Default: logged to the console. */
577
596
  onSignOutError?: (err: unknown) => void;
578
597
  }
598
+ /** The app catalog's ID for the shared Settings pages, SystemAuth's console. */
599
+ declare const SETTINGS_APP_ID = "console";
600
+ /**
601
+ * The shared Settings pages for an organization, from the app catalog's
602
+ * `console` entry; undefined when the catalog does not list it.
603
+ */
604
+ declare function catalogSettingsHref(apps: ReadonlyArray<{
605
+ id: string;
606
+ url: string;
607
+ }>, organizationId?: string): string | undefined;
579
608
  /** One or two initials from a name or email, for an avatar without an image. */
580
609
  declare function initials(nameOrEmail: string | undefined): string;
581
610
  /**
582
611
  * ProfileMenu shows who is signed in, the current organization and the role
583
- * held in this application, the application's own entries, and sign out. It
612
+ * held in this application, Settings, the application's own entries, and
613
+ * sign out. Settings links to the shared pages for the organization and the
614
+ * account (SystemAuth's console); an application names its own options page
615
+ * after what it holds, so that there is one Settings. It
584
616
  * reads the session from SessionProvider and renders nothing without a
585
617
  * signed-in session.
586
618
  *
@@ -589,7 +621,7 @@ declare function initials(nameOrEmail: string | undefined): string;
589
621
  * <ProfileMenu appId="reports" organizationId={orgId} items={[{ id: 'keys', label: 'API keys', href: '/keys' }]} />
590
622
  * ```
591
623
  */
592
- declare function ProfileMenu({ appId, organizationId, items, onNavigate, onSignOutError, }: ProfileMenuProps): ReactNode;
624
+ declare function ProfileMenu({ appId, organizationId, items, settingsHref, onNavigate, onSignOutError, }: ProfileMenuProps): ReactNode;
593
625
 
594
626
  /**
595
627
  * ThemeToggle cycles the theme through light, dark and the system's
@@ -663,5 +695,5 @@ declare function carryPreferences(url: string, prefs?: CarriedPreferences): stri
663
695
  */
664
696
  declare function adoptCarriedPreferences(): void;
665
697
 
666
- export { AppShell, Breadcrumbs, COLLAPSED_KEY, Navbar, OrgSwitcher, OrganizationSwitcher, ProductSwitcher, ProfileMenu, ShellProvider, Sidebar, THEME_CHANGE_EVENT, THEME_STORAGE_KEY, ThemeToggle, UserMenu, adoptCarriedPreferences, applyStoredTheme, applyTheme, carryPreferences, initials, nextTheme, readStoredTheme, resolveTheme, switcherApps, useShell, useShellOptional, useTheme };
698
+ export { AppShell, Breadcrumbs, COLLAPSED_KEY, Navbar, OrgSwitcher, OrganizationSwitcher, ProductSwitcher, ProfileMenu, SETTINGS_APP_ID, ShellProvider, Sidebar, THEME_CHANGE_EVENT, THEME_STORAGE_KEY, ThemeToggle, UserMenu, adoptCarriedPreferences, applyStoredTheme, applyTheme, carryPreferences, catalogSettingsHref, initials, nextTheme, readStoredTheme, resolveTheme, switcherApps, useShell, useShellOptional, useTheme };
667
699
  export type { AppShellConfig, AppShellProps, BreadcrumbItem, BreadcrumbsProps, CarriedPreferences, NavItem, NavSection, NavbarProps, OrgSwitcherProps, OrganizationSwitcherProps, ProductSwitcherProps, ProfileMenuProps, ShellContextValue, SidebarProps, Theme, UserAction, UserMenuProps };
package/dist/index.js CHANGED
@@ -28,6 +28,7 @@ __export(index_exports, {
28
28
  OrganizationSwitcher: () => OrganizationSwitcher,
29
29
  ProductSwitcher: () => ProductSwitcher,
30
30
  ProfileMenu: () => ProfileMenu,
31
+ SETTINGS_APP_ID: () => SETTINGS_APP_ID,
31
32
  ShellProvider: () => ShellProvider,
32
33
  Sidebar: () => Sidebar,
33
34
  THEME_CHANGE_EVENT: () => THEME_CHANGE_EVENT,
@@ -38,6 +39,7 @@ __export(index_exports, {
38
39
  applyStoredTheme: () => applyStoredTheme,
39
40
  applyTheme: () => applyTheme,
40
41
  carryPreferences: () => carryPreferences,
42
+ catalogSettingsHref: () => catalogSettingsHref,
41
43
  initials: () => initials,
42
44
  nextTheme: () => nextTheme,
43
45
  readStoredTheme: () => readStoredTheme,
@@ -585,6 +587,21 @@ var import_auth8 = require("@plexusone/auth");
585
587
  var import_auth5 = require("@plexusone/auth");
586
588
  var import_ui5 = require("@plexusone/ui");
587
589
  var import_jsx_runtime6 = require("react/jsx-runtime");
590
+ var SETTINGS_APP_ID = "console";
591
+ function catalogSettingsHref(apps, organizationId) {
592
+ const entry = apps.find((a) => a.id === SETTINGS_APP_ID);
593
+ if (!entry) return void 0;
594
+ const base = entry.url.replace(/\/+$/, "");
595
+ return organizationId ? `${base}/orgs/${encodeURIComponent(organizationId)}` : base || "/";
596
+ }
597
+ function otherOrigin(href) {
598
+ if (typeof window === "undefined") return false;
599
+ try {
600
+ return new URL(href, window.location.href).origin !== window.location.origin;
601
+ } catch {
602
+ return false;
603
+ }
604
+ }
588
605
  function initials(nameOrEmail) {
589
606
  const s = (nameOrEmail ?? "").trim();
590
607
  if (!s) return "?";
@@ -596,6 +613,7 @@ function ProfileMenu({
596
613
  appId,
597
614
  organizationId,
598
615
  items = [],
616
+ settingsHref,
599
617
  onNavigate,
600
618
  onSignOutError = (err) => console.error("signing out failed", err)
601
619
  }) {
@@ -604,14 +622,18 @@ function ProfileMenu({
604
622
  if (!ctx || ctx.status !== "authenticated" || !user) {
605
623
  return null;
606
624
  }
607
- const who = user.name || user.email || "Signed in";
625
+ const name = (0, import_auth5.safeName)(user.name);
626
+ const heading = name ?? "Signed in";
627
+ const who = name || user.email || "Signed in";
608
628
  const membership = (0, import_auth5.membershipFor)(ctx.session, organizationId);
609
629
  const role = membership ? appId && membership.applications[appId] || membership.role : void 0;
630
+ const settings = settingsHref === void 0 ? appId === SETTINGS_APP_ID ? void 0 : catalogSettingsHref(ctx.session.apps, organizationId) : settingsHref ?? void 0;
631
+ const entries = settings ? [{ id: "settings", label: "Settings", href: settings }, ...items] : items;
610
632
  const run = (item) => {
611
633
  if (item.onClick) {
612
634
  item.onClick();
613
635
  } else if (item.href) {
614
- if (onNavigate) onNavigate(item.href);
636
+ if (onNavigate && !otherOrigin(item.href)) onNavigate(item.href);
615
637
  else (0, import_auth5.navigateTo)(item.href);
616
638
  }
617
639
  };
@@ -625,14 +647,14 @@ function ProfileMenu({
625
647
  className: "flex items-center p-1 bg-transparent border-none rounded-full cursor-pointer hover:bg-accent",
626
648
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_ui5.Avatar, { className: "h-8 w-8", children: [
627
649
  user.avatarUrl ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.AvatarImage, { src: user.avatarUrl, alt: "" }) : null,
628
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.AvatarFallback, { className: "bg-primary/10 text-primary text-xs font-medium", children: initials(user.name || user.email) })
650
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.AvatarFallback, { className: "bg-primary/10 text-primary text-xs font-medium", children: initials(name || user.email) })
629
651
  ] })
630
652
  }
631
653
  ) }),
632
654
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_ui5.DropdownMenuContent, { align: "end", className: "w-64", children: [
633
655
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.DropdownMenuLabel, { className: "font-normal", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-1", children: [
634
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-sm font-medium leading-none", children: who }),
635
- user.email && user.email !== who && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-xs leading-none text-muted-foreground", children: user.email })
656
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-sm font-medium leading-none", children: heading }),
657
+ user.email && user.email !== heading && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-xs leading-none text-muted-foreground", children: user.email })
636
658
  ] }) }),
637
659
  membership && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
638
660
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.DropdownMenuSeparator, {}),
@@ -646,8 +668,8 @@ function ProfileMenu({
646
668
  ] })
647
669
  ] }),
648
670
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.DropdownMenuSeparator, {}),
649
- items.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
650
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.DropdownMenuGroup, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
671
+ entries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
672
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.DropdownMenuGroup, { children: entries.map((item) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
651
673
  import_ui5.DropdownMenuItem,
652
674
  {
653
675
  onSelect: () => run(item),
@@ -739,14 +761,14 @@ function UserMenu({ actions = defaultActions, onNavigate }) {
739
761
  type: "button",
740
762
  className: "flex items-center gap-2 p-1 bg-transparent border-none rounded-full cursor-pointer hover:bg-accent",
741
763
  children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_ui7.Avatar, { className: "h-8 w-8", children: [
742
- user.avatar_url ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui7.AvatarImage, { src: user.avatar_url, alt: user.name }) : null,
764
+ user.avatar_url ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui7.AvatarImage, { src: user.avatar_url, alt: (0, import_auth6.displayName)(user, "Signed in") }) : null,
743
765
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui7.AvatarFallback, { className: "bg-primary/10 text-primary", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui7.UserIcon, { className: "h-4 w-4" }) })
744
766
  ] })
745
767
  }
746
768
  ) }),
747
769
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_ui7.DropdownMenuContent, { align: "end", className: "w-56", children: [
748
770
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui7.DropdownMenuLabel, { className: "font-normal", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col space-y-1", children: [
749
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-sm font-medium leading-none", children: user.name }),
771
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-sm font-medium leading-none", children: (0, import_auth6.displayName)(user, "Signed in") }),
750
772
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-xs leading-none text-muted-foreground", children: user.email })
751
773
  ] }) }),
752
774
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui7.DropdownMenuSeparator, {}),
@@ -866,6 +888,7 @@ function Navbar({
866
888
  command,
867
889
  actions,
868
890
  profileItems,
891
+ settingsHref,
869
892
  showThemeToggle = false
870
893
  }) {
871
894
  const hasSession = (0, import_auth8.useSessionOptional)() !== void 0;
@@ -894,6 +917,7 @@ function Navbar({
894
917
  appId: app?.id,
895
918
  organizationId,
896
919
  items: profileItems ?? userActions,
920
+ settingsHref,
897
921
  onNavigate
898
922
  }
899
923
  ) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(UserMenu, { actions: profileItems ?? userActions, onNavigate })
@@ -920,6 +944,7 @@ function AppShellInner({
920
944
  command,
921
945
  actions,
922
946
  profileItems,
947
+ settingsHref,
923
948
  showThemeToggle
924
949
  }) {
925
950
  const {
@@ -969,6 +994,7 @@ function AppShellInner({
969
994
  command,
970
995
  actions,
971
996
  profileItems,
997
+ settingsHref,
972
998
  showThemeToggle
973
999
  }
974
1000
  ),
@@ -997,6 +1023,7 @@ function AppShell(props) {
997
1023
  OrganizationSwitcher,
998
1024
  ProductSwitcher,
999
1025
  ProfileMenu,
1026
+ SETTINGS_APP_ID,
1000
1027
  ShellProvider,
1001
1028
  Sidebar,
1002
1029
  THEME_CHANGE_EVENT,
@@ -1007,6 +1034,7 @@ function AppShell(props) {
1007
1034
  applyStoredTheme,
1008
1035
  applyTheme,
1009
1036
  carryPreferences,
1037
+ catalogSettingsHref,
1010
1038
  initials,
1011
1039
  nextTheme,
1012
1040
  readStoredTheme,