Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(settings): add settings rail pane to the today navigation (#117022)

Adam Leith4e824e99423e
diff --git a/frontend/src/layout/scenes/components/QuillSceneTitleSection.tsx b/frontend/src/layout/scenes/components/QuillSceneTitleSection.tsx
index 006ec5915aa7..f95a83f29bc2 100644
--- a/frontend/src/layout/scenes/components/QuillSceneTitleSection.tsx
+++ b/frontend/src/layout/scenes/components/QuillSceneTitleSection.tsx
@@ -39,6 +39,7 @@ export function QuillSceneTitleSection({
noPadding = false,
actions,
forceBackTo,
+ scope,
className,
onGenerateMetadata,
isGeneratingMetadata,
@@ -92,7 +93,13 @@ export function QuillSceneTitleSection({
back={
<QuillSceneTrail
lead={sidebarBreadcrumbShown && <TodaySidebarBreadcrumb />}
- parent={backTo && backPath ? { name: backTo.name, path: backPath } : undefined}
+ parent={
+ backTo && backPath
+ ? { name: backTo.name, path: backPath }
+ : scope && !titleInPhoneHeader
+ ? { name: scope }
+ : undefined
+ }
icon={resourceIcon}
current={staticName ? { name, description: description || undefined } : undefined}
/>
diff --git a/frontend/src/layout/scenes/components/QuillSceneTrail.tsx b/frontend/src/layout/scenes/components/QuillSceneTrail.tsx
index 9704c65d29d6..cd2f0729dcb1 100644
--- a/frontend/src/layout/scenes/components/QuillSceneTrail.tsx
+++ b/frontend/src/layout/scenes/components/QuillSceneTrail.tsx
@@ -8,7 +8,7 @@ import { QuillSceneStaticName } from './QuillSceneStaticName'
export interface QuillSceneTrailParent {
name: ReactNode
- path: string
+ path?: string
}
// Every offset in the trail lives here. Each one cancels padding so the gaps read evenly and nothing moves when the
@@ -20,6 +20,9 @@ const SLASH_BEFORE_NAME = cn(SLASH, '-ms-1 -me-[3px]')
const TITLE_ICON = '-me-1.5 flex size-4 shrink-0 items-center justify-center text-sm [&_svg]:size-4'
const LINK_ICON = '-me-[3px] flex size-4 shrink-0 items-center justify-center [&_svg]:size-4'
const CRUMB = '-ms-2'
+// Matches the link button's box, so a static parent sits where a link parent would.
+const STATIC_PARENT =
+ '-ms-2 inline-flex h-7 min-w-0 max-w-48 shrink-0 items-center gap-2 px-2 text-[length:var(--text-ui,0.8125rem)] font-medium text-muted-foreground'
export interface QuillSceneTrailCurrent {
name: ReactNode
@@ -49,18 +52,29 @@ export function QuillSceneTrail({ lead, parent, icon, current }: QuillSceneTrail
)}
{parent ? (
<>
- <Button
- className="-ms-2 min-w-0 max-w-48 text-muted-foreground"
- render={<LinkPrimitive to={parent.path} />}
- data-attr="scene-title-breadcrumb-back"
- >
- {icon && (
- <span className={LINK_ICON} aria-hidden>
- {icon}
- </span>
- )}
- <span className="truncate">{parent.name}</span>
- </Button>
+ {parent.path ? (
+ <Button
+ className="-ms-2 min-w-0 max-w-48 text-muted-foreground"
+ render={<LinkPrimitive to={parent.path} />}
+ data-attr="scene-title-breadcrumb-back"
+ >
+ {icon && (
+ <span className={LINK_ICON} aria-hidden>
+ {icon}
+ </span>
+ )}
+ <span className="truncate">{parent.name}</span>
+ </Button>
+ ) : (
+ <span className={STATIC_PARENT}>
+ {icon && (
+ <span className={LINK_ICON} aria-hidden>
+ {icon}
+ </span>
+ )}
+ <span className="truncate">{parent.name}</span>
+ </span>
+ )}
<span className={current ? SLASH_AFTER_LINK : SLASH_BEFORE_NAME} aria-hidden>
/
</span>
diff --git a/frontend/src/layout/scenes/components/SceneTitleSection.tsx b/frontend/src/layout/scenes/components/SceneTitleSection.tsx
index 6cc65e8c04aa..23239fade36e 100644
--- a/frontend/src/layout/scenes/components/SceneTitleSection.tsx
+++ b/frontend/src/layout/scenes/components/SceneTitleSection.tsx
@@ -108,6 +108,11 @@ export type SceneMainTitleProps = {
* @default undefined
*/
forceBackTo?: Breadcrumb
+ /**
+ * A plain-text crumb before the name that says where the scene sits, for example a settings level.
+ * Only the rail navigation shows it.
+ */
+ scope?: string
/**
* Additional class name for the title section
diff --git a/frontend/src/layout/today/TodayPaneOption.tsx b/frontend/src/layout/today/TodayPaneOption.tsx
index 0f51b642b0ab..3e721e3d072e 100644
--- a/frontend/src/layout/today/TodayPaneOption.tsx
+++ b/frontend/src/layout/today/TodayPaneOption.tsx
@@ -11,6 +11,7 @@ export interface TodayPaneOptionProps extends Omit<
value: string
to: string
active: boolean
+ variant?: 'default' | 'destructive'
className?: string
children: ReactNode
}
@@ -20,6 +21,7 @@ export function TodayPaneOption({
value,
to,
active,
+ variant = 'default',
className,
children,
...props
@@ -28,15 +30,18 @@ export function TodayPaneOption({
<AutocompleteItem
value={value}
aria-current={active ? 'page' : undefined}
+ data-variant={variant}
{...props}
render={
<Button
size="row"
+ variant={variant}
left
nativeButton={false}
render={<LinkPrimitive to={to} />}
className={cn(
- 'w-full min-w-0 font-semibold text-foreground [&>span]:w-full',
+ 'w-full min-w-0 font-semibold [&>span]:w-full',
+ variant === 'default' && 'text-foreground',
'data-highlighted:border-transparent data-highlighted:ring-0',
active
? 'bg-fill-selected data-highlighted:bg-fill-selected'
diff --git a/frontend/src/layout/today/TodayPaneRow.tsx b/frontend/src/layout/today/TodayPaneRow.tsx
index 875d746780d1..d22a2ddcf47f 100644
--- a/frontend/src/layout/today/TodayPaneRow.tsx
+++ b/frontend/src/layout/today/TodayPaneRow.tsx
@@ -9,6 +9,7 @@ interface TodayPaneRowProps {
icon?: JSX.Element | null
to: string
active?: boolean
+ variant?: 'default' | 'destructive'
/** A control that sits on the row's right edge and shows on hover, outside the row's own link. */
action?: JSX.Element | null
dataAttr?: string
@@ -21,6 +22,7 @@ export function TodayPaneRow({
icon,
to,
active = false,
+ variant,
action,
dataAttr,
}: TodayPaneRowProps): JSX.Element {
@@ -30,6 +32,7 @@ export function TodayPaneRow({
value={value}
to={to}
active={active}
+ variant={variant}
title={label}
data-attr={dataAttr}
className={cn(action && 'pr-8')}
diff --git a/frontend/src/layout/today/TodayPaneSearchList.tsx b/frontend/src/layout/today/TodayPaneSearchList.tsx
index 5b19a367b86b..c2708d0283cd 100644
--- a/frontend/src/layout/today/TodayPaneSearchList.tsx
+++ b/frontend/src/layout/today/TodayPaneSearchList.tsx
@@ -9,6 +9,7 @@ export interface TodayPaneSearchListProps {
searchLabel: string
dataAttr: string
searchActions?: ReactNode
+ header?: ReactNode
children: ReactNode
className?: string
/** For a pane whose own sections scroll, so the list itself does not. */
@@ -25,6 +26,7 @@ export function TodayPaneSearchList({
searchLabel,
dataAttr,
searchActions,
+ header,
children,
className,
listClassName,
@@ -68,9 +70,11 @@ export function TodayPaneSearchList({
</AutocompleteInput>
{searchActions}
</div>
+ {header && <div className="mt-2 shrink-0">{header}</div>}
<AutocompleteList
className={cn(
'TodayPaneSearchList mt-2 min-h-0 !max-h-none flex-1 overflow-y-auto !p-0 pb-6',
+ header && 'mt-1',
listClassName
)}
>
diff --git a/frontend/src/layout/today/TodayRail.tsx b/frontend/src/layout/today/TodayRail.tsx
index ec12f1fc662e..e1fa0b58ffa5 100644
--- a/frontend/src/layout/today/TodayRail.tsx
+++ b/frontend/src/layout/today/TodayRail.tsx
@@ -1,21 +1,30 @@
import { useActions, useValues } from 'kea'
-import { IconGear } from '@posthog/icons'
-import { Button, Tooltip, TooltipContent, TooltipTrigger } from '@posthog/quill'
-
-import { LinkPrimitive } from 'lib/lemon-ui/Link'
-import { urls } from 'scenes/urls'
-
import { TodayAccountMenu } from './TodayAccountMenu'
import { TodayOrgMenu } from './TodayOrgMenu'
-import { TODAY_PANES, TODAY_RAIL_PANES } from './todayRailItems'
+import { TODAY_PANES, TODAY_RAIL_FOOTER_PANES, TODAY_RAIL_PANES } from './todayRailItems'
import { TodayRailTile } from './TodayRailTile'
-import { TODAY_RAIL_WIDTH, railPaneHref, todayShellLogic } from './todayShellLogic'
+import { TODAY_RAIL_WIDTH, TodayRailPane, railPaneHref, todayShellLogic } from './todayShellLogic'
+
+// pinned: autocapture data-attr. The Settings tile kept the attribute of the gear button it replaced.
+const RAIL_DATA_ATTRS: Partial<Record<TodayRailPane, string>> = { settings: 'today-settings' }
export function TodayRail(): JSX.Element {
const { activePane } = useValues(todayShellLogic)
const { clickRailPane } = useActions(todayShellLogic)
+ const renderTile = (pane: TodayRailPane): JSX.Element => (
+ <TodayRailTile
+ key={pane}
+ label={TODAY_PANES[pane].label}
+ icon={TODAY_PANES[pane].icon}
+ active={activePane === pane}
+ to={railPaneHref(pane)}
+ onClick={() => clickRailPane(pane)}
+ dataAttr={RAIL_DATA_ATTRS[pane] ?? `today-rail-${pane}`}
+ />
+ )
+
return (
<nav
aria-label="Main"
@@ -24,36 +33,10 @@ export function TodayRail(): JSX.Element {
style={{ width: TODAY_RAIL_WIDTH }}
>
<TodayOrgMenu />
- {TODAY_RAIL_PANES.map((pane) => (
- <TodayRailTile
- key={pane}
- label={TODAY_PANES[pane].label}
- icon={TODAY_PANES[pane].icon}
- active={activePane === pane}
- to={railPaneHref(pane)}
- onClick={() => clickRailPane(pane)}
- dataAttr={`today-rail-${pane}`}
- />
- ))}
- <Tooltip>
- <TooltipTrigger
- delay={0}
- render={
- <Button
- size="icon"
- aria-label="Settings"
- nativeButton={false}
- render={<LinkPrimitive to={urls.settings('project')} />}
- className="mt-auto size-10 rounded-md text-muted-foreground hover:text-foreground [&_svg]:size-5"
- // pinned: autocapture data-attr
- data-attr="today-settings"
- />
- }
- >
- <IconGear />
- </TooltipTrigger>
- <TooltipContent side="right">Settings</TooltipContent>
- </Tooltip>
+ {TODAY_RAIL_PANES.map(renderTile)}
+ <div className="mt-auto flex w-full flex-col items-center gap-3">
+ {TODAY_RAIL_FOOTER_PANES.map(renderTile)}
+ </div>
<TodayAccountMenu />
</nav>
)
diff --git a/frontend/src/layout/today/TodaySettingsSidebar.tsx b/frontend/src/layout/today/TodaySettingsSidebar.tsx
new file mode 100644
index 000000000000..7659959afbff
--- /dev/null
+++ b/frontend/src/layout/today/TodaySettingsSidebar.tsx
@@ -0,0 +1,128 @@
+import { useActions, useValues } from 'kea'
+import { router } from 'kea-router'
+
+import { IconChevronDown, IconChevronRight } from '@posthog/icons'
+import { MenuLabel, Tabs, TabsList, TabsTrigger, Text } from '@posthog/quill'
+
+import { removeProjectIdIfPresent } from 'lib/utils/kea-router'
+import { settingsLogic } from 'scenes/settings/settingsLogic'
+import { settingsNavItems, settingsSectionLabel } from 'scenes/settings/settingsNavTree'
+import { SettingsPaneLevel } from 'scenes/settings/settingsSectionScenes'
+import { SettingLevelNames, SettingSection } from 'scenes/settings/types'
+import { urls } from 'scenes/urls'
+
+import { TodayPaneGroupLabel } from './TodayPaneGroupLabel'
+import { TodayPaneRow } from './TodayPaneRow'
+import { TodayPaneSearchList } from './TodayPaneSearchList'
+
+export function TodaySettingsSidebar(): JSX.Element {
+ // The scene's own key, so a search here and the open section stay in step with the settings page.
+ const logic = settingsLogic({ logicKey: 'settingsScene' })
+ const { levels, filteredSections, collapsedGroups, navLevel, searchTerm, isSearching, searchResults } =
+ useValues(logic)
+ const { setSearchTerm, setNavLevel, toggleGroupCollapse } = useActions(logic)
+ // Without an organization only the account level exists, so fall back to whichever level is there.
+ const level = levels.includes(navLevel) ? navLevel : levels[0]
+ const { location } = useValues(router)
+ const path = removeProjectIdIfPresent(location.pathname)
+
+ const renderSection = (section: SettingSection, destructive = false): JSX.Element => {
+ const href = section.to ?? urls.settings(section.id)
+ return (
+ <TodayPaneRow
+ key={section.id}
+ value={`section:${section.id}`}
+ label={settingsSectionLabel(section)}
+ to={href}
+ active={path === href || path.startsWith(`${href}/`)}
+ variant={destructive ? 'destructive' : 'default'}
+ // pinned: autocapture data-attr shared with the settings page nav
+ dataAttr={`settings-menu-item-${section.id}`}
+ />
+ )
+ }
+
+ return (
+ <div className="TodayPane" data-quill>
+ <TodayPaneSearchList
+ query={searchTerm}
+ onQueryChange={setSearchTerm}
+ searchLabel="Search all settings"
+ dataAttr="today-settings-search"
+ listClassName="pb-24"
+ header={
+ !isSearching &&
+ levels.length > 1 && (
+ <Tabs value={level} onValueChange={(next) => setNavLevel(next as SettingsPaneLevel)}>
+ <TabsList className="w-full">
+ {levels.map((id) => (
+ <TabsTrigger
+ key={id}
+ value={id}
+ className="flex-1"
+ data-attr={`today-settings-tab-${id}`}
+ >
+ {SettingLevelNames[id]}
+ </TabsTrigger>
+ ))}
+ </TabsList>
+ </Tabs>
+ )
+ }
+ >
+ {isSearching ? (
+ searchResults.length === 0 ? (
+ <Text size="xs" variant="muted" className="block px-2 py-1">
+ No settings match that search.
+ </Text>
+ ) : (
+ searchResults.map((group, index) => (
+ <div key={group.sectionId}>
+ <TodayPaneGroupLabel first={index === 0}>
+ {group.sectionTitle}
+ <span className="ml-1 font-normal">({SettingLevelNames[group.level]})</span>
+ </TodayPaneGroupLabel>
+ {group.results.map((result) => (
+ <TodayPaneRow
+ key={result.settingId}
+ value={`setting:${result.sectionId}:${result.settingId}`}
+ label={result.settingTitle}
+ to={urls.settings(result.sectionId, result.settingId)}
+ // pinned: autocapture data-attr shared with the settings page search
+ dataAttr={`settings-search-result-${result.settingId}`}
+ />
+ ))}
+ </div>
+ ))
+ )
+ ) : (
+ level &&
+ settingsNavItems(level, filteredSections).map((item) => {
+ if (item.kind === 'section') {
+ return renderSection(item.section, item.destructive)
+ }
+ const open = !collapsedGroups[item.key]
+ const Caret = open ? IconChevronDown : IconChevronRight
+ return (
+ <div key={item.key}>
+ <MenuLabel
+ render={<button type="button" />}
+ aria-expanded={open}
+ data-attr="today-settings-group"
+ onClick={() => toggleGroupCollapse(item.key)}
+ className="mt-1 flex w-full cursor-pointer items-center gap-1 rounded-sm py-1 text-left font-normal text-foreground/70 hover:text-foreground"
+ >
+ <span>{item.label}</span>
+ <Caret className="size-3 shrink-0 opacity-60" />
+ </MenuLabel>
+ {open && (
+ <div className="pl-2">{item.sections.map((section) => renderSection(section))}</div>
+ )}
+ </div>
+ )
+ })
+ )}
+ </TodayPaneSearchList>
+ </div>
+ )
+}
diff --git a/frontend/src/layout/today/TodayShell.tsx b/frontend/src/layout/today/TodayShell.tsx
index f35c8bad7f30..810334aebe58 100644
--- a/frontend/src/layout/today/TodayShell.tsx
+++ b/frontend/src/layout/today/TodayShell.tsx
@@ -34,6 +34,9 @@ const TodayViewsSidebar = lazyWithRetry(() =>
const TodayProductsSidebar = lazyWithRetry(() =>
import('./TodayProductsSidebar').then((m) => ({ default: m.TodayProductsSidebar }))
)
+const TodaySettingsSidebar = lazyWithRetry(() =>
+ import('./TodaySettingsSidebar').then((m) => ({ default: m.TodaySettingsSidebar }))
+)
const NewSpaceDialog = lazyWithRetry(() =>
import('products/tasks/frontend/spaces/NewSpaceDialog').then((m) => ({ default: m.NewSpaceDialog }))
)
@@ -99,6 +102,8 @@ export function TodayShell({ className }: { className?: string }): JSX.Element {
<TodaySpacesPane />
) : activePane === 'views' ? (
<TodayViewsSidebar />
+ ) : activePane === 'settings' ? (
+ <TodaySettingsSidebar />
) : (
<TodayProductsSidebar />
)}
diff --git a/frontend/src/layout/today/todayRailItems.tsx b/frontend/src/layout/today/todayRailItems.tsx
index cdc71f982046..869e9b281a89 100644
--- a/frontend/src/layout/today/todayRailItems.tsx
+++ b/frontend/src/layout/today/todayRailItems.tsx
@@ -1,4 +1,12 @@
-import { IconApps, IconChat, IconGridMasonry, IconHome, IconSidebarClose, IconSidebarOpen } from '@posthog/icons'
+import {
+ IconApps,
+ IconChat,
+ IconGear,
+ IconGridMasonry,
+ IconHome,
+ IconSidebarClose,
+ IconSidebarOpen,
+} from '@posthog/icons'
import { isMac } from 'lib/utils/dom'
import { urls } from 'scenes/urls'
@@ -28,9 +36,11 @@ export const TODAY_PANES: Record<TodayRailPane, TodayPane> = {
},
views: { label: 'Views', title: 'Views', icon: <IconGridMasonry />, action: TodayNewViewButton },
products: { label: 'Products', title: 'Products', icon: <IconApps /> },
+ settings: { label: 'Settings', title: 'Settings', icon: <IconGear />, home: () => urls.settings('project') },
}
export const TODAY_RAIL_PANES: TodayRailPane[] = ['home', 'spaces', 'views', 'products']
+export const TODAY_RAIL_FOOTER_PANES: TodayRailPane[] = ['settings']
export function todaySidebarShortcutLabel(): string {
return isMac() ? '⌘B' : 'Ctrl+B'
diff --git a/frontend/src/layout/today/todayShellLogic.test.ts b/frontend/src/layout/today/todayShellLogic.test.ts
index 35fa929b244c..acab53481d35 100644
--- a/frontend/src/layout/today/todayShellLogic.test.ts
+++ b/frontend/src/layout/today/todayShellLogic.test.ts
@@ -42,6 +42,10 @@ describe('todayShellLogic', () => {
['/project/1/dashboard', 'views'],
['/project/1/persons', 'products'],
['/project/1/activity/events', 'products'],
+ ['/project/1/settings/project-replay', 'settings'],
+ ['/organization/billing/overview', 'settings'],
+ ['/organization/legal/new/dpa', 'settings'],
+ ['/project/1/exports', 'settings'],
['/project/1/airplane', null],
['/project/1/homework', null],
])('puts %s under %s', (pathname, pane) => {
diff --git a/frontend/src/layout/today/todayShellLogic.ts b/frontend/src/layout/today/todayShellLogic.ts
index 5064dfe2bac5..6f5f1f329430 100644
--- a/frontend/src/layout/today/todayShellLogic.ts
+++ b/frontend/src/layout/today/todayShellLogic.ts
@@ -7,8 +7,9 @@ import posthog from 'posthog-js'
import { FEATURE_FLAGS } from 'lib/constants'
import { FeatureFlagsSet, featureFlagLogic } from 'lib/logic/featureFlagLogic'
-import { removeProjectIdIfPresent } from 'lib/utils/kea-router'
+import { isUnderPath, removeProjectIdIfPresent } from 'lib/utils/kea-router'
import { libraryTypeForPath } from 'scenes/library/libraryUtils'
+import { settingsSectionSceneForPath } from 'scenes/settings/settingsSectionScenes'
import { toolHrefForPath } from 'scenes/tools/toolsUtils'
import { urls } from 'scenes/urls'
@@ -16,7 +17,7 @@ import { navigationLogic } from '~/layout/navigation/navigationLogic'
import { TODAY_PANES } from './todayRailItems'
-export type TodayRailPane = 'home' | 'spaces' | 'views' | 'products'
+export type TodayRailPane = 'home' | 'spaces' | 'views' | 'products' | 'settings'
/** What showed or hid the sidebar. `navigation` is a page change that hides the unpinned sidebar. */
export type TodaySidebarToggleSource =
@@ -42,10 +43,6 @@ export function clampSidebarWidth(width: number | null): number {
)
}
-function isUnder(path: string, root: string): boolean {
- return path === root || path.startsWith(`${root}/`)
-}
-
/** The page a rail pane opens, or undefined when the pane only opens the sidebar. */
export function railPaneHref(pane: TodayRailPane): string | undefined {
return TODAY_PANES[pane].home?.()
@@ -76,24 +73,27 @@ export function nextPhonePages(
/** The pane a route belongs to, or null for pages that keep whichever pane was open. */
export function railPaneForPath(pathname: string): TodayRailPane | null {
const path = removeProjectIdIfPresent(pathname)
- if (path === '/' || isUnder(path, urls.projectHomepage())) {
+ if (path === '/' || isUnderPath(path, urls.projectHomepage())) {
return 'home'
}
- if (isUnder(path, '/ai') || isUnder(path, '/spaces')) {
+ if (isUnderPath(path, '/ai') || isUnderPath(path, '/spaces')) {
return 'spaces'
}
// Notebooks and dashboards are views, list pages included, so they never open the Products pane.
if (
- isUnder(path, urls.views()) ||
- isUnder(path, '/canvases') ||
- isUnder(path, urls.notebooks()) ||
- isUnder(path, urls.dashboards())
+ isUnderPath(path, urls.views()) ||
+ isUnderPath(path, '/canvases') ||
+ isUnderPath(path, urls.notebooks()) ||
+ isUnderPath(path, urls.dashboards())
) {
return 'views'
}
+ if (isUnderPath(path, '/settings') || settingsSectionSceneForPath(path)) {
+ return 'settings'
+ }
if (
- isUnder(path, urls.library()) ||
- isUnder(path, urls.tools()) ||
+ isUnderPath(path, urls.library()) ||
+ isUnderPath(path, urls.tools()) ||
libraryTypeForPath(path) ||
toolHrefForPath(path)
) {
@@ -199,12 +199,7 @@ export interface todayShellLogicMeta {
) => boolean
phoneHeaderShown: (todayRailEnabled: boolean, phoneLayout: boolean, phoneHeaderHidden: boolean) => boolean
phoneCanGoBack: (phonePages: TodayPhonePage[]) => boolean
- sidebarBreadcrumbShown: (
- todayRailEnabled: boolean,
- phoneLayout: boolean,
- mobileLayout: boolean,
- sidebarVisible: boolean
- ) => boolean
+ sidebarBreadcrumbShown: (todayRailEnabled: boolean, phoneLayout: boolean, sidebarVisible: boolean) => boolean
}
}
@@ -328,16 +323,10 @@ export const todayShellLogic = kea<todayShellLogicType>([
// covers the button instead of replacing it, so it stays and the title never shifts. Phones open the
// sidebar from the phone header.
sidebarBreadcrumbShown: [
- (s) => [s.todayRailEnabled, s.phoneLayout, s.mobileLayout, s.sidebarVisible],
- (
- todayRailEnabled: boolean,
- phoneLayout: boolean,
- mobileLayout: boolean,
- sidebarVisible: boolean
- ): boolean =>
- // Only a docked, hidden sidebar needs the crumb. Below the docking width the rail tile opens the
- // overlay sidebar, and the crumb would only crowd the title row.
- todayRailEnabled && !phoneLayout && !mobileLayout && !sidebarVisible,
+ (s) => [s.todayRailEnabled, s.phoneLayout, s.sidebarVisible],
+ (todayRailEnabled: boolean, phoneLayout: boolean, sidebarVisible: boolean): boolean =>
+ // A hidden sidebar needs the crumb to come back, docked or overlay. The phone header has its own.
+ todayRailEnabled && !phoneLayout && !sidebarVisible,
],
}),
subscriptions(({ actions }) => ({
diff --git a/frontend/src/lib/utils/kea-router.ts b/frontend/src/lib/utils/kea-router.ts
index 2a1007083c5d..0d186569c566 100644
--- a/frontend/src/lib/utils/kea-router.ts
+++ b/frontend/src/lib/utils/kea-router.ts
@@ -189,3 +189,8 @@ export function getProjectSwitchTargetUrl(
// Default: keep the same route structure but with new project ID
return `/project/${newTeamId}${route}`
}
+
+/** True for `root` itself and for any path below it. Takes paths without the project prefix. */
+export function isUnderPath(path: string, root: string): boolean {
+ return path === root || path.startsWith(`${root}/`)
+}
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index 68ba64bc4ac9..b0db1aa2599c 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -255,6 +255,7 @@ export const productRoutes: Record<string, [string, string]> = {
'/ai-enrichment/:label': ['AIEnrichment', 'aiEnrichment'],
'/legal': ['LegalDocuments', 'legalDocuments'],
'/legal/new/:type': ['LegalDocumentNew', 'legalDocumentNew'],
+ '/organization/legal': ['LegalDocuments', 'organizationLegalDocuments'],
'/logs': ['Logs', 'logs'],
'/logs/alerts/:id': ['LogsAlertDetail', 'logsAlertDetail'],
'/logs/alerts/:id/notifications/:hogFunctionId': ['LogsAlertNotificationDetail', 'logsAlertNotificationDetail'],
@@ -1724,6 +1725,7 @@ export const productUrls = {
aiEnrichment: (label?: string): string => `/ai-enrichment${label ? `/${encodeURIComponent(label)}` : ''}`,
legalDocuments: (): string => '/legal',
legalDocumentNew: (type: 'BAA' | 'DPA'): string => `/legal/new/${type.toLowerCase()}`,
+ organizationLegalDocuments: (): string => '/organization/legal',
logs: (activeTab?: LogsSceneActiveTab): string => (activeTab ? `/logs?activeTab=${activeTab}` : '/logs'),
logsAlertDetail: (id: string, tab?: string): string =>
tab ? `/logs/alerts/${id}?tab=${tab}` : `/logs/alerts/${id}`,
diff --git a/frontend/src/scenes/billing/BillingSection.tsx b/frontend/src/scenes/billing/BillingSection.tsx
index 3e3bc6550a6b..8dfd19972d9d 100644
--- a/frontend/src/scenes/billing/BillingSection.tsx
+++ b/frontend/src/scenes/billing/BillingSection.tsx
@@ -10,8 +10,11 @@ import { FEATURE_FLAGS } from 'lib/constants'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { lazyWithRetry } from 'lib/utils/retryImport'
import { SceneExport } from 'scenes/sceneTypes'
+import { settingsSectionSceneScope } from 'scenes/settings/settingsSectionScenes'
import { urls } from 'scenes/urls'
+import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
+
import { Billing } from './Billing'
import { billingLogic } from './billingLogic'
import { BillingSpendView } from './BillingSpendView'
@@ -41,6 +44,7 @@ export function BillingSection(): JSX.Element {
const { featureFlags, receivedFeatureFlags } = useValues(featureFlagLogic)
const { canAccessBilling, canViewUsageAndSpend, canOnlyViewUsageAndSpend } = useValues(billingLogic)
const billingAlertsEnabled = !!featureFlags[FEATURE_FLAGS.BILLING_ALERTS]
+ const todayRailNav = !!featureFlags[FEATURE_FLAGS.TODAY_RAIL_NAV]
const alertsRequested = location.pathname.includes('alerts')
const billingAlertsPending = alertsRequested && !receivedFeatureFlags
const tabs = billingAlertsEnabled || billingAlertsPending ? allTabs : allTabs.filter((tab) => tab.key !== 'alerts')
@@ -103,6 +107,13 @@ export function BillingSection(): JSX.Element {
return (
<div className="flex flex-col">
+ {todayRailNav && (
+ <SceneTitleSection
+ name="Billing"
+ resourceType={{ type: 'settings' }}
+ scope={settingsSectionSceneScope('organization-billing')}
+ />
+ )}
{visibleTabs.length > 0 && <LemonTabs activeKey={section} onChange={handleTabChange} tabs={visibleTabs} />}
{section === 'overview' && <Billing />}
diff --git a/frontend/src/scenes/exports/ExportsScene.tsx b/frontend/src/scenes/exports/ExportsScene.tsx
index 637b6c7e98a3..906296e536dc 100644
--- a/frontend/src/scenes/exports/ExportsScene.tsx
+++ b/frontend/src/scenes/exports/ExportsScene.tsx
@@ -13,6 +13,7 @@ import { dayjs } from 'lib/dayjs'
import { humanFriendlyNumber } from 'lib/utils/numbers'
import { sceneConfigurations } from 'scenes/scenes'
import { Scene, SceneExport } from 'scenes/sceneTypes'
+import { settingsSectionSceneScope } from 'scenes/settings/settingsSectionScenes'
import { SceneContent } from '~/layout/scenes/components/SceneContent'
import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
@@ -150,6 +151,7 @@ export function ExportsScene(): JSX.Element {
name={sceneConfigurations[Scene.Exports].name}
description={sceneConfigurations[Scene.Exports].description}
resourceType={{ type: 'exports' }}
+ scope={settingsSectionSceneScope('environment-exports')}
actions={
<LemonButton
onClick={loadExports}
diff --git a/frontend/src/scenes/scenes.ts b/frontend/src/scenes/scenes.ts
index b305b72ae99a..1efd20d97bb1 100644
--- a/frontend/src/scenes/scenes.ts
+++ b/frontend/src/scenes/scenes.ts
@@ -934,6 +934,9 @@ export const routes: Record<string, [Scene | string, string]> = {
[urls.exports()]: [Scene.Exports, 'exports'],
[urls.startups()]: [Scene.StartupProgram, 'startupProgram'],
[urls.startups(':referrer')]: [Scene.StartupProgram, 'startupProgramWithReferrer'],
+ // The settings navigation's home for this page, next to billing. The /startups routes stay until links move over.
+ [urls.organizationStartups()]: [Scene.StartupProgram, 'organizationStartupProgram'],
+ [urls.organizationStartups(':referrer')]: [Scene.StartupProgram, 'organizationStartupProgramWithReferrer'],
[urls.agenticAuthorize()]: [Scene.AgenticAuthorize, 'agenticAuthorize'],
[urls.oauthAuthorize()]: [Scene.OAuthAuthorize, 'oauthAuthorize'],
[urls.dataPipelinesNew(':kind' as any)]: [Scene.DataPipelinesNew, 'dataPipelinesNew'],
diff --git a/frontend/src/scenes/settings/Settings.tsx b/frontend/src/scenes/settings/Settings.tsx
index 27d3e8a74eb2..eb9c1cdb02dd 100644
--- a/frontend/src/scenes/settings/Settings.tsx
+++ b/frontend/src/scenes/settings/Settings.tsx
@@ -44,11 +44,8 @@ import { ErrorBoundary } from '~/layout/ErrorBoundary'
import { SettingSectionUnavailable } from './components/SettingSectionUnavailable'
import { SearchResult, settingsLogic } from './settingsLogic'
-import { SettingLevelId, SettingSection, SettingsLogicProps } from './types'
-
-function sectionSortKey(section: SettingSection): string {
- return typeof section.title === 'string' ? section.title : section.id
-}
+import { settingsNavTree } from './settingsNavTree'
+import { SettingLevelNames, SettingSection, SettingsLogicProps } from './types'
export interface SettingOption {
key: string
@@ -192,16 +189,8 @@ export function Settings({
</OptionButton>
),
}))
- : filteredLevels.map((level) => {
- const levelSections = filteredSections.filter((x) => x.level === level)
- const isCollapsed = collapsedLevels[level]
-
- // Separate danger zone sections (always rendered last)
- const dangerZoneSections = levelSections.filter((s) => s.id.endsWith('-danger-zone'))
- const nonDangerSections = levelSections.filter((s) => !s.id.endsWith('-danger-zone'))
-
- // Build section option helper
- const buildSectionOption = (section: (typeof levelSections)[0]): SettingOption => {
+ : settingsNavTree(filteredLevels, filteredSections).map(({ level, items }) => {
+ const buildSectionOption = (section: SettingSection): SettingOption => {
const { id, to, accessControl } = section
return {
@@ -236,53 +225,26 @@ export function Settings({
}
}
- // Build items in SETTINGS_MAP order, rendering groups when we first encounter them
- const renderedGroups = new Set<string>()
- const levelItems: SettingOption[] = [
- ...nonDangerSections.flatMap((section) => {
- // Ungrouped section - render directly
- if (!section.group) {
- return [buildSectionOption(section)]
- }
-
- // Grouped section - render entire group when we first see it
- if (renderedGroups.has(section.group)) {
- return [] // Already rendered this group
- }
-
- renderedGroups.add(section.group)
- const groupKey = `${level}-${section.group}`
- const isGroupCollapsed = collapsedGroups[groupKey]
- const sectionsInGroup = nonDangerSections.filter((s) => s.group === section.group)
- // Only the Products group sorts by title, because the AI group lists PostHog AI first on purpose
- if (section.group === 'Products') {
- sectionsInGroup.sort((a, b) => sectionSortKey(a).localeCompare(sectionSortKey(b)))
- }
-
- return [
- {
- key: groupKey,
- collapsible: {
- label: section.group,
- open: !isGroupCollapsed,
- onOpenChange: () => toggleGroupCollapse(groupKey),
- },
- items: sectionsInGroup.map(buildSectionOption),
- },
- ]
- }),
- // Danger zone always at the bottom
- ...dangerZoneSections.map(buildSectionOption),
- ]
-
return {
key: level,
collapsible: {
label: SettingLevelNames[level],
- open: !isCollapsed,
+ open: !collapsedLevels[level],
onOpenChange: () => toggleLevelCollapse(level),
},
- items: levelItems,
+ items: items.map((item) =>
+ item.kind === 'section'
+ ? buildSectionOption(item.section)
+ : {
+ key: item.key,
+ collapsible: {
+ label: item.label,
+ open: !collapsedGroups[item.key],
+ onOpenChange: () => toggleGroupCollapse(item.key),
+ },
+ items: item.sections.map(buildSectionOption),
+ }
+ ),
}
})
@@ -606,10 +568,3 @@ const OptionButton = ({
return button
}
-
-export const SettingLevelNames: Record<SettingLevelId, string> = {
- environment: 'Environment',
- project: 'Project',
- organization: 'Organization',
- user: 'Account',
-} as const
diff --git a/frontend/src/scenes/settings/SettingsScene.tsx b/frontend/src/scenes/settings/SettingsScene.tsx
index 96bf4b126b66..281a9ea23eb7 100644
--- a/frontend/src/scenes/settings/SettingsScene.tsx
+++ b/frontend/src/scenes/settings/SettingsScene.tsx
@@ -2,14 +2,17 @@ import { useValues } from 'kea'
import { router } from 'kea-router'
import { useAnchor } from 'lib/hooks/useAnchor'
+import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { capitalizeFirstLetter } from 'lib/utils/strings'
import { SceneExport } from 'scenes/sceneTypes'
import { SceneContent } from '~/layout/scenes/components/SceneContent'
+import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
import { Settings } from './Settings'
import { settingsLogic } from './settingsLogic'
import { settingsSceneLogic } from './settingsSceneLogic'
+import { SettingLevelNames } from './types'
export const scene: SceneExport = {
component: SettingsScene,
@@ -18,7 +21,10 @@ export const scene: SceneExport = {
export function SettingsScene(): JSX.Element {
const { location } = useValues(router)
- const { selectedLevel, selectedSectionId, sections } = useValues(settingsLogic({ logicKey: 'settingsScene' }))
+ const { selectedLevel, selectedSectionId, selectedSection, sections } = useValues(
+ settingsLogic({ logicKey: 'settingsScene' })
+ )
+ const todayRailNav = useFeatureFlag('TODAY_RAIL_NAV')
useAnchor(location.hash)
const sectionName = selectedSectionId
@@ -29,10 +35,19 @@ export function SettingsScene(): JSX.Element {
return (
<SceneContent>
+ {todayRailNav && (
+ <SceneTitleSection
+ name={typeof sectionName === 'string' && sectionName ? sectionName : 'Settings'}
+ resourceType={{ type: 'settings' }}
+ // A level-only page already names the level, so only a section gets the level crumb.
+ scope={selectedSection ? SettingLevelNames[selectedSection.level] : undefined}
+ />
+ )}
<Settings
logicKey="settingsScene"
handleLocally
- headerSlot={<h1 className="text-2xl font-semibold m-0 mb-4">{title}</h1>}
+ hideSections={todayRailNav}
+ headerSlot={todayRailNav ? null : <h1 className="text-2xl font-semibold m-0 mb-4">{title}</h1>}
/>
</SceneContent>
)
diff --git a/frontend/src/scenes/settings/settingsLogic.ts b/frontend/src/scenes/settings/settingsLogic.ts
index ef2070c88915..31100273aa4d 100644
--- a/frontend/src/scenes/settings/settingsLogic.ts
+++ b/frontend/src/scenes/settings/settingsLogic.ts
@@ -5,6 +5,7 @@ import { actionToUrl, router, urlToAction } from 'kea-router'
import posthog from 'posthog-js'
import api from 'lib/api'
+import { FEATURE_FLAGS } from 'lib/constants'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { createFuse } from 'lib/utils/fuseSearch'
@@ -28,6 +29,7 @@ import {
createSettingsSearchFuse,
searchSettingsIndex,
} from './settingsSearch'
+import { SETTINGS_SECTION_SCENES, SettingsPaneLevel } from './settingsSectionScenes'
import {
Setting,
SettingId,
@@ -101,6 +103,7 @@ export interface settingsLogicValues {
isCompactNavigationOpen: boolean
isSearching: boolean
levels: SettingLevelId[]
+ navLevel: SettingsPaneLevel
searchResults: SearchResultGroup[]
searchTerm: string
sections: SettingSection[]
@@ -177,6 +180,9 @@ export interface settingsLogicActions {
selectSetting: (setting: SettingId) => {
setting: SettingId
}
+ setNavLevel: (level: SettingsPaneLevel) => {
+ level: SettingsPaneLevel
+ }
setSearchTerm: (searchTerm: string) => {
searchTerm: string
}
@@ -201,7 +207,8 @@ export interface settingsLogicMeta {
organizationIntegrations: IntegrationType[] | null,
preflight: PreflightStatus | null,
billingEntryUrl: string | null,
- isAdminOrOwner: boolean | null
+ isAdminOrOwner: boolean | null,
+ featureFlags: FeatureFlagsSet
) => SettingSection[]
selectedLevel: (
selectedLevelRaw: 'environment' | 'organization' | 'project' | 'user',
@@ -269,6 +276,16 @@ export type settingsLogicType = MakeLogicType<
settingsLogicMeta
>
+/** The pane lists environment sections under Project, so it has no Environment tab. */
+function paneLevel(level: SettingLevelId): SettingsPaneLevel {
+ return level === 'environment' ? 'project' : level
+}
+
+function withRailNavigationLink(section: SettingSection): SettingSection {
+ const scene = SETTINGS_SECTION_SCENES.find((s) => s.sectionId === section.id)
+ return scene ? { ...section, to: scene.url } : section
+}
+
export const settingsLogic = kea<settingsLogicType>([
props({} as SettingsLogicProps),
key((props) => props.logicKey ?? 'global'),
@@ -299,6 +316,7 @@ export const settingsLogic = kea<settingsLogicType>([
openCompactNavigation: true,
closeCompactNavigation: true,
setSearchTerm: (searchTerm: string) => ({ searchTerm }),
+ setNavLevel: (level: SettingsPaneLevel) => ({ level }),
toggleLevelCollapse: (level: SettingLevelId) => ({ level }),
toggleGroupCollapse: (group: string) => ({ group }),
expandGroup: (group: string) => ({ group }),
@@ -341,6 +359,15 @@ export const settingsLogic = kea<settingsLogicType>([
},
],
+ navLevel: [
+ 'project' as SettingsPaneLevel,
+ {
+ setNavLevel: (_, { level }) => level,
+ selectLevel: (_, { level }) => paneLevel(level),
+ selectSection: (_, { level }) => paneLevel(level),
+ },
+ ],
+
searchTerm: [
'',
{
@@ -478,6 +505,7 @@ export const settingsLogic = kea<settingsLogicType>([
s.preflight,
s.billingEntryUrl,
s.isAdminOrOwner,
+ s.featureFlags,
],
(
doesMatchFlags: (flagDefinition: Pick<Setting, 'flag'>) => boolean,
@@ -487,7 +515,8 @@ export const settingsLogic = kea<settingsLogicType>([
organizationIntegrations: import('../../types').IntegrationType[] | null,
preflight: null | import('../../types').PreflightStatus,
billingEntryUrl: string | null,
- isAdminOrOwner: boolean | null
+ isAdminOrOwner: boolean | null,
+ featureFlags: FeatureFlagsSet
): SettingSection[] => {
const isSettingVisible = (setting: Setting): boolean => {
if (!doesMatchFlags(setting)) {
@@ -505,7 +534,10 @@ export const settingsLogic = kea<settingsLogicType>([
return true
}
- const sections = SETTINGS_MAP.filter(doesMatchFlags).filter((section) => {
+ const source = featureFlags[FEATURE_FLAGS.TODAY_RAIL_NAV]
+ ? SETTINGS_MAP.map(withRailNavigationLink)
+ : SETTINGS_MAP
+ const sections = source.filter(doesMatchFlags).filter((section) => {
if (section.hideSelfHost && !isCloudOrDev) {
return false
}
@@ -829,6 +861,14 @@ export const settingsLogic = kea<settingsLogicType>([
},
})),
urlToAction(({ actions, values }) => ({
+ // A section with a scene of its own has no section selection, so its route moves the pane to its tab.
+ ...Object.fromEntries(
+ SETTINGS_SECTION_SCENES.flatMap(({ level, url, legacyUrl }) =>
+ [url, legacyUrl]
+ .filter((root): root is string => !!root)
+ .map((root) => [`${root}(/*)`, () => actions.setNavLevel(level)])
+ )
+ ),
['*/replay/settings']: (_, __, hashParams) => {
const { selectedSetting } = hashParams
const selectedSettingId = selectedSetting as SettingId
diff --git a/frontend/src/scenes/settings/settingsNavTree.ts b/frontend/src/scenes/settings/settingsNavTree.ts
new file mode 100644
index 000000000000..b8a59a99393f
--- /dev/null
+++ b/frontend/src/scenes/settings/settingsNavTree.ts
@@ -0,0 +1,51 @@
+import { SettingLevelId, SettingSection } from './types'
+
+export type SettingsNavItem =
+ | { kind: 'section'; section: SettingSection; destructive: boolean }
+ | { kind: 'group'; key: string; label: string; sections: SettingSection[] }
+
+export interface SettingsNavLevel {
+ level: SettingLevelId
+ items: SettingsNavItem[]
+}
+
+export function settingsSectionLabel(section: SettingSection): string {
+ return typeof section.title === 'string' ? section.title : section.id
+}
+
+function isDangerZone(section: SettingSection): boolean {
+ return section.id.endsWith('-danger-zone')
+}
+
+export function settingsNavItems(level: SettingLevelId, sections: SettingSection[]): SettingsNavItem[] {
+ const levelSections = sections.filter((section) => section.level === level)
+ const otherSections = levelSections.filter((section) => !isDangerZone(section))
+
+ const seenGroups = new Set<string>()
+ const items = otherSections.flatMap((section): SettingsNavItem[] => {
+ if (!section.group) {
+ return [{ kind: 'section', section, destructive: false }]
+ }
+ if (seenGroups.has(section.group)) {
+ return []
+ }
+ seenGroups.add(section.group)
+ const groupSections = otherSections.filter((other) => other.group === section.group)
+ // Only the Products group sorts by title, because the AI group lists PostHog AI first on purpose.
+ if (section.group === 'Products') {
+ groupSections.sort((a, b) => settingsSectionLabel(a).localeCompare(settingsSectionLabel(b)))
+ }
+ return [{ kind: 'group', key: `${level}-${section.group}`, label: section.group, sections: groupSections }]
+ })
+
+ return [
+ ...items,
+ ...levelSections
+ .filter(isDangerZone)
+ .map((section): SettingsNavItem => ({ kind: 'section', section, destructive: true })),
+ ]
+}
+
+export function settingsNavTree(levels: SettingLevelId[], sections: SettingSection[]): SettingsNavLevel[] {
+ return levels.map((level) => ({ level, items: settingsNavItems(level, sections) }))
+}
diff --git a/frontend/src/scenes/settings/settingsSectionScenes.ts b/frontend/src/scenes/settings/settingsSectionScenes.ts
new file mode 100644
index 000000000000..a14116c9e533
--- /dev/null
+++ b/frontend/src/scenes/settings/settingsSectionScenes.ts
@@ -0,0 +1,45 @@
+import { isUnderPath } from 'lib/utils/kea-router'
+import { urls } from 'scenes/urls'
+
+import { SettingLevelId, SettingLevelNames, SettingSectionId } from './types'
+
+export type SettingsPaneLevel = Exclude<SettingLevelId, 'environment'>
+
+export interface SettingsSectionScene {
+ sectionId: SettingSectionId
+ level: SettingsPaneLevel
+ url: string
+ /** Where the current navigation links the section. It keeps working, and still counts as the section. */
+ legacyUrl?: string
+}
+
+export const SETTINGS_SECTION_SCENES: SettingsSectionScene[] = [
+ { sectionId: 'environment-exports', level: 'project', url: urls.exports() },
+ { sectionId: 'organization-billing', level: 'organization', url: urls.organizationBilling() },
+ {
+ sectionId: 'organization-legal-documents',
+ level: 'organization',
+ url: urls.organizationLegalDocuments(),
+ legacyUrl: urls.legalDocuments(),
+ },
+ {
+ sectionId: 'organization-startup-program',
+ level: 'organization',
+ url: urls.organizationStartups(),
+ legacyUrl: urls.startups(),
+ },
+]
+
+/** The section whose scene a path opens. Takes a path without the project prefix. */
+export function settingsSectionSceneForPath(path: string): SettingsSectionScene | null {
+ return (
+ SETTINGS_SECTION_SCENES.find(
+ ({ url, legacyUrl }) => isUnderPath(path, url) || (!!legacyUrl && isUnderPath(path, legacyUrl))
+ ) ?? null
+ )
+}
+
+export function settingsSectionSceneScope(sectionId: SettingSectionId): string | undefined {
+ const scene = SETTINGS_SECTION_SCENES.find((s) => s.sectionId === sectionId)
+ return scene ? SettingLevelNames[scene.level] : undefined
+}
diff --git a/frontend/src/scenes/settings/types.ts b/frontend/src/scenes/settings/types.ts
index b8c68aa91dac..a9977cf86293 100644
--- a/frontend/src/scenes/settings/types.ts
+++ b/frontend/src/scenes/settings/types.ts
@@ -23,6 +23,13 @@ export type SettingsLogicProps = {
export const SettingLevelIds = ['environment', 'project', 'organization', 'user'] as const
export type SettingLevelId = (typeof SettingLevelIds)[number]
+export const SettingLevelNames: Record<SettingLevelId, string> = {
+ environment: 'Environment',
+ project: 'Project',
+ organization: 'Organization',
+ user: 'Account',
+} as const
+
export type SettingSectionId =
// Environment
| 'environment-details'
diff --git a/frontend/src/scenes/urls.ts b/frontend/src/scenes/urls.ts
index 3e67e7a83b72..863b9fb387a7 100644
--- a/frontend/src/scenes/urls.ts
+++ b/frontend/src/scenes/urls.ts
@@ -321,6 +321,7 @@ export const urls = {
sessionProfile: (id: string): string => `/sessions/${id}`,
coupons: (campaign: string): string => `/coupons/${campaign}`,
startups: (referrer?: string): string => `/startups${referrer ? `/${referrer}` : ''}`,
+ organizationStartups: (referrer?: string): string => `/organization/startups${referrer ? `/${referrer}` : ''}`,
agenticAuthorize: (): string => '/agentic/authorize',
oauthAuthorize: (): string => '/oauth/authorize',
dataPipelinesNew: (kind?: DataPipelinesNewSceneKind): string => `/pipeline/new/${kind ?? ''}`,
diff --git a/packages/quill/packages/primitives/src/tabs.css b/packages/quill/packages/primitives/src/tabs.css
index 68e07b34b0b2..9820b45dbfad 100644
--- a/packages/quill/packages/primitives/src/tabs.css
+++ b/packages/quill/packages/primitives/src/tabs.css
@@ -21,6 +21,15 @@
border: 1px solid var(--border);
}
+ /*
+ * --background sits below the list's --card in dark mode, so the active tab would sink. Lift it toward the
+ * foreground. Set only here: elsewhere the fill falls back to --background read on the trigger itself, which
+ * callers override per trigger to hide it.
+ */
+ :is(.dark, [theme='dark']) .quill-tabs__list--variant-default {
+ --quill-tabs-active-bg: color-mix(in oklab, var(--foreground) 12%, var(--card));
+ }
+
.quill-tabs__list--variant-line {
gap: 0.25rem;
background-color: transparent;
@@ -46,11 +55,15 @@
.quill-tabs__indicator--variant-default {
z-index: -1;
- background-color: var(--background);
+ background-color: var(--quill-tabs-active-bg, var(--background));
border: 1px solid var(--border);
border-radius: var(--radius-sm);
}
+ :is(.dark, [theme='dark']) .quill-tabs__indicator--variant-default {
+ border-color: color-mix(in oklab, var(--foreground) 15%, transparent);
+ }
+
/* Above the triggers: the active trigger paints an opaque fill down to 1px above the list's edge. */
.quill-tabs__indicator--variant-line {
z-index: 2;
@@ -118,7 +131,7 @@
.quill-tabs__trigger[data-active] {
color: var(--foreground);
- background-color: var(--background) !important;
+ background-color: var(--quill-tabs-active-bg, var(--background)) !important;
}
.quill-tabs__trigger[data-active]:hover,
diff --git a/products/legal_documents/frontend/scenes/LegalDocumentsScene.tsx b/products/legal_documents/frontend/scenes/LegalDocumentsScene.tsx
index 3792ec34850a..f9184a696d38 100644
--- a/products/legal_documents/frontend/scenes/LegalDocumentsScene.tsx
+++ b/products/legal_documents/frontend/scenes/LegalDocumentsScene.tsx
@@ -9,6 +9,7 @@ import { organizationLogic } from 'scenes/organizationLogic'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { sceneConfigurations } from 'scenes/scenes'
import { Scene, SceneExport } from 'scenes/sceneTypes'
+import { settingsSectionSceneScope } from 'scenes/settings/settingsSectionScenes'
import { urls } from 'scenes/urls'
import { SceneContent } from '~/layout/scenes/components/SceneContent'
@@ -86,6 +87,7 @@ export function LegalDocumentsScene(): JSX.Element {
<SceneTitleSection
name={sceneConfigurations[Scene.LegalDocuments].name}
resourceType={{ type: 'default_icon_type', forceIcon: <IconBalance /> }}
+ scope={settingsSectionSceneScope('organization-legal-documents')}
/>
<LemonBanner type="info">
<p className="mb-0">Legal documents are only available on PostHog Cloud.</p>
@@ -101,6 +103,7 @@ export function LegalDocumentsScene(): JSX.Element {
name={sceneConfigurations[Scene.LegalDocuments].name}
description={sceneConfigurations[Scene.LegalDocuments].description}
resourceType={{ type: 'default_icon_type', forceIcon: <IconBalance /> }}
+ scope={settingsSectionSceneScope('organization-legal-documents')}
/>
<LemonBanner type="warning">
<h2 className="mb-2">Admin access required</h2>
@@ -119,6 +122,7 @@ export function LegalDocumentsScene(): JSX.Element {
name={sceneConfigurations[Scene.LegalDocuments].name}
description={sceneConfigurations[Scene.LegalDocuments].description}
resourceType={{ type: 'default_icon_type', forceIcon: <IconBalance /> }}
+ scope={settingsSectionSceneScope('organization-legal-documents')}
actions={
<LemonMenu items={buildNewMenuItems(existingDocumentTypes)} placement="bottom-end">
<LemonButton
diff --git a/products/legal_documents/manifest.tsx b/products/legal_documents/manifest.tsx
index 736deb4d9184..f356a9864a06 100644
--- a/products/legal_documents/manifest.tsx
+++ b/products/legal_documents/manifest.tsx
@@ -20,11 +20,14 @@ export const manifest: ProductManifest = {
routes: {
'/legal': ['LegalDocuments', 'legalDocuments'],
'/legal/new/:type': ['LegalDocumentNew', 'legalDocumentNew'],
+ // The settings navigation's home for the list, next to billing. The /legal routes stay until links move over.
+ '/organization/legal': ['LegalDocuments', 'organizationLegalDocuments'],
},
redirects: {},
urls: {
legalDocuments: (): string => '/legal',
legalDocumentNew: (type: 'BAA' | 'DPA'): string => `/legal/new/${type.toLowerCase()}`,
+ organizationLegalDocuments: (): string => '/organization/legal',
},
fileSystemTypes: {},
treeItemsNew: [],
diff --git a/services/mcp/src/tools/links/app-url-manifest.json b/services/mcp/src/tools/links/app-url-manifest.json
index df6afc14cd69..641e540c60b0 100644
--- a/services/mcp/src/tools/links/app-url-manifest.json
+++ b/services/mcp/src/tools/links/app-url-manifest.json
@@ -1314,11 +1314,21 @@
"params": [],
"scope": "project"
},
+ "organizationLegalDocuments": {
+ "template": "/organization/legal",
+ "params": [],
+ "scope": "global"
+ },
"organizationPendingDeletion": {
"template": "/organization-pending-deletion",
"params": [],
"scope": "project"
},
+ "organizationStartups": {
+ "template": "/organization/startups",
+ "params": [],
+ "scope": "global"
+ },
"passwordReset": {
"template": "/reset",
"params": [],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
index 570462fe50f9..ad5f0127e7c1 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
@@ -13,7 +13,7 @@
"type": "object"
},
"url": {
- "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/scorers\n/ai-evals/evaluations/scorers/{scorerId}\n/ai-evals/evaluations/scorers/{scorerId}/offline\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/autoresearch\n/autoresearch/new\n/autoresearch/{id}\n/bi\n/bi/new\n/bi/{insightShortId}\n/billing/authorization_status\n/broadcasts\n/broadcasts/new\n/broadcasts/{id}\n/business-knowledge\n/business-knowledge/playground\n/business-knowledge/settings\n/business-knowledge/{id}\n/canvas\n/canvases\n/canvases/new\n/canvases/{id}\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/loop/{loopId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/cross-project-dashboards\n/cross-project-dashboards/{id}\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/by-external-id/{externalId}\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/customer_analytics/tasks\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/tiles/{tileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-destinations\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/debug/precompute\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors\n/engineering-analytics/authors/{handle}\n/engineering-analytics/deploys\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}/ci-explorer\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/tests\n/engineering-analytics/workflows\n/error-tracking\n/error-tracking/alerts/new/{templateId}\n/error-tracking/alerts/{id}\n/error-tracking/fingerprint/{fingerprint}\n/error-tracking/{id}\n/etl\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/files\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/games/shipit\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scout-trials\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/missing-capabilities\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-registry\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/metrics/dashboard-review\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/widgets/{widgetId}\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/billing/real-time-usage\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/platform-alerts\n/platform-alerts/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/overview\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/organization-authentication/{feature}/{configId}\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/spaces\n/spaces/new\n/spaces/{id}\n/spaces/{id}/canvases\n/spaces/{id}/new\n/spaces/{id}/settings\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/terminal\n/themes/custom-css\n/toolbar\n/tools\n/tracing\n/tracing/retention-rules/new\n/tracing/retention-rules/{id}\n/unsubscribe\n/verify_email\n/views\n/views/new\n/visual-review\n/visual-review/repos/{repoOwner}/{repoName}/flakiness\n/visual-review/repos/{repoOwner}/{repoName}/runs\n/visual-review/repos/{repoOwner}/{repoName}/runs/{runId}\n/visual-review/repos/{repoOwner}/{repoName}/snapshots\n/visual-review/repos/{repoOwner}/{repoName}/{runType}/snapshots/{identifier}\n/visual-review/runs/{runId}\n/visual-review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/agents\n/web/bots\n/web/content-autopilot\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard/runs\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",
+ "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/scorers\n/ai-evals/evaluations/scorers/{scorerId}\n/ai-evals/evaluations/scorers/{scorerId}/offline\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/autoresearch\n/autoresearch/new\n/autoresearch/{id}\n/bi\n/bi/new\n/bi/{insightShortId}\n/billing/authorization_status\n/broadcasts\n/broadcasts/new\n/broadcasts/{id}\n/business-knowledge\n/business-knowledge/playground\n/business-knowledge/settings\n/business-knowledge/{id}\n/canvas\n/canvases\n/canvases/new\n/canvases/{id}\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/loop/{loopId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/cross-project-dashboards\n/cross-project-dashboards/{id}\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/by-external-id/{externalId}\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/customer_analytics/tasks\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/tiles/{tileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-destinations\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/debug/precompute\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors\n/engineering-analytics/authors/{handle}\n/engineering-analytics/deploys\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}/ci-explorer\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/tests\n/engineering-analytics/workflows\n/error-tracking\n/error-tracking/alerts/new/{templateId}\n/error-tracking/alerts/{id}\n/error-tracking/fingerprint/{fingerprint}\n/error-tracking/{id}\n/etl\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/files\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/games/shipit\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scout-trials\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/missing-capabilities\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-registry\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/metrics/dashboard-review\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/widgets/{widgetId}\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/billing/real-time-usage\n/organization/confirm-creation\n/organization/create-project\n/organization/legal\n/organization/startups\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/platform-alerts\n/platform-alerts/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/overview\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/organization-authentication/{feature}/{configId}\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/spaces\n/spaces/new\n/spaces/{id}\n/spaces/{id}/canvases\n/spaces/{id}/new\n/spaces/{id}/settings\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/terminal\n/themes/custom-css\n/toolbar\n/tools\n/tracing\n/tracing/retention-rules/new\n/tracing/retention-rules/{id}\n/unsubscribe\n/verify_email\n/views\n/views/new\n/visual-review\n/visual-review/repos/{repoOwner}/{repoName}/flakiness\n/visual-review/repos/{repoOwner}/{repoName}/runs\n/visual-review/repos/{repoOwner}/{repoName}/runs/{runId}\n/visual-review/repos/{repoOwner}/{repoName}/snapshots\n/visual-review/repos/{repoOwner}/{repoName}/{runType}/snapshots/{identifier}\n/visual-review/runs/{runId}\n/visual-review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/agents\n/web/bots\n/web/content-autopilot\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard/runs\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",
"type": "string"
}
},