: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
refactor(tools): Rename `apps` to `tools` throughout (#65674)
Rafael Audiberte09da09dbd06
diff --git a/.agents/skills/generating-clickhouse-query-performance-reports/SKILL.md b/.agents/skills/generating-clickhouse-query-performance-reports/SKILL.mdindex e1b28695a51d..53d32da0b428 100644--- a/.agents/skills/generating-clickhouse-query-performance-reports/SKILL.md+++ b/.agents/skills/generating-clickhouse-query-performance-reports/SKILL.md@@ -111,7 +111,7 @@ mentioned. Diff against history only after the independent pass is done.check whether one team or one API key dominates a metric: a single integration querying via a`personal_api_key` can account for the large majority of cluster OOMs, and the "incident" is thenreally one tenant. Attribute by `team_id` + `lc_api_key_label` first. Then add a **top-consumers view- over all queries** (not just the slow set): top teams, top API keys (`lc_api_key_label`), and top apps+ over all queries** (not just the slow set): top teams, top API keys (`lc_api_key_label`), and top tools(`lc_product`) ranked by **bytes, CPU-seconds, and wall-time** (`references/query-patterns.md` §4c).This is where the heavy-but-fast consumers show up: a tenant or integration can dominate cluster CPUor bytes through millions of cheap queries while never crossing the slow threshold, so it is invisible@@ -219,7 +219,7 @@ A report should contain, in order:skill's investigation playbook). Group findings by what they are: a per-tenant incident, theheaviest cluster-time consumers, user-facing insight slowness, and tight-timeout API noise.5. A **top-consumers-by-resource section** (all queries, not just slow): top teams, top API keys, and- top apps (`lc_product`) ranked by bytes / CPU / wall-time (`references/query-patterns.md` §4c), calling+ top tools (`lc_product`) ranked by bytes / CPU / wall-time (`references/query-patterns.md` §4c), callingout consumers that never trip the slow threshold and the compute-bound vs wait-bound split.6. A **JSON-extracted property table**: the top event and person property names pulled from JSON blobsin the slow set, with the teams using each (`references/query-patterns.md` §7). These are thediff --git a/.agents/skills/generating-clickhouse-query-performance-reports/references/query-patterns.md b/.agents/skills/generating-clickhouse-query-performance-reports/references/query-patterns.mdindex 84313676f0e4..1a77c7cf4437 100644--- a/.agents/skills/generating-clickhouse-query-performance-reports/references/query-patterns.md+++ b/.agents/skills/generating-clickhouse-query-performance-reports/references/query-patterns.md@@ -177,7 +177,7 @@ GROUP BY day ORDER BY dayAttribute total cluster resource use across **all** `is_initial_query` queries, not just the slow set:this catches consumers that cost the cluster through many cheap queries without ever crossing the slow-threshold (and so are invisible to 4a/4b). Report top teams, top API keys, and top apps by **all three of+threshold (and so are invisible to 4a/4b). Report top teams, top API keys, and top tools by **all three ofbytes / CPU / wall-time** (the leader differs by metric). Use the typed`ProfileEvents_OSCPUVirtualTimeMicroseconds` column, not the `Map` lookup (§1b). Re-run each block with adifferent `ORDER BY` (`cpu_hours`, `sum(read_bytes)`, `query_hours`) to get the per-metric leaders. The@@ -210,7 +210,7 @@ GROUP BY lc_api_key_label ORDER BY cpu_hours DESC LIMIT 15``````sql--- top apps (lc_product), cluster-wide (this is the all-query counterpart to the §3 slow-set categories)+-- top tools (lc_product), cluster-wide (this is the all-query counterpart to the §3 slow-set categories)SELECT lc_product,round(sum(query_duration_ms)/3600000, 0) AS query_hours,round(sum(ProfileEvents_OSCPUVirtualTimeMicroseconds)/3.6e9, 0) AS cpu_hours,diff --git a/frontend/src/layout/GlobalShortcuts.tsx b/frontend/src/layout/GlobalShortcuts.tsxindex c2a510dfa900..af30f0424782 100644--- a/frontend/src/layout/GlobalShortcuts.tsx+++ b/frontend/src/layout/GlobalShortcuts.tsx@@ -2,13 +2,13 @@ import { useActions, useValues } from 'kea'import { router } from 'kea-router'import { newAccountMenuLogic } from 'lib/components/Account/newAccountMenuLogic'-import { appShortcutLogic } from 'lib/components/AppShortcuts/appShortcutLogic'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'-import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'-import { openCHQueriesDebugModal } from 'lib/components/AppShortcuts/utils/DebugCHQueries'import { commandLogic } from 'lib/components/Command/commandLogic'import { openJumpToTimestampModal } from 'lib/components/DateFilter/openJumpToTimestampModal'import { helpMenuLogic } from 'lib/components/HelpMenu/helpMenuLogic'+import { shortcutLogic } from 'lib/components/Shortcuts/shortcutLogic'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'+import { useShortcut } from 'lib/components/Shortcuts/useShortcut'+import { openCHQueriesDebugModal } from 'lib/components/Shortcuts/utils/DebugCHQueries'import { superpowersLogic } from 'lib/components/Superpowers/superpowersLogic'import { removeProjectIdIfPresent } from 'lib/utils/kea-router'import { urls } from 'scenes/urls'@@ -22,9 +22,9 @@ import { sceneLayoutLogic } from './scenes/sceneLayoutLogic'export function GlobalShortcuts(): null {const { superpowersEnabled } = useValues(superpowersLogic)- const { appShortcutMenuOpen } = useValues(appShortcutLogic)+ const { shortcutMenuOpen } = useValues(shortcutLogic)const { scenePanelIsPresent } = useValues(sceneLayoutLogic)- const { setAppShortcutMenuOpen } = useActions(appShortcutLogic)+ const { setShortcutMenuOpen } = useActions(shortcutLogic)const { toggleZenMode } = useActions(navigation3000Logic)const { toggleCommand } = useActions(commandLogic)const { toggleHelpMenu } = useActions(helpMenuLogic)@@ -37,7 +37,7 @@ export function GlobalShortcuts(): null {// Open Info tab if scene has panel content, otherwise default to PostHog AIconst defaultTab = scenePanelIsPresent ? SidePanelTab.Info : SidePanelTab.Max- useAppShortcut({+ useShortcut({name: 'Search',keybind: [keyBinds.search],intent: 'Search',@@ -48,15 +48,15 @@ export function GlobalShortcuts(): null {priority: 10,})- useAppShortcut({+ useShortcut({name: 'ToggleShortcutMenu',keybind: [keyBinds.toggleShortcutMenu, keyBinds.toggleShortcutMenuFallback],intent: 'Toggle shortcut menu',interaction: 'function',- callback: () => setAppShortcutMenuOpen(!appShortcutMenuOpen),+ callback: () => setShortcutMenuOpen(!shortcutMenuOpen),})- useAppShortcut({+ useShortcut({name: 'DebugClickhouseQueries',keybind: [['command', 'option', 'tab']],intent: 'Debug clickhouse queries',@@ -65,7 +65,7 @@ export function GlobalShortcuts(): null {disabled: !superpowersEnabled,})- useAppShortcut({+ useShortcut({name: 'Superpowers',keybind: [['command', 'shift', 'p']],intent: 'Open superpowers panel',@@ -74,7 +74,7 @@ export function GlobalShortcuts(): null {disabled: !superpowersEnabled,})- useAppShortcut({+ useShortcut({name: 'ZenMode',keybind: [keyBinds.zenMode],intent: 'Toggle zen mode',@@ -82,7 +82,7 @@ export function GlobalShortcuts(): null {callback: toggleZenMode,})- useAppShortcut({+ useShortcut({name: 'SQLEditor',keybind: [keyBinds.sqlEditor],intent: 'Open SQL editor',@@ -94,7 +94,7 @@ export function GlobalShortcuts(): null {},})- useAppShortcut({+ useShortcut({name: 'toggle-context-panel',keybind: [keyBinds.toggleRightNav],intent: 'Toggle context panel',@@ -108,7 +108,7 @@ export function GlobalShortcuts(): null {},})- useAppShortcut({+ useShortcut({name: 'toggle-help-menu',keybind: [keyBinds.helpMenu],intent: 'Toggle help menu',@@ -116,7 +116,7 @@ export function GlobalShortcuts(): null {callback: () => toggleHelpMenu(),})- useAppShortcut({+ useShortcut({name: 'toggle-new-account-menu',keybind: [keyBinds.newAccountMenu],intent: 'Toggle new account menu',@@ -124,7 +124,7 @@ export function GlobalShortcuts(): null {callback: () => toggleAccountMenu(),})- useAppShortcut({+ useShortcut({name: 'toggle-project-switcher',keybind: [keyBinds.projectSwitcher],intent: 'Toggle project switcher',@@ -132,7 +132,7 @@ export function GlobalShortcuts(): null {callback: () => toggleProjectSwitcher(),})- useAppShortcut({+ useShortcut({name: 'toggle-org-switcher',keybind: [keyBinds.orgSwitcher],intent: 'Toggle organization switcher',@@ -140,7 +140,7 @@ export function GlobalShortcuts(): null {callback: () => toggleOrgSwitcher(),})- useAppShortcut({+ useShortcut({name: 'toggle-theme',keybind: [keyBinds.theme],intent: 'Toggle theme (dark / light)',@@ -148,7 +148,7 @@ export function GlobalShortcuts(): null {callback: () => toggleTheme(),})- useAppShortcut({+ useShortcut({name: 'jump-to-timestamp',keybind: [keyBinds.jumpToTimestamp],intent: 'Jump to timestamp',diff --git a/frontend/src/layout/navigation-3000/sidepanel/SidePanelNavigation.tsx b/frontend/src/layout/navigation-3000/sidepanel/SidePanelNavigation.tsxindex 3007aba6899e..70e81d0c31a5 100644--- a/frontend/src/layout/navigation-3000/sidepanel/SidePanelNavigation.tsx+++ b/frontend/src/layout/navigation-3000/sidepanel/SidePanelNavigation.tsx@@ -4,8 +4,8 @@ import { useActions, useValues } from 'kea'import { IconSparkles, IconX } from '@posthog/icons'import { Tooltip } from '@posthog/lemon-ui'-import { RenderKeybind } from 'lib/components/AppShortcuts/AppShortcutMenu'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { RenderKeybind } from 'lib/components/Shortcuts/ShortcutMenu'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'import { cn } from 'lib/utils/css-classes'diff --git a/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.tsx b/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.tsxindex 3f1c76bc5a79..c12a2ab33a6d 100644--- a/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.tsx+++ b/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.tsx@@ -34,7 +34,7 @@ export function EditCustomProductsModal(): JSX.Element {<LemonModalisOpen={isOpen}onClose={closeModal}- title="Edit my sidebar apps"+ title="Edit sidebar tools"footer={<LemonButton type="secondary" onClick={closeModal}>Close@@ -45,7 +45,7 @@ export function EditCustomProductsModal(): JSX.Element {<div className="flex flex-col gap-2"><div><p className="text-sm text-muted">- Select which products you want to see in your sidebar. You can change this anytime.+ Select which tools you want to see in your sidebar. You can change this anytime.{customProductsLoading && <Spinner />}</p></div>@@ -67,7 +67,7 @@ export function EditCustomProductsModal(): JSX.Element {onChange={() => toggleCategory(category)}disabledReason={category === 'Unreleased'- ? 'These products are in Alpha, enable them one by one'+ ? 'These tools are in Alpha, enable them one by one': categoryLoading? 'Saving...': customProductsLoading && customProducts.length === 0@@ -140,14 +140,14 @@ export function EditCustomProductsModal(): JSX.Element {disabledReason={sidebarSuggestionsLoading ? 'Saving...' : undefined}label={<span className="flex items-center gap-2">- <span>Automatically suggest new products</span>+ <span>Automatically suggest new tools</span></span>}/><span className="text-sm text-muted">- When we detect you are using a new product, we'll automatically add it to your sidebar as a- suggestion. We might also suggest products that are related to the ones you are using when we- launch a new product.+ When we detect you are using a new tool, we'll automatically add it to your sidebar as a+ suggestion. We might also suggest tools that are related to the ones you are using when we+ launch a new one.<br />You can always remove these suggestions later.</span>@@ -155,20 +155,20 @@ export function EditCustomProductsModal(): JSX.Element {<div className="flex flex-col items-start gap-2 border-t pt-4"><div className="flex flex-col gap-2 w-full">- <label className="text-sm font-semibold text-tertiary">Shortcut position</label>+ <label className="text-sm font-semibold text-tertiary">Starred items position</label><LemonSelect<UserShortcutPosition>value={shortcutPosition}onChange={(value) => setShortcutPosition(value)}options={[- { label: 'Above products', value: 'above' },- { label: 'Below products', value: 'below' },+ { label: 'Above tools', value: 'above' },+ { label: 'Below tools', value: 'below' },{ label: 'Hidden', value: 'hidden' },]}disabledReason={shortcutPositionLoading ? 'Saving...' : undefined}fullWidth/><span className="text-sm text-muted">- Choose where shortcuts appear in your sidebar when using custom products.+ Choose where starred items appear in your sidebar when using custom tools.</span></div></div>diff --git a/frontend/src/layout/panel-layout/PinnedFolder/PinnedFolder.tsx b/frontend/src/layout/panel-layout/PinnedFolder/PinnedFolder.tsxindex 0eb45901edfe..48c44407f9eb 100644--- a/frontend/src/layout/panel-layout/PinnedFolder/PinnedFolder.tsx+++ b/frontend/src/layout/panel-layout/PinnedFolder/PinnedFolder.tsx@@ -58,11 +58,11 @@ export function PinnedFolder(): JSX.Element {{pinnedFolder === 'custom-products://' ? (<ButtonPrimitiveiconOnly- tooltip="Edit my sidebar apps"+ tooltip="Edit sidebar tools"tooltipPlacement="top"onClick={openEditCustomProductsModal}size="xs"- data-attr="edit-sidebar-apps-button"+ data-attr="edit-sidebar-tools-button"><CustomProductsIcon className="size-3 text-secondary" /></ButtonPrimitive>@@ -94,7 +94,7 @@ export function PinnedFolder(): JSX.Element {data-attr="tree-item-menu-open-link-button"><ButtonPrimitive menuItem>- All apps + All tools <SelectedIcon checked={!pinnedFolder || pinnedFolder === 'products://'} /></ButtonPrimitive></DropdownMenuItem>diff --git a/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx b/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsxindex 5ede630c878d..b568bd4eacb2 100644--- a/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx@@ -242,7 +242,7 @@ export function ProjectTree({}if (root === 'custom-products://') {- const hasRecommendedProducts = customProducts.some(+ const hasRecommendedTools = customProducts.some((item) =>item.reason === UserProductListReason.USED_BY_COLLEAGUES ||item.reason === UserProductListReason.USED_ON_SEPARATE_TEAM@@ -259,10 +259,10 @@ export function ProjectTree({type: 'category',displayName: (<div className={cn('border border-primary text-xs mb-2 font-normal rounded-xs p-2 -mx-1')}>- You can display your preferred apps here. You can configure what items show up in here by+ You can display your preferred tools here. You can configure what items show up in here byclicking on the{' '}<IconPencil className="size-3 border border-[var(--color-neutral-500)] rounded-xs" /> icon- above. We'll automatically suggest new apps to this list as you use them.{' '}+ above. We'll automatically suggest new tools to this list as you use them.{' '}{fullFileSystemFiltered.length > 0 && (<spanclassName="cursor-pointer underline"@@ -271,12 +271,12 @@ export function ProjectTree({Dismiss.</span>)}- {!hasRecommendedProducts && fullFileSystemFiltered.length <= 3 && (+ {!hasRecommendedTools && fullFileSystemFiltered.length <= 3 && (<><br /><br /><span className="cursor-pointer underline" onClick={seed}>- {customProductsLoading ? 'Adding...' : 'Add recommended products?'}+ {customProductsLoading ? 'Adding...' : 'Add recommended tools?'}</span></>)}@@ -290,7 +290,7 @@ export function ProjectTree({type: 'category',displayName: (<div className="border border-primary text-xs mb-2 font-normal rounded-xs p-2 -mx-1">- Want to browse all apps or jump back into something recent? Press{' '}+ Want to browse all tools or jump back into something recent? Press{' '}<spanclassName="cursor-pointer inline-flex items-center gap-1"onClick={() => toggleCommand()}diff --git a/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx b/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsxindex 35fd9d68d860..9473d77f4ff2 100644--- a/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx@@ -285,7 +285,7 @@ const iconTypes: Record<FileSystemIconType, { icon: JSX.Element; iconColor?: Filicon: <IconNotification />,iconColor: ['var(--color-product-activity-light)', 'var(--color-product-activity-dark)'],},- apps: {+ tools: {icon: <IconApps />,},live: {diff --git a/frontend/src/layout/panel-layout/ProjectTree/menus/RecentItemsMenu.tsx b/frontend/src/layout/panel-layout/ProjectTree/menus/RecentItemsMenu.tsxindex 9f03128df3da..b7579a2b9d20 100644--- a/frontend/src/layout/panel-layout/ProjectTree/menus/RecentItemsMenu.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/menus/RecentItemsMenu.tsx@@ -4,9 +4,9 @@ import { useState } from 'react'import { IconClock } from '@posthog/icons'import { Link } from '@posthog/lemon-ui'-import { keybindToKeyboardShortcutProps } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'-import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'+import { keybindToKeyboardShortcutProps } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'+import { useShortcut } from 'lib/components/Shortcuts/useShortcut'import { Spinner } from 'lib/lemon-ui/Spinner/Spinner'import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'import {@@ -40,7 +40,7 @@ export function RecentItemsMenu(): JSX.Element {setIsOpen(open)}- useAppShortcut({+ useShortcut({name: 'recent-items-menu',keybind: [keyBinds.recentItems],intent: 'Open recent items menu',diff --git a/frontend/src/layout/panel-layout/ai-first/Nav.tsx b/frontend/src/layout/panel-layout/ai-first/Nav.tsxindex 4ce105867e1f..0297b3ac95d3 100644--- a/frontend/src/layout/panel-layout/ai-first/Nav.tsx+++ b/frontend/src/layout/panel-layout/ai-first/Nav.tsx@@ -8,11 +8,11 @@ import { lazy, Suspense, useEffect, useRef } from 'react'import { IconApps, IconChat, IconChevronRight, IconPlusSmall } from '@posthog/icons'import { NewAccountMenu } from 'lib/components/Account/NewAccountMenu'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'-import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'import { commandLogic } from 'lib/components/Command/commandLogic'import { Resizer } from 'lib/components/Resizer/Resizer'import { ResizerLogicProps, resizerLogic } from 'lib/components/Resizer/resizerLogic'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'+import { useShortcut } from 'lib/components/Shortcuts/useShortcut'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonButton } from 'lib/lemon-ui/LemonButton'import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'@@ -146,7 +146,7 @@ export function Nav(): JSX.Element {}}, [openWidth, isLayoutNavCollapsed, isMobileLayout, setNavbarWidth])- useAppShortcut({+ useShortcut({name: 'ToggleLeftNav',keybind: [keyBinds.toggleLeftNav],intent: 'Toggle collapse left navigation',diff --git a/frontend/src/layout/panel-layout/ai-first/PanelLayoutPanels.tsx b/frontend/src/layout/panel-layout/ai-first/PanelLayoutPanels.tsxindex 922b5006e21f..0a3a733534b2 100644--- a/frontend/src/layout/panel-layout/ai-first/PanelLayoutPanels.tsx+++ b/frontend/src/layout/panel-layout/ai-first/PanelLayoutPanels.tsx@@ -27,7 +27,7 @@ export function PanelLayoutPanels(): JSX.Element | null {)}if (activePanelIdentifier === 'Products') {- return <ProjectTree root="products://" searchPlaceholder="Search apps" />+ return <ProjectTree root="products://" searchPlaceholder="Search tools" />}if (activePanelIdentifier === 'Shortcuts') {return <ProjectTree root="shortcuts://" searchPlaceholder="Search starred items" />diff --git a/frontend/src/layout/panel-layout/ai-first/tabs/NavTabBrowse.tsx b/frontend/src/layout/panel-layout/ai-first/tabs/NavTabBrowse.tsxindex 11b8ec53ba5f..335f20bc2218 100644--- a/frontend/src/layout/panel-layout/ai-first/tabs/NavTabBrowse.tsx+++ b/frontend/src/layout/panel-layout/ai-first/tabs/NavTabBrowse.tsx@@ -42,7 +42,7 @@ import { ActivityTab } from '~/types'import { BrowserLikeMenuItems } from '../../ProjectTree/menus/BrowserLikeMenuItems'import { PanelIndicatorIcon, SectionTrigger } from '../Nav'-import { inlineEditAppsLogic } from './inlineEditAppsLogic'+import { inlineEditToolsLogic } from './inlineEditToolsLogic'import { navRecentsLogic } from './navRecentsLogic'const panelTriggerItems: {@@ -62,7 +62,7 @@ const panelTriggerItems: {},{identifier: 'Products',- label: 'Apps',+ label: 'Tools',icon: <IconApps />,},{@@ -163,8 +163,8 @@ export function NavTabBrowse(): JSX.Element {} = useValues(panelLayoutLogic)const isProductAutonomyEnabled = useFeatureFlag('PRODUCT_AUTONOMY')const { recentItems, recentItemsLoading } = useValues(navRecentsLogic)- const { isEditMode, checkedItems } = useValues(inlineEditAppsLogic)- const { enterEditMode, saveAndExitEditMode, toggleProduct } = useActions(inlineEditAppsLogic)+ const { isEditMode, checkedTools } = useValues(inlineEditToolsLogic)+ const { enterEditMode, saveAndExitEditMode, toggleTool } = useActions(inlineEditToolsLogic)const { showConfigureHomeModal } = useActions(navigationLogic)const currentPath = removeProjectIdIfPresent(pathname)@@ -365,35 +365,35 @@ export function NavTabBrowse(): JSX.Element {{!isLayoutNavCollapsed && (<Collapsible- open={expandedNavSections.apps ?? false}+ open={expandedNavSections.tools ?? false}onOpenChange={() => {posthog.capture('nav section toggled', {- section: 'apps',- is_open: !expandedNavSections.apps,+ section: 'tools',+ is_open: !expandedNavSections.tools,})- toggleNavSection('apps')+ toggleNavSection('tools')}}className="mt-2 group/colorful-product-icons colorful-product-icons-true"- data-attr="nav-section-apps"+ data-attr="nav-section-tools"><div className="relative">- <SectionTrigger icon={<IconApps />} label="My Apps" isCollapsed={isLayoutNavCollapsed} />- {expandedNavSections.apps && (+ <SectionTrigger icon={<IconApps />} label="My Tools" isCollapsed={isLayoutNavCollapsed} />+ {expandedNavSections.tools && (<ButtonPrimitiveiconOnlysize="xs"- tooltip={isEditMode ? 'Save' : 'Choose which apps to show in the sidebar'}+ tooltip={isEditMode ? 'Save' : 'Choose which tools to show in the sidebar'}tooltipPlacement="top"onClick={() => {if (isEditMode) {- posthog.capture('nav apps edit saved')+ posthog.capture('nav tools edit saved')saveAndExitEditMode()} else {- posthog.capture('nav apps edit toggled', { is_editing: true })+ posthog.capture('nav tools edit toggled', { is_editing: true })enterEditMode()}}}- data-attr="nav-apps-edit-button"+ data-attr="nav-tools-edit-button"className="absolute right-1 top-0 bottom-0 my-auto rounded-[var(--radius)] z-5">{isEditMode ? (@@ -405,19 +405,19 @@ export function NavTabBrowse(): JSX.Element {)}</div><Collapsible.Panel className="-ml-2 pl-3 pr-1 w-[calc(100%+(var(--spacing)*4))]">- {(expandedNavSections.apps ?? false) && (+ {(expandedNavSections.tools ?? false) && (<ProjectTreeroot={isEditMode ? 'products://' : 'custom-products://'}onlyTreetreeSize={isLayoutNavCollapsed ? 'narrow' : 'default'}selectModeOverride={isEditMode ? 'multi' : undefined}- checkedItemsOverride={isEditMode ? checkedItems : undefined}+ checkedItemsOverride={isEditMode ? checkedTools : undefined}onItemCheckedOverride={isEditMode? (id) => {// Tree item IDs for products:// are "products/{path}"- const productPath = id.replace(/^products\//, '')- toggleProduct(productPath)+ const toolPath = id.replace(/^products\//, '')+ toggleTool(toolPath)}: undefined}diff --git a/frontend/src/layout/panel-layout/ai-first/tabs/inlineEditAppsLogic.ts b/frontend/src/layout/panel-layout/ai-first/tabs/inlineEditToolsLogic.tssimilarity index 76%rename from frontend/src/layout/panel-layout/ai-first/tabs/inlineEditAppsLogic.tsrename to frontend/src/layout/panel-layout/ai-first/tabs/inlineEditToolsLogic.tsindex 4ce0ca66e8a1..736cae83007b 100644--- a/frontend/src/layout/panel-layout/ai-first/tabs/inlineEditAppsLogic.ts+++ b/frontend/src/layout/panel-layout/ai-first/tabs/inlineEditToolsLogic.ts@@ -8,12 +8,12 @@ import { customProductsLogic } from '~/layout/panel-layout/ProjectTree/customProimport { getItemId } from '~/layout/panel-layout/ProjectTree/utils'import { UserProductListItem, UserProductListReason } from '~/queries/schema/schema-general'-import type { inlineEditAppsLogicType } from './inlineEditAppsLogicType'+import type { inlineEditToolsLogicType } from './inlineEditToolsLogicType'const PRODUCTS_ROOT = 'products://'-export const inlineEditAppsLogic = kea<inlineEditAppsLogicType>([- path(['layout', 'panel-layout', 'ai-first', 'tabs', 'inlineEditAppsLogic']),+export const inlineEditToolsLogic = kea<inlineEditToolsLogicType>([+ path(['layout', 'panel-layout', 'ai-first', 'tabs', 'inlineEditToolsLogic']),connect(() => ({values: [customProductsLogic, ['customProducts']],actions: [customProductsLogic, ['loadCustomProducts', 'loadCustomProductsSuccess']],@@ -21,7 +21,7 @@ export const inlineEditAppsLogic = kea<inlineEditAppsLogicType>([actions({enterEditMode: true,saveAndExitEditMode: true,- toggleProduct: (productPath: string) => ({ productPath }),+ toggleTool: (toolPath: string) => ({ toolPath }),setLocalToggles: (toggles: Record<string, boolean>) => ({ toggles }),}),reducers({@@ -46,7 +46,7 @@ export const inlineEditAppsLogic = kea<inlineEditAppsLogicType>([(customProducts): Set<string> =>new Set(customProducts.map((item: { product_path: string }) => item.product_path)),],- checkedItems: [+ checkedTools: [(s) => [s.customProducts, s.localToggles],(customProducts, localToggles): Record<string, boolean> => {const result: Record<string, boolean> = {}@@ -54,25 +54,27 @@ export const inlineEditAppsLogic = kea<inlineEditAppsLogicType>([const id = getItemId({ path: item.product_path, type: '' }, PRODUCTS_ROOT)result[id] = true}- for (const [productPath, enabled] of Object.entries(localToggles)) {- const id = getItemId({ path: productPath, type: '' }, PRODUCTS_ROOT)++ for (const [toolPath, enabled] of Object.entries(localToggles)) {+ const id = getItemId({ path: toolPath, type: '' }, PRODUCTS_ROOT)result[id] = enabled}+return result},],}),listeners(({ actions, values }) => ({- toggleProduct: ({ productPath }) => {- const serverState = values.selectedPaths.has(productPath)- const currentState = productPath in values.localToggles ? values.localToggles[productPath] : serverState+ toggleTool: ({ toolPath }) => {+ const serverState = values.selectedPaths.has(toolPath)+ const currentState = toolPath in values.localToggles ? values.localToggles[toolPath] : serverStateconst newState = !currentStateconst localToggles = { ...values.localToggles }if (newState === serverState) {- delete localToggles[productPath]+ delete localToggles[toolPath]} else {- localToggles[productPath] = newState+ localToggles[toolPath] = newState}actions.setLocalToggles(localToggles)},@@ -86,11 +88,11 @@ export const inlineEditAppsLogic = kea<inlineEditAppsLogicType>([const updated: UserProductListItem[] = values.customProducts.filter((item) => !(item.product_path in toggles) || toggles[item.product_path])- for (const [productPath, enabled] of entries) {- if (enabled && !existingPaths.has(productPath)) {+ for (const [toolPath, enabled] of entries) {+ if (enabled && !existingPaths.has(toolPath)) {updated.push({id: '',- product_path: productPath,+ product_path: toolPath,enabled: true,reason: UserProductListReason.PRODUCT_INTENT,reason_text: null,@@ -103,10 +105,10 @@ export const inlineEditAppsLogic = kea<inlineEditAppsLogicType>([try {await api.userProductList.bulkUpdate(- entries.map(([productPath, enabled]) => ({ product_path: productPath, enabled }))+ entries.map(([toolPath, enabled]) => ({ product_path: toolPath, enabled })))} catch (error) {- console.error('Failed to save product changes:', error)+ console.error('Failed to save tool changes:', error)lemonToast.error('Failed to save some changes. Try again?')}// Refresh with real server data to replace optimistic placeholdersdiff --git a/frontend/src/layout/panel-layout/panelLayoutLogic.tsx b/frontend/src/layout/panel-layout/panelLayoutLogic.tsxindex 4084ba3ca720..703a4b6bfe22 100644--- a/frontend/src/layout/panel-layout/panelLayoutLogic.tsx+++ b/frontend/src/layout/panel-layout/panelLayoutLogic.tsx@@ -172,8 +172,8 @@ export const panelLayoutLogic = kea<panelLayoutLogicType>([},],expandedNavSections: [- { ai: true, project: true, files: true, favorites: false, apps: true } as Record<string, boolean>,- { persist: true },+ { ai: true, project: true, files: true, favorites: false, tools: true } as Record<string, boolean>,+ { persist: true, prefix: 'v2.' },{toggleNavSection: (state, { section }) => ({...state,diff --git a/frontend/src/layout/scenes/SceneLayout.tsx b/frontend/src/layout/scenes/SceneLayout.tsxindex ae36d3b7b38f..e826da5488d2 100644--- a/frontend/src/layout/scenes/SceneLayout.tsx+++ b/frontend/src/layout/scenes/SceneLayout.tsx@@ -6,7 +6,7 @@ import { createPortal } from 'react-dom'import { LemonDivider } from '@posthog/lemon-ui'-import { AppShortcutMenu } from 'lib/components/AppShortcuts/AppShortcutMenu'+import { ShortcutMenu } from 'lib/components/Shortcuts/ShortcutMenu'import { Label, LabelProps } from 'lib/ui/Label/Label'import { cn } from 'lib/utils/css-classes'import { SceneConfig } from 'scenes/sceneTypes'@@ -81,7 +81,7 @@ export function SceneLayout({ children, sceneConfig }: SceneLayoutProps): JSX.El<>{children}- <AppShortcutMenu />+ <ShortcutMenu /></>)}diff --git a/frontend/src/layout/scenes/components/SceneTitleSection.tsx b/frontend/src/layout/scenes/components/SceneTitleSection.tsxindex b7d07e44e215..70f162d08d49 100644--- a/frontend/src/layout/scenes/components/SceneTitleSection.tsx+++ b/frontend/src/layout/scenes/components/SceneTitleSection.tsx@@ -15,9 +15,9 @@ import {} from '@posthog/icons'import { Tooltip } from '@posthog/lemon-ui'-import { RenderKeybind } from 'lib/components/AppShortcuts/AppShortcutMenu'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { ProductSetupButton } from 'lib/components/ProductSetup'+import { RenderKeybind } from 'lib/components/Shortcuts/ShortcutMenu'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'import { ButtonPrimitive, buttonPrimitiveVariants } from 'lib/ui/Button/ButtonPrimitives'import { TextareaPrimitive } from 'lib/ui/TextareaPrimitive/TextareaPrimitive'diff --git a/frontend/src/lib/components/Account/AccountMenu.tsx b/frontend/src/lib/components/Account/AccountMenu.tsxindex 58fd2db3259c..ae5603909dfb 100644--- a/frontend/src/lib/components/Account/AccountMenu.tsx+++ b/frontend/src/lib/components/Account/AccountMenu.tsx@@ -58,8 +58,8 @@ import { AccessLevelIndicator } from '~/layout/navigation/AccessLevelIndicator'import { getTreeItemsGames } from '~/products'import { UserTheme } from '~/types'-import { appShortcutLogic } from '../AppShortcuts/appShortcutLogic'-import { openCHQueriesDebugModal } from '../AppShortcuts/utils/DebugCHQueries'+import { shortcutLogic } from '../Shortcuts/shortcutLogic'+import { openCHQueriesDebugModal } from '../Shortcuts/utils/DebugCHQueries'import { OrgCombobox } from './OrgCombobox'interface AccountMenuProps extends DropdownMenuContentProps {@@ -146,7 +146,7 @@ export function AccountMenu({ trigger, ...props }: AccountMenuProps): JSX.Elemenconst { reportInviteMembersButtonClicked } = useActions(eventUsageLogic)const { reportAccountOwnerClicked } = useActions(eventUsageLogic)const { logout } = useActions(userLogic)- const { setAppShortcutMenuOpen } = useActions(appShortcutLogic)+ const { setShortcutMenuOpen } = useActions(shortcutLogic)const { toggleZenMode } = useActions(navigation3000Logic)return (@@ -328,7 +328,7 @@ export function AccountMenu({ trigger, ...props }: AccountMenuProps): JSX.Elemen<ButtonPrimitivetooltip="Open shortcut menu"tooltipPlacement="right"- onClick={() => setAppShortcutMenuOpen(true)}+ onClick={() => setShortcutMenuOpen(true)}menuItem><span className="size-4 flex items-center justify-center">⌘</span>diff --git a/frontend/src/lib/components/Account/NewAccountMenu.tsx b/frontend/src/lib/components/Account/NewAccountMenu.tsxindex 3f72b5fff391..2d3ede1facef 100644--- a/frontend/src/lib/components/Account/NewAccountMenu.tsx+++ b/frontend/src/lib/components/Account/NewAccountMenu.tsx@@ -33,9 +33,9 @@ import { userLogic } from 'scenes/userLogic'import { globalModalsLogic } from '~/layout/globalModalsLogic'import { AvailableFeature } from '~/types'-import { RenderKeybind } from '../AppShortcuts/AppShortcutMenu'-import { keyBinds } from '../AppShortcuts/shortcuts'import { ScrollableShadows } from '../ScrollableShadows/ScrollableShadows'+import { RenderKeybind } from '../Shortcuts/ShortcutMenu'+import { keyBinds } from '../Shortcuts/shortcuts'import { upgradeModalLogic } from '../UpgradeModal/upgradeModalLogic'import { newAccountMenuLogic } from './newAccountMenuLogic'import { OrgModal } from './OrgModal'diff --git a/frontend/src/lib/components/HedgehogMode/HedgehogMode.tsx b/frontend/src/lib/components/HedgehogMode/HedgehogMode.tsxindex 833cd27b6ff3..ed6f6ef1732b 100644--- a/frontend/src/lib/components/HedgehogMode/HedgehogMode.tsx+++ b/frontend/src/lib/components/HedgehogMode/HedgehogMode.tsx@@ -6,7 +6,7 @@ import { inStorybook } from 'lib/utils/dom'import { themeLogic } from '~/layout/navigation-3000/themeLogic'import { toolbarConfigLogic } from '~/toolbar/toolbarConfigLogic'-import { useAppShortcut } from '../AppShortcuts/useAppShortcut'+import { useShortcut } from '../Shortcuts/useShortcut'import { hedgehogModeLogic } from './hedgehogModeLogic'import { HedgehogModeConfig } from './types'@@ -64,7 +64,7 @@ export function HedgehogMode({ enabledOverride }: HedgehogModeProps): JSX.Elemen},}- useAppShortcut({+ useShortcut({name: 'ToggleHedgehogMode',keybind: [],intent: 'Toggle hedgehog mode',diff --git a/frontend/src/lib/components/HelpMenu/HelpMenu.tsx b/frontend/src/lib/components/HelpMenu/HelpMenu.tsxindex a149744b4074..aac1c210514d 100644--- a/frontend/src/lib/components/HelpMenu/HelpMenu.tsx+++ b/frontend/src/lib/components/HelpMenu/HelpMenu.tsx@@ -40,12 +40,12 @@ import { SidePanelTab } from '~/types'import { SidePanelQuestionIcon } from 'products/conversations/frontend/components/SidePanel/SidePanelQuestionIcon'import { SidePanelSupportIcon } from 'products/conversations/frontend/components/SidePanel/SidePanelSupportIcon'-import { appShortcutLogic } from '../AppShortcuts/appShortcutLogic'-import { RenderKeybind } from '../AppShortcuts/AppShortcutMenu'-import { keyBinds } from '../AppShortcuts/shortcuts'-import { openCHQueriesDebugModal } from '../AppShortcuts/utils/DebugCHQueries'import { ThemeMenu } from '../Menus/ThemeMenu'import { ScrollableShadows } from '../ScrollableShadows/ScrollableShadows'+import { shortcutLogic } from '../Shortcuts/shortcutLogic'+import { RenderKeybind } from '../Shortcuts/ShortcutMenu'+import { keyBinds } from '../Shortcuts/shortcuts'+import { openCHQueriesDebugModal } from '../Shortcuts/utils/DebugCHQueries'import { healthSummaryLogic } from './healthSummaryLogic'import { helpMenuLogic } from './helpMenuLogic'import { posthogStatusLogic } from './posthogStatusLogic'@@ -55,7 +55,7 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elemconst { isHelpMenuOpen, triggerBadgeContent, triggerBadgeStatus } = useValues(helpMenuLogic)const { setHelpMenuOpen } = useActions(helpMenuLogic)const { toggleZenMode } = useActions(navigation3000Logic)- const { setAppShortcutMenuOpen } = useActions(appShortcutLogic)+ const { setShortcutMenuOpen } = useActions(shortcutLogic)const { user } = useValues(userLogic)const { isCloudOrDev, preflight } = useValues(preflightLogic)const { reportAccountOwnerClicked } = useActions(eventUsageLogic)@@ -363,7 +363,7 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.EleminnerClassName="primitive-menu-content-inner p-1 "><Menu.Item- onClick={() => setAppShortcutMenuOpen(true)}+ onClick={() => setShortcutMenuOpen(true)}render={<ButtonPrimitivetooltip="Open shortcut menu"diff --git a/frontend/src/lib/components/NavSearchButton/NavSearchButton.tsx b/frontend/src/lib/components/NavSearchButton/NavSearchButton.tsxindex 4a19969f4e13..a55853a49ca4 100644--- a/frontend/src/lib/components/NavSearchButton/NavSearchButton.tsx+++ b/frontend/src/lib/components/NavSearchButton/NavSearchButton.tsx@@ -2,8 +2,8 @@ import { useValues } from 'kea'import { IconSearch } from '@posthog/icons'-import { RenderKeybind } from 'lib/components/AppShortcuts/AppShortcutMenu'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { RenderKeybind } from 'lib/components/Shortcuts/ShortcutMenu'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import posthog from 'lib/posthog-typed'import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'diff --git a/frontend/src/lib/components/ProductSetup/ProductSetupButton.tsx b/frontend/src/lib/components/ProductSetup/ProductSetupButton.tsxindex fe2c53aa7600..3dea38fdecef 100644--- a/frontend/src/lib/components/ProductSetup/ProductSetupButton.tsx+++ b/frontend/src/lib/components/ProductSetup/ProductSetupButton.tsx@@ -4,8 +4,8 @@ import { forwardRef } from 'react'import { IconTarget } from '@posthog/icons'import { LemonButton } from '@posthog/lemon-ui'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'-import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'+import { useShortcut } from 'lib/components/Shortcuts/useShortcut'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonBadge } from 'lib/lemon-ui/LemonBadge'import { organizationLogic } from 'scenes/organizationLogic'@@ -45,7 +45,7 @@ export function ProductSetupButton(): JSX.Element | null {}}- useAppShortcut({+ useShortcut({name: 'QuickStartGlobal',keybind: [keyBinds.quickStart],intent: 'Open quick start guide',diff --git a/frontend/src/lib/components/Search/Search.stories.tsx b/frontend/src/lib/components/Search/Search.stories.tsxindex f83155a83a6d..c1ea222bcf05 100644--- a/frontend/src/lib/components/Search/Search.stories.tsx+++ b/frontend/src/lib/components/Search/Search.stories.tsx@@ -210,7 +210,7 @@ export const Default: Story = {)},parameters: {- docs: { description: { story: 'Shows 5 recent items and apps when no search query is entered.' } },+ docs: { description: { story: 'Shows 5 recent items and tools when no search query is entered.' } },},}@@ -281,7 +281,7 @@ export const Searching: Story = {parameters: {docs: {description: {- story: 'Searching for "user": recents and apps are filtered client-side instantly, server results appear below without shifting existing items.',+ story: 'Searching for "user": recents and tools are filtered client-side instantly, server results appear below without shifting existing items.',},},},diff --git a/frontend/src/lib/components/Search/Search.tsx b/frontend/src/lib/components/Search/Search.tsxindex faffca50d450..79ff8011ce3e 100644--- a/frontend/src/lib/components/Search/Search.tsx+++ b/frontend/src/lib/components/Search/Search.tsx@@ -380,7 +380,7 @@ export interface SearchRootProps {className?: string/** Initial search value (useful for stories/tests) */defaultSearchValue?: string- /** Optional suggested items shown above recents/apps */+ /** Optional suggested items shown above recents/tools */suggestedItems?: SearchItem[]}@@ -428,14 +428,14 @@ function SearchRoot({const normalizedSuggestedItems = suggestedItems.map((item) => ({ ...item, category: 'suggested' }))let items: SearchItem[]if (searchValue.trim()) {- // Client-side fuzzy filter for recents/apps/starred; keep server results as-is- const clientItems = allItems.filter((item) => ['recents', 'apps', 'starred'].includes(item.category))- const serverItems = allItems.filter((item) => !['recents', 'apps', 'starred'].includes(item.category))+ // Client-side fuzzy filter for recents/tools/starred; keep server results as-is+ const clientItems = allItems.filter((item) => ['recents', 'tools', 'starred'].includes(item.category))+ const serverItems = allItems.filter((item) => !['recents', 'tools', 'starred'].includes(item.category))const filteredClientItems = filterSearchItems(clientItems, searchValue)items = [...filteredClientItems, ...serverItems]} else {- // When not searching, show recents, starred, and apps- items = allItems.filter((item) => ['recents', 'starred', 'apps'].includes(item.category))+ // When not searching, show recents, starred, and tools+ items = allItems.filter((item) => ['recents', 'starred', 'tools'].includes(item.category))}// Add a direct shortcut to the theme setting when searching for dark/light/theme@@ -541,8 +541,8 @@ function SearchRoot({loadingByCategory.set(cat.key, cat.isLoading ?? false)}- // Fixed order: ai first (when searching), then recents, starred, apps, create, then everything else- const orderedCategories = ['suggested', 'recents', 'starred', 'apps', 'create']+ // Fixed order: ai first (when searching), then recents, starred, tools, create, then everything else+ const orderedCategories = ['suggested', 'recents', 'starred', 'tools', 'create']const hasSearchValue = searchValue.trim().length > 0for (const category of orderedCategories) {@@ -550,13 +550,13 @@ function SearchRoot({const isLoading = loadingByCategory.get(category) ?? false// When searching: hide empty groups (unless still loading)- // When not searching: always show recents/apps (with skeleton if loading); starred only when items or loading+ // When not searching: always show recents/tools (with skeleton if loading); starred only when items or loading// "ai" and "create" are only shown when searchingconst shouldShow = hasSearchValue? items.length > 0 || isLoading: (category === 'suggested' && items.length > 0) ||category === 'recents' ||- category === 'apps' ||+ category === 'tools' ||(category === 'starred' && (items.length > 0 || isLoading))if (shouldShow) {@@ -764,7 +764,7 @@ function SearchStatus(): JSX.Element {}if (filteredItems.length > 0) {if (!searchValue.trim()) {- return 'Recents and apps'+ return 'Recents and tools'}return `${filteredItems.length} result${filteredItems.length === 1 ? '' : 's'}`}diff --git a/frontend/src/lib/components/Search/searchLogic.tsx b/frontend/src/lib/components/Search/searchLogic.tsxindex 9d4992b894f4..b7b6d2d76e4e 100644--- a/frontend/src/lib/components/Search/searchLogic.tsx+++ b/frontend/src/lib/components/Search/searchLogic.tsx@@ -352,7 +352,7 @@ export const searchLogic = kea<searchLogicType>([)},],- appsItems: [+ toolsItems: [(s) => [s.featureFlags, s.isDev, s.user, s.sceneLogViewsByRef],(featureFlags, isDev, user, sceneLogViewsByRef): SearchItem[] => {const allProducts = getTreeItemsProducts()@@ -373,7 +373,7 @@ export const searchLogic = kea<searchLogicType>([id: `app-${product.path}`,name: product.path,displayName: product.displayLabel ?? product.path,- category: 'apps',+ category: 'tools',productCategory: product.category || null,href: product.href || '#',itemType: product.iconType || product.type || null,@@ -389,7 +389,7 @@ export const searchLogic = kea<searchLogicType>([id: 'app-activity',name: 'Activity',displayName: 'Activity',- category: 'apps',+ category: 'tools',productCategory: null,href: urls.activity(ActivityTab.ExploreEvents),icon: <IconClock />,@@ -880,7 +880,7 @@ export const searchLogic = kea<searchLogicType>([recentsHasLoaded,starredLoading: !shortcutDataHasLoaded,starredHasLoaded: shortcutDataHasLoaded,- isAppsLoading: !sceneLogViewsHasLoaded,+ isToolsLoading: !sceneLogViewsHasLoaded,personSearchResultsLoading,groupSearchResultsLoading,playlistSearchResultsLoading,@@ -890,7 +890,7 @@ export const searchLogic = kea<searchLogicType>([(s) => [s.recentItems,s.starredItems,- s.appsItems,+ s.toolsItems,s.dataManagementItems,s.peopleItems,s.healthItems,@@ -907,7 +907,7 @@ export const searchLogic = kea<searchLogicType>([(recentItems: SearchItem[],starredItems: SearchItem[],- appsItems: SearchItem[],+ toolsItems: SearchItem[],dataManagementItems: SearchItem[],peopleItems: SearchItem[],healthItems: SearchItem[],@@ -924,7 +924,7 @@ export const searchLogic = kea<searchLogicType>([recentsHasLoaded: booleanstarredLoading: booleanstarredHasLoaded: boolean- isAppsLoading: boolean+ isToolsLoading: booleanpersonSearchResultsLoading: booleangroupSearchResultsLoading: booleanplaylistSearchResultsLoading: boolean@@ -937,7 +937,7 @@ export const searchLogic = kea<searchLogicType>([recentsHasLoaded,starredLoading,starredHasLoaded,- isAppsLoading,+ isToolsLoading,personSearchResultsLoading,groupSearchResultsLoading,playlistSearchResultsLoading,@@ -969,16 +969,16 @@ export const searchLogic = kea<searchLogicType>([isLoading: isStarredLoading,})- // Filter apps and data management by search- const filteredApps = filterBySearch(appsItems)+ // Filter tools and data management by search+ const filteredTools = filterBySearch(toolsItems)const filteredDataManagement = filterBySearch(dataManagementItems)- // Show apps if not searching or has matching results- if (!hasSearch || filteredApps.length > 0) {+ // Show tools if not searching or has matching results+ if (!hasSearch || filteredTools.length > 0) {categories.push({- key: 'apps',- items: isAppsLoading ? [] : filteredApps,- isLoading: isAppsLoading,+ key: 'tools',+ items: isToolsLoading ? [] : filteredTools,+ isLoading: isToolsLoading,})}@@ -986,8 +986,8 @@ export const searchLogic = kea<searchLogicType>([if (!hasSearch || filteredDataManagement.length > 0) {categories.push({key: 'data-management',- items: isAppsLoading ? [] : filteredDataManagement,- isLoading: isAppsLoading,+ items: isToolsLoading ? [] : filteredDataManagement,+ isLoading: isToolsLoading,})}diff --git a/frontend/src/lib/components/Search/utils.test.ts b/frontend/src/lib/components/Search/utils.test.tsindex 9da6cfc7583d..eb3c1f69f4fe 100644--- a/frontend/src/lib/components/Search/utils.test.ts+++ b/frontend/src/lib/components/Search/utils.test.ts@@ -7,7 +7,7 @@ interface TestItem {searchKeywords?: string[]}-const makeItem = (name: string, category = 'apps', extra: Partial<TestItem> = {}): TestItem => ({+const makeItem = (name: string, category = 'tools', extra: Partial<TestItem> = {}): TestItem => ({name,category,...extra,@@ -16,16 +16,16 @@ const makeItem = (name: string, category = 'apps', extra: Partial<TestItem> = {}const items: TestItem[] = [makeItem('Event definitions', 'data-management'),makeItem('Property definitions', 'data-management'),- makeItem('Feature flags', 'apps'),- makeItem('Cohorts', 'apps'),- makeItem('Dashboards', 'apps'),- makeItem('Session recordings', 'apps'),- makeItem('Web analytics', 'apps'),- makeItem('Experiments', 'apps'),- makeItem('Surveys', 'apps'),- makeItem('Product analytics', 'apps'),- makeItem('Error tracking', 'apps'),- makeItem('Data warehouse', 'apps', { searchKeywords: ['sql', 'query', 'database'] }),+ makeItem('Feature flags', 'tools'),+ makeItem('Cohorts', 'tools'),+ makeItem('Dashboards', 'tools'),+ makeItem('Session recordings', 'tools'),+ makeItem('Web analytics', 'tools'),+ makeItem('Experiments', 'tools'),+ makeItem('Surveys', 'tools'),+ makeItem('Product analytics', 'tools'),+ makeItem('Error tracking', 'tools'),+ makeItem('Data warehouse', 'tools', { searchKeywords: ['sql', 'query', 'database'] }),]const names = (results: TestItem[]): string[] => results.map((r) => r.name)diff --git a/frontend/src/lib/components/Search/utils.ts b/frontend/src/lib/components/Search/utils.tsindex c2c97acf65ae..10794335c277 100644--- a/frontend/src/lib/components/Search/utils.ts+++ b/frontend/src/lib/components/Search/utils.ts@@ -37,7 +37,7 @@ export const getCategoryDisplayName = (category: string): string => {const displayNames: Record<string, string> = {create: 'Create new','create-new': 'Create new',- apps: 'Apps',+ tools: 'Tools','data-management': 'Data management',settings: 'Settings',early_access_feature: 'Early access features',diff --git a/frontend/src/lib/components/AppShortcuts/AppShortcut.tsx b/frontend/src/lib/components/Shortcuts/Shortcut.tsxsimilarity index 80%rename from frontend/src/lib/components/AppShortcuts/AppShortcut.tsxrename to frontend/src/lib/components/Shortcuts/Shortcut.tsxindex e3b2cba54c4b..19001ae307aa 100644--- a/frontend/src/lib/components/AppShortcuts/AppShortcut.tsx+++ b/frontend/src/lib/components/Shortcuts/Shortcut.tsx@@ -3,31 +3,31 @@ import { ReactElement, cloneElement, forwardRef, isValidElement } from 'react'import { cn } from 'lib/utils/css-classes'-import { AppShortcutType } from './appShortcutLogic'-import { RenderKeybind } from './AppShortcutMenu'-import { convertPlatformKeybind, useAppShortcut } from './useAppShortcut'+import { ShortcutType } from './shortcutLogic'+import { RenderKeybind } from './ShortcutMenu'+import { convertPlatformKeybind, useShortcut } from './useShortcut'export function keybindToKeyboardShortcutProps(keybind: string[]): Record<string, boolean> {const platformAgnosticKeybind = convertPlatformKeybind(keybind)return Object.fromEntries(platformAgnosticKeybind.map((key) => [key, true]))}-interface AppShortcutProps extends Omit<AppShortcutType, 'ref' | 'keybind' | 'interaction' | 'callback'> {+interface ShortcutProps extends Omit<ShortcutType, 'ref' | 'keybind' | 'interaction' | 'callback'> {/** The keybind(s) to use for the shortcut - can be a single keybind or multiple alternative keybinds */keybind: string[][]/** Single React element child - must forward ref to clickable/focusable element */children: ReactElement- /** 'click' triggers element.click(), 'focus' triggers element.focus(), doesn't support `function` which should use `useAppShortcut` directly instead */+ /** 'click' triggers element.click(), 'focus' triggers element.focus(), doesn't support `function` which should use `useShortcut` directly instead */interaction: 'click' | 'focus'/** If true, the keyboard shortcut will not be registered and tooltip keyboard shortcut will not be added to the childs tooltip */disabled?: boolean}-export const AppShortcut = forwardRef<HTMLElement, AppShortcutProps>(function AppShortcut(+export const Shortcut = forwardRef<HTMLElement, ShortcutProps>(function Shortcut({ children, name, keybind, intent, interaction, scope = 'global', disabled = false, priority = 0 },forwardedRef): ReactElement {- const { callbackRef } = useAppShortcut({+ const { callbackRef } = useShortcut({name,keybind,intent,@@ -40,7 +40,7 @@ export const AppShortcut = forwardRef<HTMLElement, AppShortcutProps>(function Apconst mergedRef = useMergeRefs([callbackRef, forwardedRef])if (!isValidElement(children)) {- throw new Error('AppShortcut requires a single React element child')+ throw new Error('Shortcut requires a single React element child')}const childProps = children.props as Record<string, unknown>diff --git a/frontend/src/lib/components/AppShortcuts/AppShortcutMenu.tsx b/frontend/src/lib/components/Shortcuts/ShortcutMenu.tsxsimilarity index 92%rename from frontend/src/lib/components/AppShortcuts/AppShortcutMenu.tsxrename to frontend/src/lib/components/Shortcuts/ShortcutMenu.tsxindex 8b2cf956a67d..7f6424f348ba 100644--- a/frontend/src/lib/components/AppShortcuts/AppShortcutMenu.tsx+++ b/frontend/src/lib/components/Shortcuts/ShortcutMenu.tsx@@ -17,7 +17,7 @@ import { Scene } from 'scenes/sceneTypes'import { KeyboardShortcut } from '~/layout/navigation-3000/components/KeyboardShortcut'import { Combobox } from '~/lib/ui/Combobox/Combobox'-import { AppShortcutType, appShortcutLogic } from './appShortcutLogic'+import { ShortcutType, shortcutLogic } from './shortcutLogic'function titleForKey(key: string): string {switch (key) {@@ -31,7 +31,7 @@ function titleForKey(key: string): string {}}-function getShortcutIcon(shortcut: AppShortcutType): JSX.Element | null {+function getShortcutIcon(shortcut: ShortcutType): JSX.Element | null {switch (shortcut.interaction) {case 'focus':return (@@ -89,19 +89,19 @@ export function RenderKeybind({ keybind, className, minimal }: RenderKeybindProp)}-export function AppShortcutMenu(): JSX.Element | null {- const { appShortcutMenuOpen, disabledShortcutNames } = useValues(appShortcutLogic)- const { setAppShortcutMenuOpen, toggleShortcutDisabled } = useActions(appShortcutLogic)- const { registeredAppShortcuts } = useValues(appShortcutLogic)+export function ShortcutMenu(): JSX.Element | null {+ const { shortcutMenuOpen, disabledShortcutNames } = useValues(shortcutLogic)+ const { setShortcutMenuOpen, toggleShortcutDisabled } = useActions(shortcutLogic)+ const { registeredShortcuts } = useValues(shortcutLogic)const { sceneId } = useValues(sceneLogic)const comboboxRef = useRef<ListBoxHandle>(null)// Group shortcuts by scope, with scene-specific first and global lastconst groupedShortcuts = useMemo(() => {- const groups: Record<string, AppShortcutType[]> = {}+ const groups: Record<string, ShortcutType[]> = {}const currentScene = sceneId- registeredAppShortcuts.forEach((shortcut) => {+ registeredShortcuts.forEach((shortcut) => {const scope = shortcut.scope || 'global'// Only include shortcuts that are global or match the current scene@@ -142,14 +142,14 @@ export function AppShortcutMenu(): JSX.Element | null {title: titleForKey(key),shortcuts: groups[key],}))- }, [registeredAppShortcuts, sceneId])+ }, [registeredShortcuts, sceneId])const handleClose = useCallback(() => {- setAppShortcutMenuOpen(false)- }, [setAppShortcutMenuOpen])+ setShortcutMenuOpen(false)+ }, [setShortcutMenuOpen])const handleItemClick = useCallback(- (shortcut: AppShortcutType) => {+ (shortcut: ShortcutType) => {if (shortcut.interaction === 'click') {shortcut.ref.current?.click()} else if (shortcut.interaction === 'focus') {@@ -188,7 +188,7 @@ export function AppShortcutMenu(): JSX.Element | null {// Get the shortcut name from the data attributeconst shortcutName = focusedElement.getAttribute('data-shortcut-name')if (shortcutName) {- const shortcut = registeredAppShortcuts.find((s) => s.name === shortcutName)+ const shortcut = registeredShortcuts.find((s) => s.name === shortcutName)if (shortcut) {handleItemClick(shortcut)}@@ -209,11 +209,11 @@ export function AppShortcutMenu(): JSX.Element | null {}, 50) // Slightly longer delay for search updates}},- [handleClose, registeredAppShortcuts, handleItemClick]+ [handleClose, registeredShortcuts, handleItemClick])useEffect(() => {- if (appShortcutMenuOpen) {+ if (shortcutMenuOpen) {// Focus the search input when openedsetTimeout(() => {const searchInput = document.querySelector('#scene-action-palette input') as HTMLInputElement@@ -237,11 +237,11 @@ export function AppShortcutMenu(): JSX.Element | null {window.removeEventListener('keydown', handleEscape)}}- }, [appShortcutMenuOpen, handleClose])+ }, [shortcutMenuOpen, handleClose])// Ensure search input is focused and first item is selected when shortcuts changeuseEffect(() => {- if (appShortcutMenuOpen && registeredAppShortcuts.length > 0) {+ if (shortcutMenuOpen && registeredShortcuts.length > 0) {setTimeout(() => {const searchInput = document.querySelector('#scene-action-palette input') as HTMLInputElementif (searchInput) {@@ -251,9 +251,9 @@ export function AppShortcutMenu(): JSX.Element | null {comboboxRef.current?.focusFirstItem()}, 0)}- }, [appShortcutMenuOpen, registeredAppShortcuts])+ }, [shortcutMenuOpen, registeredShortcuts])- if (!appShortcutMenuOpen) {+ if (!shortcutMenuOpen) {return null}@@ -261,7 +261,7 @@ export function AppShortcutMenu(): JSX.Element | null {<div className="fixed inset-0 z-[var(--z-shortcut-menu)] flex items-end justify-center p-6 backdrop-blur-[var(--modal-backdrop-blur)]"><divclassName="bg-surface-secondary border-3 border-tertiary rounded-lg shadow-2xl w-96 max-h-[calc(100vh-(var(--spacing)*6))] overflow-x-hidden overflow-y-auto backdrop-blur-sm"- id="app-shortcut-menu"+ id="shortcut-menu"onKeyDown={handleKeyDown}><Combobox ref={comboboxRef}>diff --git a/frontend/src/lib/components/AppShortcuts/appShortcutLogic.tsx b/frontend/src/lib/components/Shortcuts/shortcutLogic.tsxsimilarity index 85%rename from frontend/src/lib/components/AppShortcuts/appShortcutLogic.tsxrename to frontend/src/lib/components/Shortcuts/shortcutLogic.tsxindex e80d20ed2e30..573a7f9e55da 100644--- a/frontend/src/lib/components/AppShortcuts/appShortcutLogic.tsx+++ b/frontend/src/lib/components/Shortcuts/shortcutLogic.tsx@@ -4,7 +4,7 @@ import posthog from 'lib/posthog-typed'import { isMac } from 'lib/utils/dom'import { Scene } from 'scenes/sceneTypes'-import type { appShortcutLogicType } from './appShortcutLogicType'+import type { shortcutLogicType } from './shortcutLogicType'const IS_MAC = isMac()const COMMAND_OR_CTRL = IS_MAC ? 'command' : 'ctrl'@@ -24,7 +24,7 @@ function saveDisabledShortcuts(names: string[]): void {localStorage.setItem(DISABLED_SHORTCUTS_KEY, JSON.stringify(names))}-interface AppShortcutBase {+interface ShortcutBase {name: stringkeybind: string[][]intent: string@@ -33,19 +33,19 @@ interface AppShortcutBase {priority?: number}-interface AppShortcutWithRef extends AppShortcutBase {+interface ShortcutWithRef extends ShortcutBase {ref: React.RefObject<HTMLElement>interaction: 'click' | 'focus'callback?: never}-interface AppShortcutWithCallback extends AppShortcutBase {+interface ShortcutWithCallback extends ShortcutBase {callback: () => voidinteraction: 'function'ref?: never}-export type AppShortcutType = AppShortcutWithRef | AppShortcutWithCallback+export type ShortcutType = ShortcutWithRef | ShortcutWithCallbackfunction isSequenceKeybind(keybind: string[]): boolean {return keybind.includes('then')@@ -63,7 +63,7 @@ function formatKeybind(keybind: string[]): string {return isSequenceKeybind(keybind) ? getSequenceKeys(keybind).join(' then ') : keybind.join('+')}-function triggerShortcut(shortcut: AppShortcutType, triggeredKeybind: string[]): void {+function triggerShortcut(shortcut: ShortcutType, triggeredKeybind: string[]): void {posthog.capture('keybind triggered', {name: shortcut.name,intent: shortcut.intent,@@ -101,30 +101,30 @@ function isEditableElement(event: KeyboardEvent): boolean {)}-export const appShortcutLogic = kea<appShortcutLogicType>([- path(['lib', 'components', 'AppShortcuts', 'appShortcutLogic']),+export const shortcutLogic = kea<shortcutLogicType>([+ path(['lib', 'components', 'Shortcuts', 'shortcutLogic']),actions({- registerAppShortcut: (appShortcut: AppShortcutType) => ({ appShortcut }),- unregisterAppShortcut: (name: string) => ({ name }),- setAppShortcutMenuOpen: (open: boolean) => ({ open }),+ registerShortcut: (shortcut: ShortcutType) => ({ shortcut }),+ unregisterShortcut: (name: string) => ({ name }),+ setShortcutMenuOpen: (open: boolean) => ({ open }),toggleShortcutDisabled: (name: string) => ({ name }),}),reducers({- registeredAppShortcuts: [- [] as AppShortcutType[],+ registeredShortcuts: [+ [] as ShortcutType[],{- registerAppShortcut: (state, { appShortcut }) => {+ registerShortcut: (state, { shortcut }) => {// Remove any existing shortcut with the same name, then add the new one- const filtered = state.filter((shortcut) => shortcut.name !== appShortcut.name)- return [...filtered, appShortcut]+ const filtered = state.filter((existing) => existing.name !== shortcut.name)+ return [...filtered, shortcut]},- unregisterAppShortcut: (state, { name }) => state.filter((shortcut) => shortcut.name !== name),+ unregisterShortcut: (state, { name }) => state.filter((shortcut) => shortcut.name !== name),},],- appShortcutMenuOpen: [+ shortcutMenuOpen: [false,{- setAppShortcutMenuOpen: (_, { open }) => open,+ setShortcutMenuOpen: (_, { open }) => open,},],disabledShortcutNames: [@@ -141,7 +141,7 @@ export const appShortcutLogic = kea<appShortcutLogicType>([afterMount(({ values, cache }) => {// Sequence shortcut statecache.sequenceKeys = [] as string[]- cache.sequenceShortcut = null as AppShortcutType | null+ cache.sequenceShortcut = null as ShortcutType | nullcache.sequenceLastKeyTime = 0cache.onKeyDown = (event: KeyboardEvent) => {@@ -175,7 +175,7 @@ export const appShortcutLogic = kea<appShortcutLogicType>([pressedKeys.push(keyToAdd)const pressedKeyString = pressedKeys.join('+')- const matchingShortcut = values.registeredAppShortcuts.find((shortcut) =>+ const matchingShortcut = values.registeredShortcuts.find((shortcut) =>shortcut.keybind.some((keybind) =>!isSequenceKeybind(keybind) &&@@ -204,7 +204,7 @@ export const appShortcutLogic = kea<appShortcutLogicType>([// check for collisions before being implemented. We could also make this// "lazy" but that would result in a noticeable lag in app for single key// shortcuts. My preference is the eager way- const singleKeyMatch = values.registeredAppShortcuts.find((shortcut) =>+ const singleKeyMatch = values.registeredShortcuts.find((shortcut) =>shortcut.keybind.some((keybind) => isSingleKeyKeybind(keybind) && keybind[0] === key))@@ -228,7 +228,7 @@ export const appShortcutLogic = kea<appShortcutLogicType>([cache.sequenceKeys.push(key)// Look for a matching sequence shortcut- const matchingShortcut = values.registeredAppShortcuts.find((shortcut) =>+ const matchingShortcut = values.registeredShortcuts.find((shortcut) =>shortcut.keybind.some((keybind) => {if (!isSequenceKeybind(keybind)) {return falsediff --git a/frontend/src/lib/components/AppShortcuts/shortcuts.ts b/frontend/src/lib/components/Shortcuts/shortcuts.tssimilarity index 97%rename from frontend/src/lib/components/AppShortcuts/shortcuts.tsrename to frontend/src/lib/components/Shortcuts/shortcuts.tsindex d2769197c75c..6dd038d08d67 100644--- a/frontend/src/lib/components/AppShortcuts/shortcuts.ts+++ b/frontend/src/lib/components/Shortcuts/shortcuts.ts@@ -39,7 +39,7 @@ export const keyBinds: Record<string, string[]> = {newChat: ['g', 'then', 'n'],maxHandsFree: ['h', 'then', 'f'],allChats: ['g', 'then', '1'],- allApps: ['g', 'then', '2'],+ allTools: ['g', 'then', '2'],theme: ['g', 'then', 't'],jumpToTimestamp: ['j', 'then', 't'],}diff --git a/frontend/src/lib/components/AppShortcuts/useAppShortcut.ts b/frontend/src/lib/components/Shortcuts/useShortcut.tssimilarity index 84%rename from frontend/src/lib/components/AppShortcuts/useAppShortcut.tsrename to frontend/src/lib/components/Shortcuts/useShortcut.tsindex ea0864533622..dc3ebd983867 100644--- a/frontend/src/lib/components/AppShortcuts/useAppShortcut.ts+++ b/frontend/src/lib/components/Shortcuts/useShortcut.ts@@ -3,7 +3,7 @@ import { useCallback, useEffect, useRef, useState } from 'react'import { isMac } from 'lib/utils/dom'-import { AppShortcutType, appShortcutLogic } from './appShortcutLogic'+import { ShortcutType, shortcutLogic } from './shortcutLogic'const IS_MAC = isMac()@@ -15,7 +15,7 @@ export function convertPlatformKeybinds(keybinds: string[][]): string[][] {return keybinds.map(convertPlatformKeybind)}-interface UseAppShortcutBase {+interface UseShortcutOptionsBase {/** Unique identifier for the shortcut */name: string/** Keybind(s) - use 'command' for Cmd/Ctrl. Multiple arrays = alternative keybinds */@@ -23,14 +23,14 @@ interface UseAppShortcutBase {/** Description of what the shortcut does */intent: string/** Scope: 'global' or a specific Scene key */- scope?: AppShortcutType['scope']+ scope?: ShortcutType['scope']/** When true, shortcut is not registered */disabled?: boolean/** Higher priority items appear first in their group. Default: 0 */priority?: number}-interface UseAppShortcutWithRef extends UseAppShortcutBase {+interface UseShortcutOptionsWithRef extends UseShortcutOptionsBase {/** 'click' triggers element.click(), 'focus' triggers element.focus() */interaction: 'click' | 'focus'/** Optional: use your own ref instead of the one returned by the hook */@@ -38,7 +38,7 @@ interface UseAppShortcutWithRef extends UseAppShortcutBase {callback?: never}-interface UseAppShortcutWithCallback extends UseAppShortcutBase {+interface UseShortcutOptionsWithCallback extends UseShortcutOptionsBase {/** 'function' calls your callback directly - no ref needed */interaction: 'function'/** The function to call when the shortcut is triggered */@@ -46,9 +46,9 @@ interface UseAppShortcutWithCallback extends UseAppShortcutBase {externalRef?: never}-export type UseAppShortcutOptions = UseAppShortcutWithRef | UseAppShortcutWithCallback+export type UseShortcutOptions = UseShortcutOptionsWithRef | UseShortcutOptionsWithCallback-export interface UseAppShortcutReturn<T extends HTMLElement> {+export interface UseShortcutReturn<T extends HTMLElement> {/** Object ref - use this if you just need a simple ref */ref: React.RefObject<T>/** Callback ref - use this if you need to know when the element mounts (e.g., for conditional rendering) */@@ -63,7 +63,7 @@ export interface UseAppShortcutReturn<T extends HTMLElement> {* **1. Element interaction (click/focus)** - triggers click() or focus() on an element* ```tsx* // Simple: use the returned ref- * const { ref } = useAppShortcut({+ * const { ref } = useShortcut({* name: 'open-search',* keybind: [['command', 'k']],* intent: 'Open search',@@ -73,7 +73,7 @@ export interface UseAppShortcutReturn<T extends HTMLElement> {** // Or bring your own ref* const myRef = useRef<HTMLButtonElement>(null)- * useAppShortcut({+ * useShortcut({* name: 'open-search',* keybind: [['command', 'k']],* intent: 'Open search',@@ -85,7 +85,7 @@ export interface UseAppShortcutReturn<T extends HTMLElement> {** **2. Function callback** - calls a function directly, no element needed* ```tsx- * useAppShortcut({+ * useShortcut({* name: 'toggle-theme',* keybind: [['command', 'd']],* intent: 'Toggle dark mode',@@ -106,14 +106,12 @@ export interface UseAppShortcutReturn<T extends HTMLElement> {* keybind: [['command', 'k'], ['command', 'shift', 'k']] // Either triggers it* ```*/-export function useAppShortcut<T extends HTMLElement = HTMLElement>(- options: UseAppShortcutOptions-): UseAppShortcutReturn<T> {+export function useShortcut<T extends HTMLElement = HTMLElement>(options: UseShortcutOptions): UseShortcutReturn<T> {const { name, keybind, intent, interaction, scope = 'global', disabled = false, priority } = optionsconst internalRef = useRef<T>(null)const [isRefReady, setIsRefReady] = useState(false)- const { registerAppShortcut, unregisterAppShortcut } = useActions(appShortcutLogic)+ const { registerShortcut, unregisterShortcut } = useActions(shortcutLogic)const externalRef = options.interaction !== 'function' ? options.externalRef : undefinedconst callback = options.interaction === 'function' ? options.callback : undefined@@ -138,7 +136,7 @@ export function useAppShortcut<T extends HTMLElement = HTMLElement>(if (interaction === 'function' && callbackFnRef.current) {const platformAgnosticKeybinds = convertPlatformKeybinds(keybind)- registerAppShortcut({+ registerShortcut({name,keybind: platformAgnosticKeybinds,callback: () => callbackFnRef.current?.(),@@ -149,7 +147,7 @@ export function useAppShortcut<T extends HTMLElement = HTMLElement>(})} else if (isRefReady && ref.current && interaction !== 'function') {const platformAgnosticKeybinds = convertPlatformKeybinds(keybind)- registerAppShortcut({+ registerShortcut({name,keybind: platformAgnosticKeybinds,ref: ref as React.RefObject<HTMLElement>,@@ -161,9 +159,9 @@ export function useAppShortcut<T extends HTMLElement = HTMLElement>(}return () => {- unregisterAppShortcut(name)+ unregisterShortcut(name)}- }, [isRefReady, name, intent, interaction, scope, disabled, ref, priority, registerAppShortcut]) // oxlint-disable-line react-hooks/exhaustive-deps+ }, [isRefReady, name, intent, interaction, scope, disabled, ref, priority, registerShortcut, unregisterShortcut]) // oxlint-disable-line react-hooks/exhaustive-depsreturn { ref, callbackRef }}diff --git a/frontend/src/lib/components/AppShortcuts/utils/DebugCHQueries.tsx b/frontend/src/lib/components/Shortcuts/utils/DebugCHQueries.tsxsimilarity index 100%rename from frontend/src/lib/components/AppShortcuts/utils/DebugCHQueries.tsxrename to frontend/src/lib/components/Shortcuts/utils/DebugCHQueries.tsxdiff --git a/frontend/src/lib/components/AppShortcuts/utils/DebugCHQueriesImpl.tsx b/frontend/src/lib/components/Shortcuts/utils/DebugCHQueriesImpl.tsxsimilarity index 100%rename from frontend/src/lib/components/AppShortcuts/utils/DebugCHQueriesImpl.tsxrename to frontend/src/lib/components/Shortcuts/utils/DebugCHQueriesImpl.tsxdiff --git a/frontend/src/lib/components/Superpowers/Superpowers.tsx b/frontend/src/lib/components/Superpowers/Superpowers.tsxindex 8f8dc576fbce..48f5abeae550 100644--- a/frontend/src/lib/components/Superpowers/Superpowers.tsx+++ b/frontend/src/lib/components/Superpowers/Superpowers.tsx@@ -11,7 +11,7 @@ import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'import { teamLogic } from 'scenes/teamLogic'import { userLogic } from 'scenes/userLogic'-import { openCHQueriesDebugModal } from '../AppShortcuts/utils/DebugCHQueries'+import { openCHQueriesDebugModal } from '../Shortcuts/utils/DebugCHQueries'import { FakeBillingAlert, FakeStatusOverride, superpowersLogic } from './superpowersLogic'export function SuperpowersModal(): JSX.Element | null {diff --git a/frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.test.tsx b/frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.test.tsxindex b18eea461902..f1813e32fcd0 100644--- a/frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.test.tsx+++ b/frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.test.tsx@@ -49,7 +49,7 @@ describe('LemonMenu', () => {expect(screen.queryByText('First')).not.toBeInTheDocument()- // Triggering a click through the forwarded ref (as AppShortcut does) must open the menu.+ // Triggering a click through the forwarded ref (as <Shortcut /> does) must open the menu.await userEvent.click(screen.getByRole('button', { name: 'Trigger via ref' }))expect(screen.getByText('First')).toBeInTheDocument()diff --git a/frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.tsx b/frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.tsxindex c153de66a87d..9771ea710c13 100644--- a/frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.tsx+++ b/frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.tsx@@ -145,7 +145,7 @@ export const LemonMenu = React.forwardRef<HTMLElement, LemonMenuProps>(function)// LemonMenu renders no DOM itself — only the trigger child does. Forward an externally-provided- // ref (e.g. from AppShortcut) onto that child so it lands on a real DOM node, otherwise consumers+ // ref (e.g. from <Shortcut />) onto that child so it lands on a real DOM node, otherwise consumers// attaching a ref to LemonMenu silently get nothing.const triggerRef = useMergeRefs([ref, (children as { ref?: React.Ref<HTMLElement> }).ref])diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.jsonindex 0fa4aa5a3a15..f596cb05ca74 100644--- a/frontend/src/queries/schema.json+++ b/frontend/src/queries/schema.json@@ -21747,7 +21747,7 @@"insight/hog","team_activity","home",- "apps",+ "tools","live","chat","search",diff --git a/frontend/src/queries/schema/schema-general.ts b/frontend/src/queries/schema/schema-general.tsindex a5ffc10e72eb..332489d43f35 100644--- a/frontend/src/queries/schema/schema-general.ts+++ b/frontend/src/queries/schema/schema-general.ts@@ -3682,7 +3682,7 @@ export type FileSystemIconType =| 'insight/hog'| 'team_activity'| 'home'- | 'apps'+ | 'tools'| 'live'| 'chat'| 'search'diff --git a/frontend/src/scenes/annotations/Annotations.tsx b/frontend/src/scenes/annotations/Annotations.tsxindex a29b33b64b3b..f0a22cac45c0 100644--- a/frontend/src/scenes/annotations/Annotations.tsx+++ b/frontend/src/scenes/annotations/Annotations.tsx@@ -3,11 +3,11 @@ import { useActions, useValues } from 'kea'import { IconPencil } from '@posthog/icons'import { LemonSelect, Link } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { TextContent } from 'lib/components/Cards/TextCard/TextCard'import { MicrophoneHog } from 'lib/components/hedgehogs'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { TZLabel } from 'lib/components/TZLabel'import { LemonButton } from 'lib/lemon-ui/LemonButton'import { LemonTable, LemonTableColumn, LemonTableColumns } from 'lib/lemon-ui/LemonTable'@@ -162,7 +162,7 @@ export function Annotations(): JSX.Element {type: sceneConfigurations[Scene.Annotations].iconType || 'default_icon_type',}}actions={- <AppShortcut+ <Shortcutname="NewAnnotation"keybind={[keyBinds.new]}intent="New annotation"@@ -178,7 +178,7 @@ export function Annotations(): JSX.Element {>New annotation</LemonButton>- </AppShortcut>+ </Shortcut>}/><div className="flex flex-row items-center gap-2 justify-end">diff --git a/frontend/src/scenes/cohorts/Cohorts.tsx b/frontend/src/scenes/cohorts/Cohorts.tsxindex cc80d11145cd..9cea15138abc 100644--- a/frontend/src/scenes/cohorts/Cohorts.tsx+++ b/frontend/src/scenes/cohorts/Cohorts.tsx@@ -5,11 +5,11 @@ import { combineUrl, router } from 'kea-router'import { LemonBanner, LemonDialog, LemonInput, LemonSelect } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { ListHog } from 'lib/components/hedgehogs'import { MemberSelect } from 'lib/components/MemberSelect'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import ViewRecordingsPlaylistButton from 'lib/components/ViewRecordingButton/ViewRecordingsPlaylistButton'import { dayjs } from 'lib/dayjs'import { LemonButton } from 'lib/lemon-ui/LemonButton'@@ -204,7 +204,7 @@ export function Cohorts(): JSX.Element {const filtersSection = (<div className="flex justify-between gap-2 flex-wrap">- <AppShortcut+ <Shortcutname="SearchCohorts"keybind={[keyBinds.filter]}intent="Search cohorts"@@ -220,7 +220,7 @@ export function Cohorts(): JSX.Element {}}value={cohortFilters.search}/>- </AppShortcut>+ </Shortcut><div className="flex items-center gap-2"><span>@@ -279,7 +279,7 @@ export function Cohorts(): JSX.Element {type: sceneConfigurations[Scene.Cohorts].iconType || 'default_icon_type',}}actions={- <AppShortcut+ <Shortcutname="NewCohort"keybind={[keyBinds.new]}intent="New cohort"@@ -295,7 +295,7 @@ export function Cohorts(): JSX.Element {>New cohort</LemonButton>- </AppShortcut>+ </Shortcut>}/>diff --git a/frontend/src/scenes/dashboard/DashboardEditBar.tsx b/frontend/src/scenes/dashboard/DashboardEditBar.tsxindex 9e8fbce7f518..587e55c7f159 100644--- a/frontend/src/scenes/dashboard/DashboardEditBar.tsx+++ b/frontend/src/scenes/dashboard/DashboardEditBar.tsx@@ -3,10 +3,10 @@ import { BindLogic, useActions, useValues } from 'kea'import { IconCalendar } from '@posthog/icons'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { DateFilter } from 'lib/components/DateFilter/DateFilter'import { PropertyFilters } from 'lib/components/PropertyFilters/PropertyFilters'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'import { DashboardEventSource } from 'lib/utils/eventUsageLogic'import { getProjectEventExistence } from 'lib/utils/getAppContext'@@ -59,7 +59,7 @@ export function DashboardEditBar({ showDateFilter = true, className }: Dashboard>{showDateFilter && (<div className={clsx('content-end min-w-0', { 'h-[61px]': hasVariables })}>- <AppShortcut+ <Shortcutname="DashboardDateFilter"keybind={[keyBinds.dateFilter]}intent="Date filter"@@ -87,7 +87,7 @@ export function DashboardEditBar({ showDateFilter = true, className }: Dashboard</>)}/>- </AppShortcut>+ </Shortcut></div>)}<div className={clsx('content-end', { 'h-[61px]': hasVariables })}>diff --git a/frontend/src/scenes/dashboard/DashboardFilters.tsx b/frontend/src/scenes/dashboard/DashboardFilters.tsxindex ef8232e5cba9..daed2aa84af4 100644--- a/frontend/src/scenes/dashboard/DashboardFilters.tsx+++ b/frontend/src/scenes/dashboard/DashboardFilters.tsx@@ -4,12 +4,12 @@ import { useActions, useValues } from 'kea'import { IconCalendar, IconCollapse, IconEllipsis, IconExpand } from '@posthog/icons'import { LemonButton, LemonMenu } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { DateFilter } from 'lib/components/DateFilter/DateFilter'import { QuickFilterSelector } from 'lib/components/QuickFilters/QuickFilterSelector'import { quickFiltersLogic } from 'lib/components/QuickFilters/quickFiltersLogic'import { quickFiltersSectionLogic } from 'lib/components/QuickFilters/quickFiltersSectionLogic'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { DashboardEventSource } from 'lib/utils/eventUsageLogic'import { Scene } from 'scenes/sceneTypes'import { urls } from 'scenes/urls'@@ -33,7 +33,7 @@ export function DashboardPrimaryFilters(): JSX.Element {return (<><div className={clsx('content-end min-w-0', { 'h-[61px]': hasVariables })}>- <AppShortcut+ <Shortcutname="DashboardDateFilter"keybind={[keyBinds.dateFilter]}intent="Date filter"@@ -61,7 +61,7 @@ export function DashboardPrimaryFilters(): JSX.Element {</>)}/>- </AppShortcut>+ </Shortcut></div>{canEditDashboard && dashboard && (diff --git a/frontend/src/scenes/dashboard/DashboardHeaderActions.tsx b/frontend/src/scenes/dashboard/DashboardHeaderActions.tsxindex 9e6e8c68af2b..4ece1bd70098 100644--- a/frontend/src/scenes/dashboard/DashboardHeaderActions.tsx+++ b/frontend/src/scenes/dashboard/DashboardHeaderActions.tsx@@ -4,8 +4,8 @@ import { router } from 'kea-router'import { IconGridMasonry, IconPlusSmall, IconShare } from '@posthog/icons'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { FEATURE_FLAGS } from 'lib/constants'import { LemonButton } from 'lib/lemon-ui/LemonButton'import { LemonMenu } from 'lib/lemon-ui/LemonMenu'@@ -152,7 +152,7 @@ export function DashboardEditSaveCancelButtons({return (<>- <AppShortcut+ <Shortcutname="CancelDashboardEdit"keybind={[keyBinds.escape]}intent="Cancel edit mode"@@ -160,9 +160,9 @@ export function DashboardEditSaveCancelButtons({scope={Scene.Dashboard}>{cancelButton}- </AppShortcut>+ </Shortcut>{applyFiltersButton}- <AppShortcut+ <Shortcutname="SaveDashboard"keybind={[keyBinds.edit, keyBinds.save]}intent="Save dashboard"@@ -171,7 +171,7 @@ export function DashboardEditSaveCancelButtons({disabled={!canEditDashboard}>{saveButton}- </AppShortcut>+ </Shortcut></>)}@@ -225,7 +225,7 @@ export function ViewModeActions(): JSX.Element {Share</LemonButton>{canEditDashboard && (- <AppShortcut+ <Shortcutname="EnterEditMode"scope={Scene.Dashboard}keybind={[keyBinds.edit]}@@ -245,7 +245,7 @@ export function ViewModeActions(): JSX.Element {>Edit layout</LemonButton>- </AppShortcut>+ </Shortcut>)}<DashboardAddTileButton /></>diff --git a/frontend/src/scenes/dashboard/DashboardQuickFiltersButton.tsx b/frontend/src/scenes/dashboard/DashboardQuickFiltersButton.tsxindex d97bf950de08..fb64a511b3f5 100644--- a/frontend/src/scenes/dashboard/DashboardQuickFiltersButton.tsx+++ b/frontend/src/scenes/dashboard/DashboardQuickFiltersButton.tsx@@ -3,10 +3,10 @@ import { useActions, useValues } from 'kea'import { IconGear } from '@posthog/icons'import { LemonButton, LemonModal } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'import { QuickFilterForm } from 'lib/components/QuickFilters/QuickFilterForm'import { QuickFiltersModalContent } from 'lib/components/QuickFilters/QuickFiltersModalContent'import { ModalView, quickFiltersModalLogic } from 'lib/components/QuickFilters/quickFiltersModalLogic'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'import { Scene } from 'scenes/sceneTypes'import { QuickFilterContext } from '~/queries/schema/schema-general'@@ -28,7 +28,7 @@ export function DashboardQuickFiltersButton({ context, dashboard }: DashboardQuireturn (<>- <AppShortcut+ <Shortcutname="DashboardQuickFilters"keybind={[['f']]}intent="Quick filters"@@ -44,7 +44,7 @@ export function DashboardQuickFiltersButton({ context, dashboard }: DashboardQui>{selectedDashboardFilterIds.length === 0 ? 'Configure quick filters' : undefined}</LemonButton>- </AppShortcut>+ </Shortcut><LemonModaltitle={modalTitle}isOpen={isModalOpen}diff --git a/frontend/src/scenes/dashboard/DashboardReloadAction.tsx b/frontend/src/scenes/dashboard/DashboardReloadAction.tsxindex 26e8403ad04a..16ca49b777b8 100644--- a/frontend/src/scenes/dashboard/DashboardReloadAction.tsx+++ b/frontend/src/scenes/dashboard/DashboardReloadAction.tsx@@ -5,8 +5,8 @@ import { IconCheck, IconX } from '@posthog/icons'import { IconRefresh } from '@posthog/icons'import { LemonBadge, LemonButton, LemonSwitch, Spinner } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { TZLabel } from 'lib/components/TZLabel'import { dayjs } from 'lib/dayjs'import { usePageVisibilityCb } from 'lib/hooks/usePageVisibility'@@ -104,7 +104,7 @@ export function DashboardReloadAction(): JSX.Element {<div className="relative flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 sm:flex-nowrap"><DashboardRefreshStatusText />- <AppShortcut+ <Shortcutname="DashboardRefresh"keybind={[keyBinds.refresh]}intent="Refresh dashboard"@@ -181,7 +181,7 @@ export function DashboardReloadAction(): JSX.Element {{itemsLoading ? 'Cancel' : 'Refresh'}</LemonButton></div>- </AppShortcut>+ </Shortcut><LemonBadgesize="small"diff --git a/frontend/src/scenes/dashboard/DashboardZoomControl.tsx b/frontend/src/scenes/dashboard/DashboardZoomControl.tsxindex 38a19d4f7c31..498b057bb31e 100644--- a/frontend/src/scenes/dashboard/DashboardZoomControl.tsx+++ b/frontend/src/scenes/dashboard/DashboardZoomControl.tsx@@ -2,7 +2,7 @@ import { useValues } from 'kea'import { LemonButton } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'import { eventUsageLogic } from 'lib/utils/eventUsageLogic'import { Scene } from 'scenes/sceneTypes'@@ -22,7 +22,7 @@ export function DashboardZoomControl({ layoutZoom, setLayoutZoom }: DashboardZooreturn (<div className="flex items-center gap-2 text-sm text-muted hidden md:flex">- <AppShortcut+ <Shortcutname="DashboardLayoutZoomToggle"keybind={[['z']]}intent="Toggle dashboard layout zoom while editing"@@ -42,7 +42,7 @@ export function DashboardZoomControl({ layoutZoom, setLayoutZoom }: DashboardZoo>{layoutZoom < 1 ? 'Expand view' : 'Collapse view'}</LemonButton>- </AppShortcut>+ </Shortcut></div>)}diff --git a/frontend/src/scenes/dashboard/dashboards/Dashboards.tsx b/frontend/src/scenes/dashboard/dashboards/Dashboards.tsxindex 4a29b61a20bf..b54997b19e91 100644--- a/frontend/src/scenes/dashboard/dashboards/Dashboards.tsx+++ b/frontend/src/scenes/dashboard/dashboards/Dashboards.tsx@@ -3,10 +3,10 @@ import { useActions, useValues } from 'kea'import { LemonButton } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { GraphsHog } from 'lib/components/hedgehogs'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { LemonTab, LemonTabs } from 'lib/lemon-ui/LemonTabs'import { DashboardsTab, dashboardsLogic } from 'scenes/dashboard/dashboards/dashboardsLogic'import { DashboardsTableContainer } from 'scenes/dashboard/dashboards/DashboardsTable'@@ -75,7 +75,7 @@ export function Dashboards(): JSX.Element {resourceType={AccessControlResourceType.Dashboard}minAccessLevel={AccessControlLevel.Editor}>- <AppShortcut+ <Shortcutname="NewDashboard"keybind={[keyBinds.new]}intent="New dashboard"@@ -90,7 +90,7 @@ export function Dashboards(): JSX.Element {>New dashboard</LemonButton>- </AppShortcut>+ </Shortcut></AccessControlAction></>}diff --git a/frontend/src/scenes/data-pipelines/DestinationsScene.tsx b/frontend/src/scenes/data-pipelines/DestinationsScene.tsxindex c473a95afbab..74d535a49a69 100644--- a/frontend/src/scenes/data-pipelines/DestinationsScene.tsx+++ b/frontend/src/scenes/data-pipelines/DestinationsScene.tsx@@ -4,8 +4,8 @@ import { IconPlusSmall } from '@posthog/icons'import { LemonButton, LemonTabs } from '@posthog/lemon-ui'import { ActivityLog } from 'lib/components/ActivityLog/ActivityLog'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { sceneConfigurations } from 'scenes/scenes'import { Scene, SceneExport } from 'scenes/sceneTypes'import { urls } from 'scenes/urls'@@ -29,7 +29,7 @@ export function DestinationsScene(): JSX.Element {const { setActiveTab } = useActions(destinationsSceneLogic)const action = (- <AppShortcut+ <Shortcutname="NewPipelineDestination"keybind={[keyBinds.new]}intent="New destination"@@ -46,7 +46,7 @@ export function DestinationsScene(): JSX.Element {>New destination</LemonButton>- </AppShortcut>+ </Shortcut>)const tabs = [diff --git a/frontend/src/scenes/data-pipelines/TransformationsScene.tsx b/frontend/src/scenes/data-pipelines/TransformationsScene.tsxindex 79d0ed179c95..914b99384b2a 100644--- a/frontend/src/scenes/data-pipelines/TransformationsScene.tsx+++ b/frontend/src/scenes/data-pipelines/TransformationsScene.tsx@@ -1,8 +1,8 @@import { IconPlusSmall } from '@posthog/icons'import { LemonButton } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { sceneConfigurations } from 'scenes/scenes'import { Scene, SceneExport } from 'scenes/sceneTypes'import { urls } from 'scenes/urls'@@ -22,7 +22,7 @@ export const scene: SceneExport = {export function TransformationsScene(): JSX.Element {const action = (- <AppShortcut+ <Shortcutname="NewPipelineTransformation"keybind={[keyBinds.new]}intent="New transformation"@@ -39,7 +39,7 @@ export function TransformationsScene(): JSX.Element {>New transformation</LemonButton>- </AppShortcut>+ </Shortcut>)return (diff --git a/frontend/src/scenes/data-pipelines/WebScriptsScene.tsx b/frontend/src/scenes/data-pipelines/WebScriptsScene.tsxindex 782d079483d4..354513fe13b6 100644--- a/frontend/src/scenes/data-pipelines/WebScriptsScene.tsx+++ b/frontend/src/scenes/data-pipelines/WebScriptsScene.tsx@@ -4,8 +4,8 @@ import { IconPlusSmall } from '@posthog/icons'import { LemonButton, LemonTabs } from '@posthog/lemon-ui'import { ActivityLog } from 'lib/components/ActivityLog/ActivityLog'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { sceneConfigurations } from 'scenes/scenes'import { Scene, SceneExport } from 'scenes/sceneTypes'import { urls } from 'scenes/urls'@@ -29,7 +29,7 @@ export function WebScriptsScene(): JSX.Element {const { setActiveTab } = useActions(webScriptsSceneLogic)const action = (- <AppShortcut+ <Shortcutname="NewPipelineApp"keybind={[keyBinds.new]}intent="New JS snippet"@@ -46,7 +46,7 @@ export function WebScriptsScene(): JSX.Element {>New web script</LemonButton>- </AppShortcut>+ </Shortcut>)const tabs = [diff --git a/frontend/src/scenes/data-warehouse/editor/QueryWindow.tsx b/frontend/src/scenes/data-warehouse/editor/QueryWindow.tsxindex fe568ccd3f8b..9b872aaaba30 100644--- a/frontend/src/scenes/data-warehouse/editor/QueryWindow.tsx+++ b/frontend/src/scenes/data-warehouse/editor/QueryWindow.tsx@@ -7,8 +7,8 @@ import { IconDatabase, IconGear, IconInfo, IconPlayFilled, IconSidebarClose } frimport { LemonDivider } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { IconCancel } from 'lib/lemon-ui/icons'import { LemonButton } from 'lib/lemon-ui/LemonButton'@@ -409,7 +409,7 @@ function RunButton({)return (- <AppShortcut+ <Shortcutname="SQLEditorRun"keybind={[keyBinds.run]}intent={isRunning && !onRunQuery ? 'Cancel query' : 'Run query'}@@ -439,7 +439,7 @@ function RunButton({>{isRunning && !onRunQuery ? 'Cancel' : 'Run'}</LemonButton>- </AppShortcut>+ </Shortcut>)}diff --git a/frontend/src/scenes/experiments/ExperimentView/ExperimentExecutionPathComparison.tsx b/frontend/src/scenes/experiments/ExperimentView/ExperimentExecutionPathComparison.tsxindex 1739c2028b76..c685d7eac85e 100644--- a/frontend/src/scenes/experiments/ExperimentView/ExperimentExecutionPathComparison.tsx+++ b/frontend/src/scenes/experiments/ExperimentView/ExperimentExecutionPathComparison.tsx@@ -3,7 +3,7 @@ import { useCallback, useState } from 'react'import { LemonButton, LemonTabs } from '@posthog/lemon-ui'-import { DebugCHQueries } from 'lib/components/AppShortcuts/utils/DebugCHQueries'+import { DebugCHQueries } from 'lib/components/Shortcuts/utils/DebugCHQueries'import { LemonTable, LemonTableColumns } from 'lib/lemon-ui/LemonTable'import { LemonTag } from 'lib/lemon-ui/LemonTag'import { Spinner } from 'lib/lemon-ui/Spinner'diff --git a/frontend/src/scenes/experiments/Experiments.tsx b/frontend/src/scenes/experiments/Experiments.tsxindex 81f023989419..f766fb5d22c0 100644--- a/frontend/src/scenes/experiments/Experiments.tsx+++ b/frontend/src/scenes/experiments/Experiments.tsx@@ -7,11 +7,11 @@ import { LemonInput, LemonSelect, LemonTag, Tooltip, lemonToast } from '@posthogimport { AccessControlAction } from 'lib/components/AccessControlAction'import { ActivityLog } from 'lib/components/ActivityLog/ActivityLog'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { ExperimentsHog } from 'lib/components/hedgehogs'import { MemberMultiSelect } from 'lib/components/MemberMultiSelect'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { dayjs } from 'lib/dayjs'import { LemonButton } from 'lib/lemon-ui/LemonButton'import { More } from 'lib/lemon-ui/LemonButton/More'@@ -110,7 +110,7 @@ const ExperimentsTableFilters = ({return (<div className="flex justify-between gap-2 flex-wrap"><div className="flex items-center gap-6">- <AppShortcut+ <Shortcutname="SearchExperiments"keybind={[keyBinds.filter]}intent="Search experiments"@@ -123,7 +123,7 @@ const ExperimentsTableFilters = ({onChange={(search) => onFiltersChange({ search, page: 1 })}value={filters.search || ''}/>- </AppShortcut>+ </Shortcut><div className="flex items-center gap-2"><span><b>Status</b>@@ -603,7 +603,7 @@ export function Experiments(): JSX.Element {active={true}context={{}}>- <AppShortcut+ <Shortcutname="NewExperiment"keybind={[keyBinds.new]}intent="New experiment"@@ -619,7 +619,7 @@ export function Experiments(): JSX.Element {><span className="pr-3">New experiment</span></LemonButton>- </AppShortcut>+ </Shortcut></MaxTool></div></AccessControlAction>diff --git a/frontend/src/scenes/feature-flags/FeatureFlags.tsx b/frontend/src/scenes/feature-flags/FeatureFlags.tsxindex 4411728d2014..d0d686152355 100644--- a/frontend/src/scenes/feature-flags/FeatureFlags.tsx+++ b/frontend/src/scenes/feature-flags/FeatureFlags.tsx@@ -8,13 +8,13 @@ import { LemonButton, LemonDialog, LemonTag, lemonToast } from '@posthog/lemon-uimport api from 'lib/api'import { AccessControlAction } from 'lib/components/AccessControlAction'import { ActivityLog } from 'lib/components/ActivityLog/ActivityLog'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { BulkUpdateTagsButton } from 'lib/components/BulkActions/BulkUpdateTagsButton'import { FeatureFlagHog } from 'lib/components/hedgehogs'import { ObjectTags } from 'lib/components/ObjectTags/ObjectTags'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'import PropertyFiltersDisplay from 'lib/components/PropertyFilters/components/PropertyFiltersDisplay'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { FEATURE_FLAGS } from 'lib/constants'import { More } from 'lib/lemon-ui/LemonButton/More'import { LemonDivider } from 'lib/lemon-ui/LemonDivider'@@ -752,7 +752,7 @@ export function FeatureFlags(): JSX.Element {resourceType={AccessControlResourceType.FeatureFlag}minAccessLevel={AccessControlLevel.Editor}>- <AppShortcut+ <Shortcutname="NewFeatureFlag"keybind={[keyBinds.new]}intent="New feature flag"@@ -779,7 +779,7 @@ export function FeatureFlags(): JSX.Element {>New</LemonButton>- </AppShortcut>+ </Shortcut></AccessControlAction>}/>diff --git a/frontend/src/scenes/heatmaps/scenes/heatmaps/HeatmapsScene.tsx b/frontend/src/scenes/heatmaps/scenes/heatmaps/HeatmapsScene.tsxindex ae4319add1f0..827b19c96c7b 100644--- a/frontend/src/scenes/heatmaps/scenes/heatmaps/HeatmapsScene.tsx+++ b/frontend/src/scenes/heatmaps/scenes/heatmaps/HeatmapsScene.tsx@@ -3,9 +3,9 @@ import { useActions, useValues } from 'kea'import { IconPlusSmall } from '@posthog/icons'import { LemonButton, LemonInput, LemonTable, LemonTableColumn, LemonTableColumns, Link } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { MemberSelect } from 'lib/components/MemberSelect'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { TZLabel } from 'lib/components/TZLabel'import { LemonBanner } from 'lib/lemon-ui/LemonBanner'import { More } from 'lib/lemon-ui/LemonButton/More'@@ -112,7 +112,7 @@ export function HeatmapsScene(): JSX.Element {type: sceneConfigurations[Scene.Heatmaps].iconType || 'default',}}actions={- <AppShortcut+ <Shortcutname="NewHeatmap"keybind={[keyBinds.new]}intent="New heatmap"@@ -129,7 +129,7 @@ export function HeatmapsScene(): JSX.Element {>New heatmap</LemonButton>- </AppShortcut>+ </Shortcut>}/><LemonBanner@@ -144,7 +144,7 @@ export function HeatmapsScene(): JSX.Element {</p></LemonBanner><div className="flex justify-between gap-2 items-center flex-wrap">- <AppShortcut+ <Shortcutname="SearchHeatmaps"keybind={[keyBinds.filter]}intent="Search heatmaps"@@ -157,7 +157,7 @@ export function HeatmapsScene(): JSX.Element {onChange={(value) => setHeatmapsFilters({ ...filters, search: value || '' })}value={filters.search || ''}/>- </AppShortcut>+ </Shortcut><div className="flex items-center gap-2"><span>Created by:</span>diff --git a/frontend/src/scenes/insights/InsightSceneHeader.tsx b/frontend/src/scenes/insights/InsightSceneHeader.tsxindex d21385da9544..7cf31c0bb649 100644--- a/frontend/src/scenes/insights/InsightSceneHeader.tsx+++ b/frontend/src/scenes/insights/InsightSceneHeader.tsx@@ -2,7 +2,7 @@ import { useValues } from 'kea'import { LemonBanner, LemonButton } from '@posthog/lemon-ui'-import { DebugCHQueries } from 'lib/components/AppShortcuts/utils/DebugCHQueries'+import { DebugCHQueries } from 'lib/components/Shortcuts/utils/DebugCHQueries'import { insightLogic } from 'scenes/insights/insightLogic'import { insightSceneLogic } from 'scenes/insights/insightSceneLogic'import { ReloadInsight } from 'scenes/saved-insights/ReloadInsight'diff --git a/frontend/src/scenes/max/components/HandsFreeButton.tsx b/frontend/src/scenes/max/components/HandsFreeButton.tsxindex b530aec451e6..822f7985a519 100644--- a/frontend/src/scenes/max/components/HandsFreeButton.tsx+++ b/frontend/src/scenes/max/components/HandsFreeButton.tsx@@ -3,8 +3,8 @@ import { useActions, useValues } from 'kea'import { IconMicrophone } from '@posthog/icons'import { LemonButton } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { handsFreeLogic } from '../handsFreeLogic'@@ -23,12 +23,7 @@ export function HandsFreeButton({ panelId }: HandsFreeButtonProps): JSX.Element}return (- <AppShortcut- name="maxHandsFree"- keybind={[keyBinds.maxHandsFree]}- intent="Enter hands-free"- interaction="click"- >+ <Shortcut name="maxHandsFree" keybind={[keyBinds.maxHandsFree]} intent="Enter hands-free" interaction="click"><LemonButtondata-attr="max-hands-free-toggle"size="small"@@ -38,6 +33,6 @@ export function HandsFreeButton({ panelId }: HandsFreeButtonProps): JSX.Elementtooltip="Enter hands-free"aria-label="Enter hands-free"/>- </AppShortcut>+ </Shortcut>)}diff --git a/frontend/src/scenes/max/components/HandsFreeSurface.tsx b/frontend/src/scenes/max/components/HandsFreeSurface.tsxindex 3e113b664322..be27f43008ab 100644--- a/frontend/src/scenes/max/components/HandsFreeSurface.tsx+++ b/frontend/src/scenes/max/components/HandsFreeSurface.tsx@@ -4,8 +4,8 @@ import { useActions, useValues } from 'kea'import { IconMicrophone } from '@posthog/icons'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'-import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'+import { useShortcut } from 'lib/components/Shortcuts/useShortcut'import { cn } from 'lib/utils/css-classes'import { HandsFreeStatus, handsFreeLogic } from '../handsFreeLogic'@@ -71,8 +71,8 @@ export function HandsFreeSurface({ panelId }: HandsFreeSurfaceProps): JSX.Elemen// Register the v-then-m exit shortcut while the surface is mounted.// HandsFreeButton owns the same shortcut for the "enter" path; same-name- // re-registration in appShortcutLogic handles the handover cleanly.- useAppShortcut({+ // re-registration in shortcutLogic handles the handover cleanly.+ useShortcut({name: 'maxHandsFree',keybind: [keyBinds.maxHandsFree],intent: 'Exit hands-free',@@ -87,6 +87,7 @@ export function HandsFreeSurface({ panelId }: HandsFreeSurfaceProps): JSX.Elemenconst isListening = status === 'listening'const isReconnecting = connection === 'reconnecting'const hasError = !!error+// Reconnecting / error visuals take precedence over the listening pulse so the user// isn't shown a green "listening" mic when the underlying connection is dead.const visualState: HandsFreeStatus | 'reconnecting' | 'error' = hasError@@ -95,7 +96,7 @@ export function HandsFreeSurface({ panelId }: HandsFreeSurfaceProps): JSX.Elemen? 'reconnecting': statusconst label = hasError ? 'Error' : isReconnecting ? 'Reconnecting' : STATUS_LABEL[status]- const pulseClass = isListening && !isReconnecting && !hasError+ const shouldPulse = isListening && !isReconnecting && !hasErrorreturn (<div@@ -111,11 +112,9 @@ export function HandsFreeSurface({ panelId }: HandsFreeSurfaceProps): JSX.ElemenonClick={toggleHandsFree}aria-label="Exit hands-free"data-attr="max-hands-free-exit"- className={cn(- 'hands-free-surface__mic',- `hands-free-surface__mic--${visualState}`,- pulseClass && 'hands-free-surface__mic--pulsing'- )}+ className={cn('hands-free-surface__mic', `hands-free-surface__mic--${visualState}`, {+ 'hands-free-surface__mic--pulsing': shouldPulse,+ })}><IconMicrophone /></button>@@ -123,7 +122,9 @@ export function HandsFreeSurface({ panelId }: HandsFreeSurfaceProps): JSX.Elemen<div className="hands-free-surface__bottom">{STATUS_EMOJI[visualState] && (<span- className={cn('hands-free-surface__emoji', pulseClass && 'hands-free-surface__emoji--pulsing')}+ className={cn('hands-free-surface__emoji', {+ 'hands-free-surface__emoji--pulsing': shouldPulse,+ })}aria-hidden>{STATUS_EMOJI[visualState]}diff --git a/frontend/src/scenes/models/ModelsScene.tsx b/frontend/src/scenes/models/ModelsScene.tsxindex ef1ca24cb51f..a45c8a203208 100644--- a/frontend/src/scenes/models/ModelsScene.tsx+++ b/frontend/src/scenes/models/ModelsScene.tsx@@ -5,8 +5,8 @@ import { LemonButton } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'import { AccessDenied } from 'lib/components/AccessDenied'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { LemonTab, LemonTabs } from 'lib/lemon-ui/LemonTabs'import { userHasAccess } from 'lib/utils/accessControlUtils'import { sceneConfigurations } from 'scenes/scenes'@@ -69,7 +69,7 @@ export function ModelsScene(): JSX.Element {actions={currentTab === 'views' ? (<div className="flex gap-2">- <AppShortcut+ <Shortcutname="NewModel"keybind={[keyBinds.new]}intent="New view"@@ -90,7 +90,7 @@ export function ModelsScene(): JSX.Element {Create view</LemonButton></AccessControlAction>- </AppShortcut>+ </Shortcut></div>) : undefined}diff --git a/frontend/src/scenes/notebooks/NotebooksScene.tsx b/frontend/src/scenes/notebooks/NotebooksScene.tsxindex f44c17373780..1c340b2da462 100644--- a/frontend/src/scenes/notebooks/NotebooksScene.tsx+++ b/frontend/src/scenes/notebooks/NotebooksScene.tsx@@ -4,8 +4,8 @@ import { IconEllipsis } from '@posthog/icons'import { LemonButton, LemonMenu, Tooltip, lemonToast } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { base64Encode } from 'lib/utils/base64'import { getTextFromFile, selectFiles } from 'lib/utils/file-utils'import { notebooksTableLogic } from 'scenes/notebooks/NotebooksTable/notebooksTableLogic'@@ -81,7 +81,7 @@ export function NotebooksScene(): JSX.Element {resourceType={AccessControlResourceType.Notebook}minAccessLevel={AccessControlLevel.Editor}>- <AppShortcut+ <Shortcutname="NewNotebook"keybind={[keyBinds.new]}intent="New notebook"@@ -97,7 +97,7 @@ export function NotebooksScene(): JSX.Element {>New notebook</LemonButton>- </AppShortcut>+ </Shortcut></AccessControlAction></>}diff --git a/frontend/src/scenes/saved-insights/SavedInsights.tsx b/frontend/src/scenes/saved-insights/SavedInsights.tsxindex c46be98ff050..938463587b8e 100644--- a/frontend/src/scenes/saved-insights/SavedInsights.tsx+++ b/frontend/src/scenes/saved-insights/SavedInsights.tsx@@ -36,10 +36,10 @@ import { LemonSelectOptions } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'import { ActivityLog } from 'lib/components/ActivityLog/ActivityLog'import { Alerts } from 'lib/components/Alerts/views/Alerts'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { BulkUpdateTagsButton } from 'lib/components/BulkActions/BulkUpdateTagsButton'import { ObjectTags } from 'lib/components/ObjectTags/ObjectTags'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { TZLabel } from 'lib/components/TZLabel'import { FEATURE_FLAGS } from 'lib/constants'import { dayjs } from 'lib/dayjs'@@ -751,7 +751,7 @@ export function NewInsightButton(): JSX.Element {resourceType={AccessControlResourceType.Insight}minAccessLevel={AccessControlLevel.Editor}>- <AppShortcut+ <Shortcutname="NewInsight"keybind={[keyBinds.new]}intent="New insight"@@ -770,7 +770,7 @@ export function NewInsightButton(): JSX.Element {New</LemonButton></LemonMenu>- </AppShortcut>+ </Shortcut></AccessControlAction>)}diff --git a/frontend/src/scenes/saved-insights/newInsightsMenu.tsx b/frontend/src/scenes/saved-insights/newInsightsMenu.tsxindex 97dfe278fc2d..08ef8ac63bab 100644--- a/frontend/src/scenes/saved-insights/newInsightsMenu.tsx+++ b/frontend/src/scenes/saved-insights/newInsightsMenu.tsx@@ -1,8 +1,8 @@import { useValues } from 'kea'import { router } from 'kea-router'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'-import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'+import { useShortcut } from 'lib/components/Shortcuts/useShortcut'import { FEATURE_FLAGS } from 'lib/constants'import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { eventUsageLogic } from 'lib/utils/eventUsageLogic'@@ -19,7 +19,7 @@ function useInsightTypeShortcut(disabled: boolean = false): void {const metadata = INSIGHT_TYPES_METADATA[type]- useAppShortcut({+ useShortcut({name: `NewInsight${type}`,keybind: [keybind],intent: `New ${metadata.name}`,diff --git a/frontend/src/scenes/session-recordings/SessionRecordings.tsx b/frontend/src/scenes/session-recordings/SessionRecordings.tsxindex a86617264775..a5b9a4c2403a 100644--- a/frontend/src/scenes/session-recordings/SessionRecordings.tsx+++ b/frontend/src/scenes/session-recordings/SessionRecordings.tsx@@ -6,10 +6,10 @@ import { IconDocument, IconGear, IconHeadset, IconOpenSidebar } from '@posthog/iimport { LemonBadge, LemonButton, Link } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { WarningHog } from 'lib/components/hedgehogs'import { LiveRecordingsCount } from 'lib/components/LiveUserCount'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonBanner } from 'lib/lemon-ui/LemonBanner'import { LemonTab, LemonTabs } from 'lib/lemon-ui/LemonTabs'@@ -88,7 +88,7 @@ function Header(): JSX.Element {resourceType={AccessControlResourceType.SessionRecording}minAccessLevel={AccessControlLevel.Editor}>- <AppShortcut+ <Shortcutname="NewRecordingCollection"keybind={[keyBinds.new]}intent="New collection"@@ -105,7 +105,7 @@ function Header(): JSX.Element {>New collection</LemonButton>- </AppShortcut>+ </Shortcut></AccessControlAction>)}diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsxindex b2a4cf4cda27..11e420963d61 100644--- a/frontend/src/scenes/settings/SettingsMap.tsx+++ b/frontend/src/scenes/settings/SettingsMap.tsx@@ -1868,11 +1868,11 @@ export const SETTINGS_MAP: SettingSection[] = [},{id: 'sidebar-auto-suggest',- title: 'Automatically suggest new apps',+ title: 'Automatically suggest new tools',description:- "When we detect you are using a new product, we'll automatically add it to your sidebar as a suggestion. We might also suggest products that are related to the ones you are using when we launch a new product.",+ "When we detect you are using a new tool, we'll automatically add it to your sidebar as a suggestion. We might also suggest tools that are related to the ones you are using when we launch a new one.",component: <SidebarAutoSuggestSetting />,- keywords: ['sidebar', 'suggest', 'products', 'apps', 'auto'],+ keywords: ['sidebar', 'suggest', 'products', 'apps', 'tools', 'auto'],},{id: 'mcp-hints',diff --git a/frontend/src/scenes/settings/user/SidebarProductSettings.tsx b/frontend/src/scenes/settings/user/SidebarProductSettings.tsxindex e75943006aea..6f684a1c7eef 100644--- a/frontend/src/scenes/settings/user/SidebarProductSettings.tsx+++ b/frontend/src/scenes/settings/user/SidebarProductSettings.tsx@@ -15,7 +15,7 @@ export function SidebarAutoSuggestSetting(): JSX.Element {}}checked={user?.allow_sidebar_suggestions ?? false}loading={userLoading}- label="Automatically suggest new apps"+ label="Automatically suggest new tools"bordered/>)diff --git a/frontend/src/scenes/surveys/Surveys.tsx b/frontend/src/scenes/surveys/Surveys.tsxindex 98aeb5e181dd..4b3af831e0c9 100644--- a/frontend/src/scenes/surveys/Surveys.tsx+++ b/frontend/src/scenes/surveys/Surveys.tsx@@ -4,8 +4,8 @@ import { LemonButton } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'import { ActivityLog } from 'lib/components/ActivityLog/ActivityLog'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { LemonTabs } from 'lib/lemon-ui/LemonTabs'import { sceneConfigurations } from 'scenes/scenes'import { Scene, SceneExport } from 'scenes/sceneTypes'@@ -42,7 +42,7 @@ function NewSurveyButton(): JSX.Element {return (<AccessControlAction resourceType={AccessControlResourceType.Survey} minAccessLevel={AccessControlLevel.Editor}>- <AppShortcut+ <Shortcutname="NewSurvey"keybind={[keyBinds.new]}intent="New survey"@@ -59,7 +59,7 @@ function NewSurveyButton(): JSX.Element {>New survey</LemonButton>- </AppShortcut>+ </Shortcut></AccessControlAction>)}diff --git a/frontend/src/scenes/surveys/components/SurveysTable.tsx b/frontend/src/scenes/surveys/components/SurveysTable.tsxindex fb7e30b9ba56..deb6977abd67 100644--- a/frontend/src/scenes/surveys/components/SurveysTable.tsx+++ b/frontend/src/scenes/surveys/components/SurveysTable.tsx@@ -4,9 +4,9 @@ import { router } from 'kea-router'import { LemonButton, LemonDialog, LemonDivider, LemonInput, LemonSelect, LemonTable, Spinner } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { MemberSelect } from 'lib/components/MemberSelect'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { dayjs } from 'lib/dayjs'import { More } from 'lib/lemon-ui/LemonButton/More'import { LemonTableColumn } from 'lib/lemon-ui/LemonTable'@@ -75,7 +75,7 @@ export function SurveysTable(): JSX.Element {<><div><div className={cn('flex flex-wrap gap-2 justify-between mb-0')}>- <AppShortcut+ <Shortcutname="SearchSurveys"keybind={[keyBinds.filter]}intent="Search surveys"@@ -88,7 +88,7 @@ export function SurveysTable(): JSX.Element {onChange={setSearchTerm}value={searchTerm || ''}/>- </AppShortcut>+ </Shortcut><div className="flex gap-2 items-center">{tab === SurveysTabs.Active && (diff --git a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsxindex 3d568067fcd1..3ec89e93279f 100644--- a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx+++ b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx@@ -5,11 +5,11 @@ import React, { useEffect, useState } from 'react'import { IconExpand45, IconInfo, IconLineGraph, IconOpenSidebar, IconX } from '@posthog/icons'import { LemonSegmentedButton, LemonSegmentedDropdown, LemonSkeleton } from '@posthog/lemon-ui'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'-import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'import { IntervalFilterStandalone } from 'lib/components/IntervalFilter/IntervalFilter'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'import { SetupTaskId, globalSetupLogic } from 'lib/components/ProductSetup'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'+import { useShortcut } from 'lib/components/Shortcuts/useShortcut'import { FEATURE_FLAGS } from 'lib/constants'import { useOnMountEffect } from 'lib/hooks/useOnMountEffect'import { IconOpenInNew, IconTableChart } from 'lib/lemon-ui/icons'@@ -807,7 +807,7 @@ const WebAnalyticsTabs = (): JSX.Element => {const { setProductTab } = useActions(webAnalyticsLogic)// Tab switching shortcuts- useAppShortcut({+ useShortcut({name: 'WebAnalyticsTab1',keybind: [keyBinds.tab1],intent: 'Web analytics tab',@@ -815,7 +815,7 @@ const WebAnalyticsTabs = (): JSX.Element => {callback: () => setProductTab(ProductTab.ANALYTICS),scope: Scene.WebAnalytics,})- useAppShortcut({+ useShortcut({name: 'WebAnalyticsTab2',keybind: [keyBinds.tab2],intent: 'Web vitals tab',@@ -823,7 +823,7 @@ const WebAnalyticsTabs = (): JSX.Element => {callback: () => setProductTab(ProductTab.WEB_VITALS),scope: Scene.WebAnalytics,})- useAppShortcut({+ useShortcut({name: 'WebAnalyticsTab3',keybind: [keyBinds.tab3],intent: 'Page reports tab',@@ -831,7 +831,7 @@ const WebAnalyticsTabs = (): JSX.Element => {callback: () => setProductTab(ProductTab.PAGE_REPORTS),scope: Scene.WebAnalytics,})- useAppShortcut({+ useShortcut({name: 'WebAnalyticsTab4',keybind: [keyBinds.tab4],intent: 'Health tab',diff --git a/frontend/src/scenes/web-analytics/WebAnalyticsFilters.tsx b/frontend/src/scenes/web-analytics/WebAnalyticsFilters.tsxindex 42988ca03faf..f56edf050b31 100644--- a/frontend/src/scenes/web-analytics/WebAnalyticsFilters.tsx+++ b/frontend/src/scenes/web-analytics/WebAnalyticsFilters.tsx@@ -6,8 +6,6 @@ import { useMemo, useState } from 'react'import { IconFilter, IconGlobe, IconPhone, IconPlus, IconShare } from '@posthog/icons'import { LemonBanner, LemonButton, LemonDivider, LemonInput, LemonSelect, Popover, Tooltip } from '@posthog/lemon-ui'-import { baseModifier } from 'lib/components/AppShortcuts/shortcuts'-import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'import { AuthorizedUrlListType, authorizedUrlListLogic } from 'lib/components/AuthorizedUrlList/authorizedUrlListLogic'import { CompareFilter } from 'lib/components/CompareFilter/CompareFilter'import { DateFilter } from 'lib/components/DateFilter/DateFilter'@@ -19,6 +17,8 @@ import {isEventPersonOrSessionPropertyFilter,isWebAnalyticsPropertyFilter,} from 'lib/components/PropertyFilters/utils'+import { baseModifier } from 'lib/components/Shortcuts/shortcuts'+import { useShortcut } from 'lib/components/Shortcuts/useShortcut'import { FEATURE_FLAGS } from 'lib/constants'import { IconLink, IconMonitor, IconWithCount } from 'lib/lemon-ui/icons/icons'import { LemonField } from 'lib/lemon-ui/LemonField'@@ -373,7 +373,7 @@ const WebAnalyticsDeviceToggle = (): JSX.Element => {const { featureFlags } = useValues(featureFlagLogic)// Device toggle shortcuts (Web Analytics-specific)- useAppShortcut({+ useShortcut({name: 'WebAnalyticsDesktop',keybind: [[...baseModifier, 'p']],intent: 'Filter desktop devices',@@ -381,7 +381,7 @@ const WebAnalyticsDeviceToggle = (): JSX.Element => {callback: () => setDeviceTypeFilter(deviceTypeFilter === 'Desktop' ? null : 'Desktop'),scope: Scene.WebAnalytics,})- useAppShortcut({+ useShortcut({name: 'WebAnalyticsMobile',keybind: [[...baseModifier, 'm']],intent: 'Filter mobile devices',@@ -501,7 +501,7 @@ function FiltersPopover(): JSX.Element {const { featureFlags } = useValues(featureFlagLogic)// Toggle filters shortcut- useAppShortcut({+ useShortcut({name: 'WebAnalyticsFilters',keybind: [[...baseModifier, 'f']],intent: 'Toggle filters',diff --git a/frontend/src/scenes/web-analytics/tabs/marketing-analytics/frontend/components/MarketingAnalyticsFilters/MarketingAnalyticsFilters.tsx b/frontend/src/scenes/web-analytics/tabs/marketing-analytics/frontend/components/MarketingAnalyticsFilters/MarketingAnalyticsFilters.tsxindex 7fd75149ae44..581cab70cfda 100644--- a/frontend/src/scenes/web-analytics/tabs/marketing-analytics/frontend/components/MarketingAnalyticsFilters/MarketingAnalyticsFilters.tsx+++ b/frontend/src/scenes/web-analytics/tabs/marketing-analytics/frontend/components/MarketingAnalyticsFilters/MarketingAnalyticsFilters.tsx@@ -1,11 +1,11 @@import { BindLogic } from 'kea'import { useActions, useValues } from 'kea'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { CompareFilter } from 'lib/components/CompareFilter/CompareFilter'import { DateFilter } from 'lib/components/DateFilter/DateFilter'import { FilterBar } from 'lib/components/FilterBar'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { Scene } from 'scenes/sceneTypes'import { dataNodeCollectionLogic } from '~/queries/nodes/DataNode/dataNodeCollectionLogic'@@ -28,7 +28,7 @@ export const MarketingAnalyticsFilters = ({ tabs }: { tabs: JSX.Element }): JSX.top={tabs}left={<div className="flex items-center gap-4">- <AppShortcut+ <Shortcutname="MarketingAnalyticsRefresh"keybind={[keyBinds.refresh]}intent="Refresh data"@@ -36,13 +36,13 @@ export const MarketingAnalyticsFilters = ({ tabs }: { tabs: JSX.Element }): JSX.scope={Scene.MarketingAnalytics}><ReloadAll />- </AppShortcut>+ </Shortcut><ConversionGoalFilterButton /></div>}right={<>- <AppShortcut+ <Shortcutname="MarketingAnalyticsAddIntegration"keybind={[keyBinds.new]}intent="Add integration"@@ -50,7 +50,7 @@ export const MarketingAnalyticsFilters = ({ tabs }: { tabs: JSX.Element }): JSX.scope={Scene.MarketingAnalytics}><AddIntegrationButton />- </AppShortcut>+ </Shortcut><IntegrationFilter /><DateFilterallowTimePrecisiondiff --git a/posthog/schema_enums.py b/posthog/schema_enums.pyindex 0caa68d635a6..fbbae6ff41b9 100644--- a/posthog/schema_enums.py+++ b/posthog/schema_enums.py@@ -1887,7 +1887,7 @@ class FileSystemIconType(StrEnum):INSIGHT_HOG = "insight/hog"TEAM_ACTIVITY = "team_activity"HOME = "home"- APPS = "apps"+ TOOLS = "tools"LIVE = "live"CHAT = "chat"SEARCH = "search"diff --git a/products/actions/frontend/components/NewActionButton.tsx b/products/actions/frontend/components/NewActionButton.tsxindex 6bd24e3899e0..d927106ba62e 100644--- a/products/actions/frontend/components/NewActionButton.tsx+++ b/products/actions/frontend/components/NewActionButton.tsx@@ -1,8 +1,8 @@import { IconCursorClick, IconPencil } from '@posthog/icons'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { LemonButton } from 'lib/lemon-ui/LemonButton'import { Link } from 'lib/lemon-ui/Link'import { Scene } from 'scenes/sceneTypes'@@ -13,7 +13,7 @@ import { AccessControlLevel, AccessControlResourceType } from '~/types'export function NewActionButton({ onSelectOption }: { onSelectOption?: () => void }): JSX.Element {return (<AccessControlAction resourceType={AccessControlResourceType.Action} minAccessLevel={AccessControlLevel.Editor}>- <AppShortcut+ <Shortcutname="NewAction"keybind={[keyBinds.new]}intent="New action"@@ -81,7 +81,7 @@ export function NewActionButton({ onSelectOption }: { onSelectOption?: () => voi>New action</LemonButton>- </AppShortcut>+ </Shortcut></AccessControlAction>)}diff --git a/products/ai_observability/frontend/AIObservabilityScene.tsx b/products/ai_observability/frontend/AIObservabilityScene.tsxindex 871976cbbea2..a5c019d340a7 100644--- a/products/ai_observability/frontend/AIObservabilityScene.tsx+++ b/products/ai_observability/frontend/AIObservabilityScene.tsx@@ -5,10 +5,10 @@ import React from 'react'import { LemonButton, LemonTab, LemonTabs, Link, Spinner } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'-import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'import { DateFilter } from 'lib/components/DateFilter/DateFilter'import { PropertyFilters } from 'lib/components/PropertyFilters/PropertyFilters'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'+import { useShortcut } from 'lib/components/Shortcuts/useShortcut'import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'import { TestAccountFilterSwitch } from 'lib/components/TestAccountFiltersSwitch'import { dayjs } from 'lib/dayjs'@@ -451,7 +451,7 @@ function AIObservabilitySceneContent(): JSX.Element {const { push } = useActions(router)// Tab switching shortcuts- useAppShortcut({+ useShortcut({name: 'AIObservabilityTab1',keybind: [keyBinds.tab1],intent: 'Go to Dashboard',@@ -459,7 +459,7 @@ function AIObservabilitySceneContent(): JSX.Element {callback: () => push(combineUrl(urls.aiObservabilityDashboard(), searchParams).url),scope: Scene.AIObservability,})- useAppShortcut({+ useShortcut({name: 'AIObservabilityTab2',keybind: [keyBinds.tab2],intent: 'Go to Traces',@@ -467,7 +467,7 @@ function AIObservabilitySceneContent(): JSX.Element {callback: () => push(combineUrl(urls.aiObservabilityTraces(), searchParams).url),scope: Scene.AIObservability,})- useAppShortcut({+ useShortcut({name: 'AIObservabilityTab3',keybind: [keyBinds.tab3],intent: 'Go to Generations',@@ -475,7 +475,7 @@ function AIObservabilitySceneContent(): JSX.Element {callback: () => push(combineUrl(urls.aiObservabilityGenerations(), searchParams).url),scope: Scene.AIObservability,})- useAppShortcut({+ useShortcut({name: 'AIObservabilityTab4',keybind: [keyBinds.tab4],intent: 'Go to Users',@@ -483,7 +483,7 @@ function AIObservabilitySceneContent(): JSX.Element {callback: () => push(combineUrl(urls.aiObservabilityUsers(), searchParams).url),scope: Scene.AIObservability,})- useAppShortcut({+ useShortcut({name: 'AIObservabilityTab5',keybind: [keyBinds.tab5],intent: 'Go to Errors',diff --git a/products/customer_analytics/frontend/CustomerAnalyticsFilters.tsx b/products/customer_analytics/frontend/CustomerAnalyticsFilters.tsxindex 9d8d827a5b63..4a376dda7f30 100644--- a/products/customer_analytics/frontend/CustomerAnalyticsFilters.tsx+++ b/products/customer_analytics/frontend/CustomerAnalyticsFilters.tsx@@ -2,11 +2,11 @@ import { useActions, useValues } from 'kea'import { LemonSegmentedButton, LemonSelect, Tooltip } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { DateFilter } from 'lib/components/DateFilter/DateFilter'import { CUSTOM_OPTION_KEY } from 'lib/components/DateFilter/types'import { FilterBar } from 'lib/components/FilterBar'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { TestAccountFilterSwitch } from 'lib/components/TestAccountFiltersSwitch'import { dayjs } from 'lib/dayjs'import { groupsAccessLogic } from 'lib/introductions/groupsAccessLogic'@@ -147,7 +147,7 @@ export function CustomerAnalyticsFilters(): JSX.Element {right={<div className="flex flex-row items-center gap-2"><TestAccountFilterSwitch checked={filterTestAccounts} onChange={setFilterTestAccounts} />- <AppShortcut+ <Shortcutname="CustomerAnalyticsRefresh"keybind={[keyBinds.refresh]}intent="Refresh data"@@ -157,7 +157,7 @@ export function CustomerAnalyticsFilters(): JSX.Element {<Tooltip title="Refresh data"><ReloadAll /></Tooltip>- </AppShortcut>+ </Shortcut></div>}/>diff --git a/products/customer_analytics/frontend/CustomerAnalyticsScene.tsx b/products/customer_analytics/frontend/CustomerAnalyticsScene.tsxindex 81801eadf1f6..6c45af730348 100644--- a/products/customer_analytics/frontend/CustomerAnalyticsScene.tsx+++ b/products/customer_analytics/frontend/CustomerAnalyticsScene.tsx@@ -4,9 +4,9 @@ import { combineUrl, router } from 'kea-router'import { IconGear } from '@posthog/icons'import { LemonButton, LemonTab, LemonTabs } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { NotFound } from 'lib/components/NotFound'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { FEATURE_FLAGS } from 'lib/constants'import { useOnMountEffect } from 'lib/hooks/useOnMountEffect'import { groupsAccessLogic } from 'lib/introductions/groupsAccessLogic'@@ -192,7 +192,7 @@ function CustomerAnalyticsSceneContent(): JSX.Element {<DeleteJourneyButton /></>) : (- <AppShortcut+ <Shortcutname="CustomerAnalyticsSettings"keybind={[keyBinds.settings]}intent="Configure customer analytics"@@ -220,7 +220,7 @@ function CustomerAnalyticsSceneContent(): JSX.Element {children="Configure"data-attr="customer-analytics-config"/>- </AppShortcut>+ </Shortcut>)}</>}diff --git a/products/data_warehouse/frontend/scenes/SourcesScene/SourcesScene.tsx b/products/data_warehouse/frontend/scenes/SourcesScene/SourcesScene.tsxindex f9e03b94dd24..f281d784b436 100644--- a/products/data_warehouse/frontend/scenes/SourcesScene/SourcesScene.tsx+++ b/products/data_warehouse/frontend/scenes/SourcesScene/SourcesScene.tsx@@ -1,8 +1,8 @@import { IconPlusSmall } from '@posthog/icons'import { LemonButton } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { sceneConfigurations } from 'scenes/scenes'import { Scene, SceneExport } from 'scenes/sceneTypes'import { urls } from 'scenes/urls'@@ -22,7 +22,7 @@ export const scene: SceneExport = {export function SourcesScene(): JSX.Element {const action = (- <AppShortcut+ <Shortcutname="NewPipelineSource"keybind={[keyBinds.new]}intent="New source"@@ -39,7 +39,7 @@ export function SourcesScene(): JSX.Element {>New source</LemonButton>- </AppShortcut>+ </Shortcut>)return (diff --git a/products/early_access_features/frontend/EarlyAccessFeatures.tsx b/products/early_access_features/frontend/EarlyAccessFeatures.tsxindex 7b51846bb17b..3fb7248370b7 100644--- a/products/early_access_features/frontend/EarlyAccessFeatures.tsx+++ b/products/early_access_features/frontend/EarlyAccessFeatures.tsx@@ -3,9 +3,9 @@ import { router } from 'kea-router'import { LemonButton, LemonInput, LemonTable, LemonTag } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { LemonTableLink } from 'lib/lemon-ui/LemonTable/LemonTableLink'import { sceneConfigurations } from 'scenes/scenes'import { Scene, SceneExport } from 'scenes/sceneTypes'@@ -47,7 +47,7 @@ export function EarlyAccessFeatures(): JSX.Element {type: sceneConfigurations[Scene.EarlyAccessFeatures].iconType || 'default_icon_type',}}actions={- <AppShortcut+ <Shortcutname="NewEarlyAccessFeature"keybind={[keyBinds.new]}intent="New early access feature"@@ -63,7 +63,7 @@ export function EarlyAccessFeatures(): JSX.Element {>New feature</LemonButton>- </AppShortcut>+ </Shortcut>}/>diff --git a/products/endpoints/frontend/EndpointsScene.tsx b/products/endpoints/frontend/EndpointsScene.tsxindex 3ee3b55931ff..ef632bd0728b 100644--- a/products/endpoints/frontend/EndpointsScene.tsx+++ b/products/endpoints/frontend/EndpointsScene.tsx@@ -5,10 +5,10 @@ import { IconPlusSmall } from '@posthog/icons'import { LemonButton } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { BigLeaguesHog } from 'lib/components/hedgehogs'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { LemonTab, LemonTabs } from 'lib/lemon-ui/LemonTabs'import { sceneConfigurations } from 'scenes/scenes'import { Scene, SceneExport } from 'scenes/sceneTypes'@@ -65,7 +65,7 @@ export function EndpointsScene(): JSX.Element {type: sceneConfigurations[Scene.EndpointsScene].iconType || 'default_icon_type',}}actions={- <AppShortcut+ <Shortcutname="EndpointsNew"keybind={[keyBinds.new]}intent="New endpoint"@@ -95,7 +95,7 @@ export function EndpointsScene(): JSX.Element {New</LemonButton></AccessControlAction>- </AppShortcut>+ </Shortcut>}/><ProductIntroductiondiff --git a/products/links/frontend/LinksScene.tsx b/products/links/frontend/LinksScene.tsxindex 1c01371df118..074a758a6607 100644--- a/products/links/frontend/LinksScene.tsx+++ b/products/links/frontend/LinksScene.tsx@@ -4,9 +4,9 @@ import { router } from 'kea-router'import { IconPlus } from '@posthog/icons'import { LemonBanner, LemonButton, LemonTable, LemonTableColumn, Link } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { More } from 'lib/lemon-ui/LemonButton/More'import { LemonMenuOverlay } from 'lib/lemon-ui/LemonMenu/LemonMenu'import { createdAtColumn, createdByColumn } from 'lib/lemon-ui/LemonTable/columnUtils'@@ -105,7 +105,7 @@ export function LinksScene(): JSX.Element {type: sceneConfigurations[Scene.Links].iconType || 'default_icon_type',}}actions={- <AppShortcut+ <Shortcutname="NewLink"keybind={[keyBinds.new]}intent="Create link"@@ -139,7 +139,7 @@ export function LinksScene(): JSX.Element {>Create link</LemonButton>- </AppShortcut>+ </Shortcut>}/>diff --git a/products/logs/frontend/components/LogsViewer/Filters/LogsFilterBar/LogsFilterBar.tsx b/products/logs/frontend/components/LogsViewer/Filters/LogsFilterBar/LogsFilterBar.tsxindex 9b1975a7937a..6c5a5d2caa71 100644--- a/products/logs/frontend/components/LogsViewer/Filters/LogsFilterBar/LogsFilterBar.tsx+++ b/products/logs/frontend/components/LogsViewer/Filters/LogsFilterBar/LogsFilterBar.tsx@@ -6,8 +6,8 @@ import { useRef, useState } from 'react'import { IconMinusSquare, IconPlusSquare, IconRefresh } from '@posthog/icons'import { LemonButton, LemonDropdown } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { InfiniteSelectResults } from 'lib/components/TaxonomicFilter/InfiniteSelectResults'import { TaxonomicFilterSearchInput } from 'lib/components/TaxonomicFilter/TaxonomicFilter'import { taxonomicFilterLogic } from 'lib/components/TaxonomicFilter/taxonomicFilterLogic'@@ -122,7 +122,7 @@ export const LogsQueryControls = (): JSX.Element => {loading={logsLoading || liveTailRunning}disabledReason={liveTailRunning ? 'Disable live tail to manually refresh' : undefined}/>- <AppShortcut+ <Shortcutname="LogsLiveTail"keybind={[keyBinds.edit]}intent={liveTailRunning ? 'Stop live tail' : 'Start live tail'}@@ -138,7 +138,7 @@ export const LogsQueryControls = (): JSX.Element => {>Live tail</LemonButton>- </AppShortcut>+ </Shortcut></div>)}diff --git a/products/revenue_analytics/frontend/RevenueAnalyticsFilters.tsx b/products/revenue_analytics/frontend/RevenueAnalyticsFilters.tsxindex 7279c8051d7e..ad8dfcbdea3a 100644--- a/products/revenue_analytics/frontend/RevenueAnalyticsFilters.tsx+++ b/products/revenue_analytics/frontend/RevenueAnalyticsFilters.tsx@@ -4,13 +4,13 @@ import { useState } from 'react'import { IconFilter, IconGear, IconGraph, IconLineGraph, IconPlusSmall } from '@posthog/icons'import { LemonButton, LemonSelect, LemonSelectOptions, Popover, Tooltip } from '@posthog/lemon-ui'-import { AppShortcut } from 'lib/components/AppShortcuts/AppShortcut'-import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { DateFilter } from 'lib/components/DateFilter/DateFilter'import { CUSTOM_OPTION_KEY } from 'lib/components/DateFilter/types'import { FilterBar } from 'lib/components/FilterBar'import { PropertyFilters } from 'lib/components/PropertyFilters/PropertyFilters'import { isRevenueAnalyticsPropertyFilter } from 'lib/components/PropertyFilters/utils'+import { Shortcut } from 'lib/components/Shortcuts/Shortcut'+import { keyBinds } from 'lib/components/Shortcuts/shortcuts'import { TaxonomicFilter } from 'lib/components/TaxonomicFilter/TaxonomicFilter'import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'import { dayjs } from 'lib/dayjs'@@ -102,7 +102,7 @@ export const RevenueAnalyticsFilters = (): JSX.Element => {}right={<>- <AppShortcut+ <Shortcutname="RevenueAnalyticsSettings"keybind={[keyBinds.settings]}intent="Open settings"@@ -118,9 +118,9 @@ export const RevenueAnalyticsFilters = (): JSX.Element => {className="hidden md:flex"/></Tooltip>- </AppShortcut>+ </Shortcut>- <AppShortcut+ <Shortcutname="RevenueAnalyticsRefresh"keybind={[keyBinds.refresh]}intent="Refresh data"@@ -130,7 +130,7 @@ export const RevenueAnalyticsFilters = (): JSX.Element => {<Tooltip title="Refresh data"><ReloadAll iconOnly /></Tooltip>- </AppShortcut>+ </Shortcut><LemonSelectvalue={insightsDisplayMode}@@ -206,7 +206,7 @@ const RevenueAnalyticsPropertyFilters = (): JSX.Element => {</div>}>- <AppShortcut+ <Shortcutname="RevenueAnalyticsFilters"keybind={[keyBinds.filter]}intent="Toggle filters"@@ -226,7 +226,7 @@ const RevenueAnalyticsPropertyFilters = (): JSX.Element => {>Filters</LemonButton>- </AppShortcut>+ </Shortcut></Popover></MaxTool>