Skip to content

Commit d94ed51

Browse files
committed
feat(sql): pass sidebar sub-items across the embedded host boundary
The federation SidebarItem contract gains an optional children field so the host (Cloud UI) can render the SQL → Studio sub-item; updateSidebarItems maps the route children through. Hosts that ignore the field are unaffected.
1 parent 3fdb951 commit d94ed51

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/src/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ export type SidebarItem = {
163163
icon?: JSX.Element;
164164
order: number;
165165
group?: string; // "Agentic AI" - for grouping related items
166+
/** Sub-pages rendered by the host as an expandable list under the parent row (e.g. SQL → Studio). */
167+
children?: Array<{ title: string; to: string }>;
166168
};
167169

168170
export type Breadcrumb = {
@@ -368,6 +370,7 @@ function installUiStateSubscriptions(): () => void {
368370
icon: r.icon,
369371
order: i,
370372
group: r.group,
373+
children: r.children?.map((child) => ({ title: child.title, to: child.path })),
371374
}) as SidebarItem
372375
);
373376

0 commit comments

Comments
 (0)