diff --git a/apps/studio/components/interfaces/Workers/WorkerDetail/WorkerDetail.tsx b/apps/studio/components/interfaces/Workers/WorkerDetail/WorkerDetail.tsx index 00a64f4dcf5..fc2137dc23a 100644 --- a/apps/studio/components/interfaces/Workers/WorkerDetail/WorkerDetail.tsx +++ b/apps/studio/components/interfaces/Workers/WorkerDetail/WorkerDetail.tsx @@ -52,6 +52,9 @@ import { type WorkerTab = 'overview' | 'logs' | 'settings' const WORKER_TABS: WorkerTab[] = ['overview', 'logs', 'settings'] +// Display order for the nav — Terminal is a disabled placeholder second to last. +const TAB_ORDER: Array = ['overview', 'logs', 'terminal', 'settings'] + const TAB_LABEL: Record = { overview: 'Overview', logs: 'Logs', @@ -197,26 +200,29 @@ export const WorkerDetail = () => { - {WORKER_TABS.map((item) => ( - - - - ))} - - - - - Terminal - - Soon - - - - Coming soon in private alpha - - + {TAB_ORDER.map((item) => + item === 'terminal' ? ( + + + + + Terminal + + Soon + + + + Coming soon in private alpha + + + ) : ( + + + + ) + )} diff --git a/apps/studio/components/layouts/Navigation/ProductMenuBar.tsx b/apps/studio/components/layouts/Navigation/ProductMenuBar.tsx index f36c6d8c4d9..11f6f3c2bd7 100644 --- a/apps/studio/components/layouts/Navigation/ProductMenuBar.tsx +++ b/apps/studio/components/layouts/Navigation/ProductMenuBar.tsx @@ -1,15 +1,18 @@ import { useFlag, useParams } from 'common' import Link from 'next/link' -import { PropsWithChildren } from 'react' +import { PropsWithChildren, ReactNode } from 'react' import { Button, cn } from 'ui' interface ProductMenuBarProps { title: string + /** Optional node rendered next to the title, e.g. a status badge. */ + titleBadge?: ReactNode className?: string } export const ProductMenuBar = ({ title, + titleBadge, children, className, }: PropsWithChildren) => { @@ -30,7 +33,10 @@ export const ProductMenuBar = ({ )} >
-

{title}

+
+

{title}

+ {titleBadge} +
{showExplorerCTA && (