Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat(web): open goto-anything as a bottom drawer and replace search syntax with scopes (#45675)

yyhe994c3ffe948
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json
index e2e57f92e38..cfb049ef8e1 100644
--- a/oxlint-suppressions.json
+++ b/oxlint-suppressions.json
@@ -122,11 +122,6 @@
"count": 1
}
},
- "web/app/components/app-sidebar/app-detail-top.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 4
- }
- },
"web/app/components/app-sidebar/app-info/app-info-header.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 1
@@ -137,11 +132,6 @@
"count": 4
}
},
- "web/app/components/app-sidebar/dataset-detail-top.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 4
- }
- },
"web/app/components/app-sidebar/dataset-info/index.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 1
@@ -3678,11 +3668,6 @@
"count": 2
}
},
- "web/app/components/snippets/components/snippet-detail-top.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 4
- }
- },
"web/app/components/snippets/components/snippet-header/run-mode.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 4
@@ -6230,11 +6215,6 @@
"count": 2
}
},
- "web/features/agent-v2/agent-detail/navigation.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 9
- }
- },
"web/features/agent-v2/agent-detail/section-surface.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 2
@@ -6455,11 +6435,6 @@
"count": 6
}
},
- "web/features/new-rag/space/shell.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 6
- }
- },
"web/features/new-rag/upgrade/knowledge-upgrade-card.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 2
@@ -6513,9 +6488,6 @@
}
},
"web/features/skills/detail/file-tree.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 8
- },
"no-restricted-globals": {
"count": 1
}
diff --git a/packages/dify-ui/src/drawer/index.tsx b/packages/dify-ui/src/drawer/index.tsx
index 78f93d97031..98e29d8a459 100644
--- a/packages/dify-ui/src/drawer/index.tsx
+++ b/packages/dify-ui/src/drawer/index.tsx
@@ -14,6 +14,7 @@ const DrawerPortal = BaseDrawer.Portal
const DrawerTitle = BaseDrawer.Title
const DrawerDescription = BaseDrawer.Description
const DrawerClose = BaseDrawer.Close
+const DrawerVirtualKeyboardProvider = BaseDrawer.VirtualKeyboardProvider
const createDrawerHandle = BaseDrawer.createHandle
type DrawerActions = BaseDrawer.Root.Actions
@@ -43,6 +44,7 @@ type DrawerPortalProps = BaseDrawer.Portal.Props
type DrawerTitleProps = BaseDrawer.Title.Props
type DrawerDescriptionProps = BaseDrawer.Description.Props
type DrawerCloseProps = BaseDrawer.Close.Props
+type DrawerVirtualKeyboardProviderProps = BaseDrawer.VirtualKeyboardProvider.Props
type DrawerBackdropProps = BaseDrawer.Backdrop.Props
@@ -134,6 +136,7 @@ export {
DrawerTitle,
DrawerTrigger,
DrawerViewport,
+ DrawerVirtualKeyboardProvider,
}
export type {
@@ -158,4 +161,5 @@ export type {
DrawerTitleProps,
DrawerTriggerProps,
DrawerViewportProps,
+ DrawerVirtualKeyboardProviderProps,
}
diff --git a/web/app/components/app-sidebar/__tests__/app-detail-top.spec.tsx b/web/app/components/app-sidebar/__tests__/app-detail-top.spec.tsx
index 65479e816e1..b245913c340 100644
--- a/web/app/components/app-sidebar/__tests__/app-detail-top.spec.tsx
+++ b/web/app/components/app-sidebar/__tests__/app-detail-top.spec.tsx
@@ -1,7 +1,7 @@
import { Dialog, DialogPopup, DialogPortal, DialogTitle } from '@langgenius/dify-ui/dialog'
import { screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { renderWithConsoleQuery as render } from '@/test/console/query-data'
import { AppDetailTop } from '../app-detail-top'
diff --git a/web/app/components/app-sidebar/__tests__/dataset-detail-top.spec.tsx b/web/app/components/app-sidebar/__tests__/dataset-detail-top.spec.tsx
index fa0f56535ad..e168b578cc6 100644
--- a/web/app/components/app-sidebar/__tests__/dataset-detail-top.spec.tsx
+++ b/web/app/components/app-sidebar/__tests__/dataset-detail-top.spec.tsx
@@ -1,7 +1,7 @@
import { Dialog, DialogPopup, DialogPortal, DialogTitle } from '@langgenius/dify-ui/dialog'
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { DatasetDetailTop } from '../dataset-detail-top'
function TestGotoAnythingDialog() {
diff --git a/web/app/components/app-sidebar/app-detail-top.tsx b/web/app/components/app-sidebar/app-detail-top.tsx
index f91de0a757b..a5d8503323a 100644
--- a/web/app/components/app-sidebar/app-detail-top.tsx
+++ b/web/app/components/app-sidebar/app-detail-top.tsx
@@ -14,7 +14,7 @@ import { formatForDisplay } from '@tanstack/react-hotkeys'
import { useTranslation } from 'react-i18next'
import { useStudioListHref } from '@/app/components/apps/list-navigation-state'
import { DetailSidebarToggleButton } from '@/app/components/detail-sidebar/toggle-button'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { GOTO_ANYTHING_HOTKEY } from '@/app/components/goto-anything/hotkeys'
import Link from '@/next/link'
@@ -44,14 +44,14 @@ export function AppDetailTop({ expand = true, onToggle }: AppDetailTopProps) {
}
return (
- <div className="flex items-center py-2 pr-2 pl-1">
+ <div className="flex items-center py-2 ps-1 pe-2">
<Breadcrumb aria-label={t(($) => $['menus.apps'], { ns: 'navigation' })} className="flex-1">
<BreadcrumbList className="gap-px">
<BreadcrumbItem className="shrink-0">
<BreadcrumbLink
render={<Link href="/" />}
aria-label={t(($) => $['mainNav.home'], { ns: 'navigation' })}
- className="gap-0 rounded-lg py-2 pr-1.5 pl-0.5 hover:bg-background-default-hover"
+ className="gap-0 rounded-lg py-2 ps-0.5 pe-1.5 hover:bg-background-default-hover"
>
<span aria-hidden className="i-ri-arrow-left-s-line size-4" />
<span aria-hidden className="i-custom-vender-main-nav-app-home size-4" />
diff --git a/web/app/components/app-sidebar/dataset-detail-top.tsx b/web/app/components/app-sidebar/dataset-detail-top.tsx
index becd1caa7cf..3746421da6b 100644
--- a/web/app/components/app-sidebar/dataset-detail-top.tsx
+++ b/web/app/components/app-sidebar/dataset-detail-top.tsx
@@ -13,7 +13,7 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '@langgenius/dify-ui/too
import { formatForDisplay } from '@tanstack/react-hotkeys'
import { useTranslation } from 'react-i18next'
import { DetailSidebarToggleButton } from '@/app/components/detail-sidebar/toggle-button'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { GOTO_ANYTHING_HOTKEY } from '@/app/components/goto-anything/hotkeys'
import Link from '@/next/link'
@@ -42,7 +42,7 @@ export function DatasetDetailTop({ expand = true, onToggle }: DatasetDetailTopPr
}
return (
- <div className="flex items-center py-2 pr-2 pl-1">
+ <div className="flex items-center py-2 ps-1 pe-2">
<Breadcrumb
aria-label={t(($) => $['menus.datasets'], { ns: 'navigation' })}
className="flex-1"
@@ -52,7 +52,7 @@ export function DatasetDetailTop({ expand = true, onToggle }: DatasetDetailTopPr
<BreadcrumbLink
render={<Link href="/" />}
aria-label={t(($) => $['mainNav.home'], { ns: 'navigation' })}
- className="gap-0 rounded-lg py-2 pr-1.5 pl-0.5 hover:bg-background-default-hover"
+ className="gap-0 rounded-lg py-2 ps-0.5 pe-1.5 hover:bg-background-default-hover"
>
<span aria-hidden className="i-ri-arrow-left-s-line size-4" />
<span aria-hidden className="i-custom-vender-main-nav-app-home size-4" />
diff --git a/web/app/components/goto-anything/README.md b/web/app/components/goto-anything/README.md
index d87f0d4a24f..6c35a8115a3 100644
--- a/web/app/components/goto-anything/README.md
+++ b/web/app/components/goto-anything/README.md
@@ -4,22 +4,35 @@ Global command palette that coordinates detached dialog triggers, typed search,
## State Ownership
-- The detached Dialog handle owns open state and trigger focus restoration.
-- The dialog component owns the transient search input and selected plugin installer state.
+- The detached Dialog handle owns desktop open state and trigger focus restoration. Below the `md` breakpoint the palette opens in a bottom Drawer through its own detached handle; the palette controls that Drawer so the global shortcut and a widening viewport can open or close it.
+- Each surface renders its own search session inside the popup. The session owns the typed term, the selected search scope, and the open command page, so closing a surface unmounts and resets them. The plugin installer lives outside because it outlives the session.
+- The search pipeline reads one query string. Scope and page are encoded as its prefix (`@app term`, `/theme term`); the prefix never appears in the UI.
- TanStack Query owns remote search lifecycle and cache state for each generated query contract.
- Autocomplete owns option registration, highlighting, keyboard navigation, and item activation.
-- ScrollArea Viewport is the only results scroll container; Autocomplete List is a listbox for
- search results and a named grid for command cards.
+- ScrollArea Viewport is the only results scroll container; Autocomplete List is the results listbox.
Search actions adapt application, knowledge, plugin, workflow, and RAG owners into palette results. They must not duplicate those features' authorization, navigation, or query contracts.
## Discovery and interaction
-- The empty input shows available featured commands followed by search scopes in a two-column grid.
-- `/` browses all available commands; `@` browses search scopes. The empty view also offers footer buttons that fill either prefix and return focus to the input. Once typing begins, the footer shows the result count and an Enter hint when an item is available.
-- Ordinary text searches localized command names, existing aliases, submenu choices, and resources. Commands stay usable while remote searches load or fail.
-- Grid navigation follows the displayed rows; ordinary results use a listbox. Pointer and keyboard use the same highlighted state, while DOM focus stays in the input.
-- Selecting a submenu or scope keeps the palette open and the input editable. Clearing the input returns to the home view. Escape dismisses the dialog.
+- Typing with nothing selected searches every resource and command; prefixes are never required.
+- The empty input lists every available command as a single-line row named in plain language. Commands with choices open a page; other commands run directly.
+- A search can be narrowed to one resource type (a scope). With an empty term, a scope lists that resource's first page.
+- In the desktop dialog, the scope or page is a token at the start of the input. The empty input lists scopes after the commands, a term that names a scope suggests it, and a bare `@` lists them; the placeholder teaches `@`. Typed `@scope ` and `/command ` prefixes become tokens.
+- In the bottom drawer, a scope bar under the input owns scope selection; only a page shows as a token.
+- Results stay grouped by type. Resource rows show a one-line description; command and scope rows show a title only and are shorter. When some providers fail, a visible notice sits above the remaining results.
+- The open surface, not the viewport width, decides between tokens and the scope bar: a sidebar trigger can open the dialog on a narrow screen. A scope that becomes unavailable falls back to all; opening a command page leaves the scope behind.
+
+## Keyboard
+
+- The desktop dialog follows the APG modal dialog and combobox patterns: focus starts in the input and stays there, Up and Down move the active option, Enter activates it, and one Escape closes it and returns focus to the trigger. Base UI owns the focus trap.
+- Backspace in an empty input removes the token: it leaves a page or, in the dialog, clears the scope. A held key only deletes text; a fresh press removes the token. The token's remove button does the same for pointers, and the screen-reader hint mentions token removal only while a token is shown.
+- The drawer's Escape clears the term before closing, like Base UI's mobile docs search.
+- The drawer's scope bar is an APG radio group: Tab enters on the checked scope, arrow keys move and select, and the focus ring is drawn inset so the scroller cannot clip it.
+- Escape and Backspace do nothing during IME composition.
+
+## Runtime
+
- A fixed command catalog is available on the first render. Its lookup registry only indexes definitions; it has no registration effects, subscriptions, or separate execution bus.
- React owns the current language, workspace availability, and Studio app context. Search and execution receive this context explicitly; command definitions never retain user or request state. Execution rechecks availability.
- Browser effects (navigation, external windows, theme/language changes, generator opening) run only when a result is activated. The palette remains lazily loaded on the client; importing/searching the catalog is safe during server rendering.
diff --git a/web/app/components/goto-anything/__tests__/index.spec.tsx b/web/app/components/goto-anything/__tests__/index.spec.tsx
index baf64a072ef..245949fe29e 100644
--- a/web/app/components/goto-anything/__tests__/index.spec.tsx
+++ b/web/app/components/goto-anything/__tests__/index.spec.tsx
@@ -37,6 +37,9 @@ const api = vi.hoisted(() => ({
agentEnabled: true,
pathname: '/',
}))
+vi.mock('@langgenius/dify-ui/use-media-query', () => ({
+ useMediaQuery: (query: string) => query === '(width >= 48rem)',
+}))
vi.mock('@/next/navigation', async (importOriginal) => ({
...(await importOriginal<typeof import('@/next/navigation')>()),
useRouter: () => ({ push: api.push, refresh: api.refresh }),
@@ -239,14 +242,14 @@ describe('search shortcut ownership', () => {
expect(save).toHaveBeenCalledTimes(2)
})
- it('opens search, keeps the current query on a repeated shortcut, and clears it after closing', async () => {
+ it('opens search, keeps the query on a repeated shortcut, and resets term and scope after closing', async () => {
const { user } = setup()
const input = await openSearch()
- expect(input).toHaveFocus()
- await user.type(input, 'research')
+ await user.type(input, '@app research')
+ const scopedInput = screen.getByRole('combobox', { name: 'app.gotoAnything.groups.apps' })
triggerSearchShortcut()
- expect(input).toHaveValue('research')
- expect(input).toHaveFocus()
+ expect(scopedInput).toHaveValue('research')
+ expect(scopedInput).toHaveFocus()
await user.keyboard('{Escape}')
await waitFor(() =>
expect(
@@ -293,40 +296,25 @@ describe('search shortcut ownership', () => {
})
describe('real commands', () => {
- it('lets shortcut controls select a prefix and return focus to typing', async () => {
- const { user } = setup()
- const input = await openSearch()
- const commands = screen.getByRole('button', { name: 'app.gotoAnything.groups.commands' })
- const scopes = screen.getByRole('button', { name: 'app.gotoAnything.selectSearchType' })
- await user.tab()
- expect(commands).toHaveFocus()
- await user.tab()
- expect(scopes).toHaveFocus()
- await user.tab()
- expect(input).toHaveFocus()
- await user.click(commands)
- expect(input).toHaveValue('/')
- expect(input).toHaveFocus()
- expect(screen.getByRole('gridcell', { name: /\/models/ })).toHaveTextContent(
- 'modelProvider.modelProvider.systemModelSettings',
- )
- await user.clear(input)
- await user.click(screen.getByRole('button', { name: 'app.gotoAnything.selectSearchType' }))
- expect(input).toHaveValue('@')
- expect(input).toHaveFocus()
- expect(screen.getByRole('gridcell', { name: /@kb/ })).toHaveTextContent(
- 'app.gotoAnything.actions.searchKnowledgeBasesDesc',
- )
+ it('lists commands, then scopes, without search syntax on the desktop home view', async () => {
+ setup()
+ await openSearch()
+
+ const options = screen.getAllByRole('option')
+ const theme = screen.getByRole('option', { name: /app.gotoAnything.actions.themeCategoryDesc/ })
+ const apps = screen.getByRole('option', { name: 'app.gotoAnything.groups.apps' })
+ expect(theme).not.toHaveTextContent('/theme')
+ expect(apps).not.toHaveTextContent('@app')
+ expect(options.indexOf(theme)).toBeLessThan(options.indexOf(apps))
})
- it('commits a submenu before executing a real theme choice', async () => {
+ it('opens a command page before executing a real theme choice', async () => {
const { user } = setup()
const input = await openSearch()
- await user.type(input, '/theme')
- expect(screen.getByRole('gridcell', { name: /\/theme/ })).toBeInTheDocument()
- expect(screen.queryByRole('option', { name: darkTheme })).not.toBeInTheDocument()
- await user.keyboard('{Enter}')
- expect(input).toHaveValue('/theme ')
+ await user.click(
+ screen.getByRole('option', { name: /app.gotoAnything.actions.themeCategoryDesc/ }),
+ )
+ expect(input).toHaveValue('')
await user.click(await screen.findByRole('option', { name: darkTheme }))
await waitFor(() =>
expect(
@@ -339,12 +327,11 @@ describe('real commands', () => {
it('executes a direct command once without a resource search', async () => {
const { user } = setup()
await user.type(await openSearch(), '/models')
- await screen.findByRole('gridcell', { name: /\/models/ })
+ await screen.findByRole('option', { name: /modelProvider.modelProvider.systemModelSettings/ })
await user.keyboard('{Enter}')
expect(api.push).toHaveBeenCalledExactlyOnceWith(SYSTEM_MODELS_PATH)
expect(api.apps).not.toHaveBeenCalled()
})
-
it('finds an action by name even when every remote provider fails', async () => {
for (const request of [api.apps, api.datasets, api.skills, api.agents, api.marketplace])
request.mockRejectedValue(new Error('Unavailable'))
@@ -461,26 +448,15 @@ describe('resource search', () => {
expect(api.push).toHaveBeenCalledExactlyOnceWith('/datasets/dataset-1/hitTesting')
})
- it.each(['chat', 'workflow'] as const)(
- 'offers %s app sections only in scoped search',
- async (mode) => {
- api.apps.mockResolvedValue(page([{ ...app(), mode }]))
- const { user } = setup()
- const input = await openSearch()
- await user.type(input, 'research')
- await screen.findByRole('option', { name: /Research app/ })
- expect(screen.queryByRole('option', { name: /Research app \/ Logs/ })).not.toBeInTheDocument()
- await user.clear(input)
- await user.type(input, '@app research')
- expect(
- await screen.findByRole('option', {
- name: new RegExp(`Research app / ${mode === 'workflow' ? 'Workflow' : 'Configuration'}`),
- }),
- ).toBeInTheDocument()
- await user.click(screen.getByRole('option', { name: /Research app \/ Logs/ }))
- expect(api.push).toHaveBeenCalledExactlyOnceWith('/app/app-1/logs')
- },
- )
+ it('shows only the apps themselves when the search is scoped to apps', async () => {
+ api.apps.mockResolvedValue(page([{ ...app(), mode: 'workflow' }]))
+ const { user } = setup()
+ await user.type(await openSearch(), '@app research')
+ const appOption = await screen.findByRole('option', { name: /Research app/ })
+ expect(screen.getAllByRole('option')).toEqual([appOption])
+ await user.click(appOption)
+ expect(api.push).toHaveBeenCalledExactlyOnceWith('/app/app-1/workflow')
+ })
it('navigates the highlighted resource with the keyboard', async () => {
api.apps.mockResolvedValue(page([app('Unique keyboard result')]))
@@ -496,7 +472,12 @@ describe('resource search', () => {
async (options) => {
const { user } = setup(options)
const input = await openSearch()
- expect(screen.queryByRole('gridcell', { name: /@skill/ })).not.toBeInTheDocument()
+ expect(
+ screen.getByRole('option', { name: 'app.gotoAnything.groups.apps' }),
+ ).toBeInTheDocument()
+ expect(
+ screen.queryByRole('option', { name: 'skill.skillManagement.title' }),
+ ).not.toBeInTheDocument()
await user.type(input, 'research')
await waitFor(() => expect(api.apps).toHaveBeenCalled())
expect(api.skills).not.toHaveBeenCalled()
@@ -507,12 +488,50 @@ describe('resource search', () => {
api.agentEnabled = false
const { user } = setup()
const input = await openSearch()
- expect(screen.queryByRole('gridcell', { name: /@agents/ })).not.toBeInTheDocument()
+ expect(screen.getByRole('option', { name: 'app.gotoAnything.groups.apps' })).toBeInTheDocument()
+ expect(
+ screen.queryByRole('option', { name: 'agentRoster.roster.title' }),
+ ).not.toBeInTheDocument()
await user.type(input, 'research')
await waitFor(() => expect(api.apps).toHaveBeenCalled())
expect(api.agents).not.toHaveBeenCalled()
})
+ it('falls back to all resources when the selected scope becomes unavailable', async () => {
+ const { user } = setup()
+ await user.type(await openSearch(), '@agents ')
+ const scopedInput = screen.getByRole('combobox', { name: 'agentRoster.roster.title' })
+
+ api.agentEnabled = false
+ await user.type(scopedInput, 'r')
+
+ const input = screen.getByRole('combobox', { name: 'app.gotoAnything.searchTitle' })
+ expect(input).toBe(scopedInput)
+ expect(input).toHaveValue('r')
+ expect(input).toHaveFocus()
+ await user.keyboard('{Backspace}{Backspace}')
+ expect(input).toHaveValue('')
+ expect(input).toHaveFocus()
+ })
+
+ it('leaves the scope behind when a command page opens', async () => {
+ const { user } = setup()
+ await user.type(await openSearch(), '@app /theme ')
+ const pageInput = await screen.findByRole('combobox', {
+ name: 'app.gotoAnything.actions.themeCategoryDesc',
+ })
+ await waitFor(() => expect(pageInput).toHaveFocus())
+
+ await user.type(pageInput, 'zzz')
+ expect(await screen.findByText('app.gotoAnything.noResults')).toBeInTheDocument()
+
+ await user.clear(pageInput)
+ await user.keyboard('{Backspace}')
+ expect(
+ await screen.findByRole('combobox', { name: 'app.gotoAnything.searchTitle' }),
+ ).toBeInTheDocument()
+ })
+
it.each([
['@app', 'apps', { page: 1, name: 'research' }],
['@kb', 'datasets', { page: 1, limit: 10, keyword: 'research' }],
@@ -529,18 +548,28 @@ describe('resource search', () => {
},
)
- it('does not send a scope prefix as a remote query', async () => {
+ it('turns a typed scope prefix into a token and sends only the term to that provider', async () => {
const { user } = setup()
- const input = await openSearch()
- await user.type(input, '@')
- await user.click(screen.getByRole('gridcell', { name: /@app/ }))
- expect(input).toHaveValue('@app ')
- await user.type(input, 'research')
+ await user.type(await openSearch(), '@app research')
+ expect(screen.getByRole('combobox', { name: 'app.gotoAnything.groups.apps' })).toHaveValue(
+ 'research',
+ )
await waitFor(() =>
expect(api.apps).toHaveBeenCalledWith({ query: { page: 1, name: 'research' } }),
)
expect(api.apps).toHaveBeenCalledTimes(1)
})
+
+ it('lists only scopes for a bare @', async () => {
+ const { user } = setup()
+ await user.type(await openSearch(), '@')
+
+ expect(screen.getByRole('option', { name: 'app.gotoAnything.groups.apps' })).toBeInTheDocument()
+ expect(
+ screen.queryByRole('option', { name: /app.gotoAnything.actions.themeCategoryDesc/ }),
+ ).not.toBeInTheDocument()
+ expect(api.apps).not.toHaveBeenCalled()
+ })
})
describe('workflow node integration', () => {
@@ -610,13 +639,17 @@ describe('pending and failed searches', () => {
expect(screen.getByRole('option', { name: darkTheme })).toBeInTheDocument()
})
- it('keeps submenu choices visible while a new argument is being debounced', async () => {
+ it('keeps page choices visible while a new argument is being debounced', async () => {
const { user } = setup()
const input = await openSearch()
- await user.type(input, '/theme')
- await screen.findByRole('gridcell', { name: /\/theme/ })
- await user.keyboard('{Enter}')
- await user.type(input, 'unknown')
+ await user.type(input, '/theme ')
+ const pageInput = await screen.findByRole('combobox', {
+ name: 'app.gotoAnything.actions.themeCategoryDesc',
+ })
+ await waitFor(() => expect(pageInput).toHaveFocus())
+ expect(pageInput).toHaveValue('')
+ await screen.findByRole('option', { name: darkTheme })
+ await user.type(pageInput, 'unknown')
expect(screen.getByRole('option', { name: darkTheme })).toBeInTheDocument()
expect(screen.getByRole('status')).toHaveTextContent('app.gotoAnything.searching')
expect(await screen.findByText('app.gotoAnything.noResults')).toBeInTheDocument()
@@ -645,7 +678,12 @@ describe('pending and failed searches', () => {
'app.gotoAnything.someServicesUnavailable',
),
)
- await user.click(screen.getByRole('option', { name: /Available result/ }))
+ const result = screen.getByRole('option', { name: /Available result/ })
+ const notice = screen
+ .getAllByText('app.gotoAnything.someServicesUnavailable')
+ .find((element) => !screen.getByRole('status').contains(element))
+ expect(notice?.compareDocumentPosition(result)).toBe(Node.DOCUMENT_POSITION_FOLLOWING)
+ await user.click(result)
expect(api.push).toHaveBeenCalledExactlyOnceWith('/app/app-1/configuration')
})
})
diff --git a/web/app/components/goto-anything/__tests__/keyboard.browser.spec.tsx b/web/app/components/goto-anything/__tests__/keyboard.browser.spec.tsx
new file mode 100644
index 00000000000..ed67135d65c
--- /dev/null
+++ b/web/app/components/goto-anything/__tests__/keyboard.browser.spec.tsx
@@ -0,0 +1,395 @@
+import type { ReactNode } from 'react'
+import type { consoleClient } from '@/service/console'
+import type { marketplaceClient } from '@/service/marketplace'
+import { detectPlatform } from '@tanstack/react-hotkeys'
+import { ThemeProvider } from 'next-themes'
+import { page, userEvent } from 'vite-plus/test/browser'
+import { render } from 'vitest-browser-react'
+import { MainNavSearchButton } from '@/app/components/main-nav/components/search-button'
+import { MainNavMobileBar } from '@/app/components/main-nav/mobile-nav'
+import { createConsoleQueryWrapper } from '@/test/console/query-data'
+import { createDatasetFixture } from '@/test/fixtures/dataset'
+import { createPluginDeclarationFixture } from '@/test/fixtures/plugin'
+import { GotoAnything } from '../index'
+
+const api = vi.hoisted(() => ({
+ apps: vi.fn<typeof consoleClient.apps.get>(),
+ datasets: vi.fn<typeof consoleClient.datasets.get>(),
+ skills: vi.fn<typeof consoleClient.workspaces.current.skills.get>(),
+ agents: vi.fn<typeof consoleClient.agent.get>(),
+ marketplace: vi.fn<typeof marketplaceClient.searchAdvanced>(),
+ install: vi.fn<typeof consoleClient.workspaces.current.plugin.install.marketplace.post>(),
+ push: vi.fn(),
+ refresh: vi.fn(),
+ setLocale: vi.fn<(locale: string) => Promise<void>>(),
+ agentEnabled: true,
+ pathname: '/',
+}))
+vi.mock('@/next/navigation', async (importOriginal) => ({
+ ...(await importOriginal<typeof import('@/next/navigation')>()),
+ useRouter: () => ({ push: api.push, refresh: api.refresh }),
+ usePathname: () => api.pathname,
+ useParams: () => ({}),
+}))
+vi.mock('@/i18n/client', () => ({ setLocaleOnClient: api.setLocale }))
+vi.mock('@/features/agent-v2/feature-flag', () => ({
+ isAgentV2Enabled: () => api.agentEnabled,
+}))
+vi.mock('@/service/console', async (importOriginal) => {
+ const actual = await importOriginal<typeof import('@/service/console')>()
+ const { withConsoleResponses, withConsoleClientResponses } =
+ await import('@/test/console/service-responses')
+ return {
+ ...actual,
+ consoleQuery: withConsoleResponses(actual.consoleQuery, {
+ 'apps.get': api.apps,
+ 'workspaces.current.defaultModel.get': async () => ({ data: null }),
+ 'workspaces.current.tools.builtin.get': async () => [],
+ 'workspaces.current.tools.api.get': async () => [],
+ 'workspaces.current.tools.workflow.get': async () => [],
+ 'workspaces.current.tools.mcp.get': async () => [],
+ 'datasets.get': api.datasets,
+ 'workspaces.current.skills.get': api.skills,
+ 'agent.get': api.agents,
+ 'workspaces.current.plugin.list.installations.ids.post': async () => ({ plugins: [] }),
+ 'workspaces.current.models.modelTypes.byModelType.get': async () => ({ data: [] }),
+ }),
+ consoleClient: withConsoleClientResponses(actual.consoleClient, {
+ 'workspaces.current.plugin.permission.fetch.get': async () => ({
+ install_permission: 'everyone',
+ debug_permission: 'everyone',
+ }),
+ 'workspaces.current.plugin.tasks.get': async () => ({ tasks: [] }),
+ 'workspaces.current.plugin.marketplace.pkg.get': async () => ({
+ manifest: createPluginDeclarationFixture(),
+ }),
+ 'workspaces.current.plugin.install.marketplace.post': api.install,
+ }),
+ }
+})
+vi.mock('@/service/marketplace', async (importOriginal) => {
+ const actual = await importOriginal<typeof import('@/service/marketplace')>()
+ return {
+ ...actual,
+ marketplaceQuery: {
+ ...actual.marketplaceQuery,
+ searchAdvanced: {
+ ...actual.marketplaceQuery.searchAdvanced,
+ queryOptions: (
+ options: Parameters<typeof actual.marketplaceQuery.searchAdvanced.queryOptions>[0],
+ ) => {
+ const original = actual.marketplaceQuery.searchAdvanced.queryOptions(options)
+ const input = options.input
+ return typeof input === 'symbol'
+ ? original
+ : { ...original, queryFn: () => api.marketplace(input) }
+ },
+ },
+ },
+ }
+})
+
+const emptyPage = { data: [], has_more: false, limit: 10, page: 1, total: 0 }
+const searchTitle = 'app.gotoAnything.searchTitle'
+const shortcut = detectPlatform() === 'mac' ? '{Meta>}k{/Meta}' : '{Control>}k{/Control}'
+
+beforeEach(() => {
+ api.apps.mockResolvedValue(emptyPage)
+ api.datasets.mockResolvedValue(emptyPage)
+ api.skills.mockResolvedValue(emptyPage)
+ api.agents.mockResolvedValue({ ...emptyPage, publication_counts: { drafts: 0, published: 0 } })
+ api.marketplace.mockResolvedValue({ data: { plugins: [], total: 0 } })
+})
+
+function renderPalette(trigger: ReactNode = <MainNavSearchButton />) {
+ const { wrapper: ConsoleWrapper } = createConsoleQueryWrapper({
+ currentWorkspace: { role: 'owner' },
+ features: { enable_skill: true },
+ accountProfileMeta: { currentVersion: '1.0.0' },
+ workspacePermissionKeys: ['plugin.install'],
+ systemFeatures: {
+ enable_marketplace: true,
+ rbac_enabled: true,
+ plugin_installation_permission: {
+ plugin_installation_scope: 'all',
+ restrict_to_marketplace_only: false,
+ },
+ },
+ })
+ return render(
+ <ConsoleWrapper>
+ <ThemeProvider defaultTheme="light" enableSystem={false}>
+ {trigger}
+ <GotoAnything />
+ </ThemeProvider>
+ </ConsoleWrapper>,
+ )
+}
+
+const searchField = (name = searchTitle) => page.getByRole('combobox', { name })
+
+async function expectActiveOption(
+ field: ReturnType<typeof searchField>,
+ option: ReturnType<typeof page.getByRole>,
+) {
+ await expect
+ .poll(() => field.element().getAttribute('aria-activedescendant') === option.element().id)
+ .toBe(true)
+}
+
+async function openWithShortcut() {
+ await userEvent.keyboard(shortcut)
+ await expect.element(searchField()).toHaveFocus()
+}
+
+describe('desktop dialog', () => {
+ beforeEach(async () => {
+ await page.viewport(1024, 768)
+ })
+
+ it('opens with focus in the search field and returns focus to its trigger after one Escape', async () => {
+ renderPalette()
+ const trigger = page.getByRole('button', { name: searchTitle })
+ await trigger.click()
+ await expect.element(searchField()).toHaveFocus()
+
+ await userEvent.keyboard('research')
+ await expect.element(searchField()).toHaveValue('research')
+ await userEvent.keyboard('{Escape}')
+
+ await expect.element(page.getByRole('dialog', { name: searchTitle })).not.toBeInTheDocument()
+ await expect.element(trigger).toHaveFocus()
+ })
+
+ it('keeps DOM focus in the search field while arrow keys move the active option', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const options = page.getByRole('option')
+ await expectActiveOption(searchField(), options.nth(0))
+
+ await userEvent.keyboard('{ArrowDown}')
+
+ await expectActiveOption(searchField(), options.nth(1))
+ await expect.element(searchField()).toHaveFocus()
+ })
+ it('starts a command page with its first option highlighted', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const options = page.getByRole('option')
+ const language = page.getByRole('option', {
+ name: 'app.gotoAnything.actions.languageChangeDesc',
+ })
+ await expectActiveOption(searchField(), options.nth(0))
+ const languageIndex = options.elements().indexOf(language.element() as HTMLElement)
+
+ for (let step = 1; step <= languageIndex; step++) {
+ await userEvent.keyboard('{ArrowDown}')
+ await expectActiveOption(searchField(), options.nth(step))
+ }
+ await userEvent.keyboard('{Enter}')
+
+ const languageField = searchField('app.gotoAnything.actions.languageChangeDesc')
+ await expect.element(languageField).toHaveFocus()
+ await expect.element(language).not.toBeInTheDocument()
+ await expectActiveOption(languageField, page.getByRole('option').first())
+ })
+ it('turns a suggested scope into a token that lists its first result highlighted', async () => {
+ api.datasets.mockResolvedValue({ ...emptyPage, data: [createDatasetFixture()], total: 1 })
+ renderPalette()
+ await openWithShortcut()
+ const knowledge = 'app.gotoAnything.groups.knowledgeBases'
+
+ await userEvent.keyboard('knowledgeBases')
+ const scopeOption = page.getByRole('option', { name: knowledge })
+ await expectActiveOption(searchField(), scopeOption)
+ await userEvent.keyboard('{Enter}')
+
+ const scopedField = searchField(knowledge)
+ await expect.element(scopedField).toHaveFocus()
+ await expect.element(scopedField).toHaveValue('')
+ const firstResult = page.getByRole('option').first()
+ await expect.element(firstResult).toHaveAccessibleName(/Test Dataset/)
+ await expectActiveOption(scopedField, firstResult)
+ })
+
+ it('clears a scope token with Backspace in an empty field or with its remove button', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const knowledge = 'app.gotoAnything.groups.knowledgeBases'
+
+ await userEvent.keyboard('@kb ')
+ await expect.element(searchField(knowledge)).toHaveFocus()
+ await userEvent.keyboard('{Backspace}')
+ await expect.element(searchField()).toHaveFocus()
+
+ await userEvent.keyboard('@kb ')
+ await expect.element(searchField(knowledge)).toHaveFocus()
+ await page.getByRole('button', { name: 'common.operation.remove' }).click()
+ await expect.element(searchField()).toHaveFocus()
+ })
+
+ it('ignores Backspace while an IME composition is active', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const knowledge = 'app.gotoAnything.groups.knowledgeBases'
+ await userEvent.keyboard('@kb ')
+ await expect.element(searchField(knowledge)).toHaveFocus()
+
+ searchField(knowledge)
+ .element()
+ .dispatchEvent(
+ new KeyboardEvent('keydown', { key: 'Backspace', isComposing: true, bubbles: true }),
+ )
+
+ await expect.element(searchField(knowledge)).toBeInTheDocument()
+ await expect
+ .element(page.getByRole('button', { name: 'common.operation.remove' }))
+ .toBeVisible()
+ })
+ it('removes a token only on a fresh Backspace press, not while the key repeats', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const knowledge = 'app.gotoAnything.groups.knowledgeBases'
+
+ await userEvent.keyboard('@kb ab')
+ await expect.element(searchField(knowledge)).toHaveValue('ab')
+ await userEvent.keyboard('{Backspace>4/}')
+ await expect.element(searchField(knowledge)).toHaveValue('')
+
+ await userEvent.keyboard('{Backspace}')
+ await expect.element(searchField()).toHaveFocus()
+ })
+
+ it('leaves a command page with Backspace in an empty field', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const theme = 'app.gotoAnything.actions.themeCategoryDesc'
+
+ await page.getByRole('option', { name: theme }).click()
+ await expect.element(searchField(theme)).toHaveFocus()
+ await expect
+ .element(page.getByRole('option', { name: /app.gotoAnything.actions.themeDark/ }))
+ .toBeInTheDocument()
+
+ await userEvent.keyboard('{Backspace}')
+ await expect.element(searchField()).toHaveFocus()
+ await expect.element(page.getByRole('option', { name: theme })).toBeInTheDocument()
+ })
+})
+
+describe('narrow bottom sheet', () => {
+ beforeEach(async () => {
+ await page.viewport(375, 812)
+ })
+
+ it('clears the term on the first Escape and closes on the second', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const sheet = page.getByRole('dialog', { name: searchTitle })
+ await expect.element(sheet).toHaveAttribute('data-swipe-direction', 'down')
+
+ await userEvent.keyboard('research')
+ await expect.element(searchField()).toHaveValue('research')
+ await userEvent.keyboard('{Escape}')
+ await expect.element(searchField()).toHaveValue('')
+ await expect.element(sheet).toBeInTheDocument()
+
+ await userEvent.keyboard('{Escape}')
+ await expect.element(sheet).not.toBeInTheDocument()
+ })
+
+ it('keeps the selected scope when Backspace runs in an empty field', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const knowledgeName = 'app.gotoAnything.groups.knowledgeBases'
+ const knowledge = page.getByRole('radio', { name: knowledgeName })
+
+ await knowledge.click()
+ await expect.element(knowledge).toBeChecked()
+ await userEvent.keyboard('{Shift>}{Tab}{/Shift}')
+ await expect.element(searchField(knowledgeName)).toHaveFocus()
+ await userEvent.keyboard('{Backspace}')
+
+ await expect.element(knowledge).toBeChecked()
+ })
+
+ it('enters the scope bar on the checked scope with a keyboard-only ring and moves selection with arrows', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const knowledgeName = 'app.gotoAnything.groups.knowledgeBases'
+ const knowledge = page.getByRole('radio', { name: knowledgeName })
+
+ await knowledge.click()
+ await expect.element(knowledge).toHaveFocus()
+ expect(getComputedStyle(knowledge.element()).boxShadow).not.toContain('inset')
+
+ await userEvent.keyboard('{Shift>}{Tab}{/Shift}')
+ await expect.element(searchField(knowledgeName)).toHaveFocus()
+ await userEvent.keyboard('{Tab}')
+ await expect.element(knowledge).toHaveFocus()
+ expect(getComputedStyle(knowledge.element()).boxShadow).toContain('inset')
+
+ await userEvent.keyboard('{ArrowLeft}')
+ const apps = page.getByRole('radio', { name: 'app.gotoAnything.groups.apps' })
+ await expect.element(apps).toBeChecked()
+ await expect.element(apps).toHaveFocus()
+ })
+
+ it('shows a page as a token and a typed scope in the scope bar', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const theme = 'app.gotoAnything.actions.themeCategoryDesc'
+
+ await userEvent.keyboard('/theme ')
+ await expect.element(searchField(theme)).toHaveFocus()
+ await expect.element(page.getByRole('radiogroup')).not.toBeInTheDocument()
+ await userEvent.keyboard('{Backspace}')
+ await expect.element(searchField()).toHaveFocus()
+
+ await userEvent.keyboard('@app ')
+ await expect
+ .element(page.getByRole('radio', { name: 'app.gotoAnything.groups.apps' }))
+ .toBeChecked()
+ await expect
+ .element(page.getByRole('button', { name: 'common.operation.remove' }))
+ .not.toBeInTheDocument()
+ })
+ it('opens from the top bar search button and returns focus to it', async () => {
+ renderPalette(<MainNavMobileBar />)
+ const trigger = page.getByRole('button', { name: searchTitle })
+
+ await trigger.click()
+ const sheet = page.getByRole('dialog', { name: searchTitle })
+ await expect.element(sheet).toHaveAttribute('data-swipe-direction', 'down')
+ await expect.element(searchField()).toHaveFocus()
+
+ await userEvent.keyboard('{Escape}')
+ await expect.element(sheet).not.toBeInTheDocument()
+ await expect.element(trigger).toHaveFocus()
+ })
+
+ it('offers scopes in the dialog when a sidebar trigger opens it on a narrow screen', async () => {
+ renderPalette()
+ await page.getByRole('button', { name: searchTitle }).click()
+
+ await expect
+ .element(page.getByRole('dialog', { name: searchTitle }))
+ .not.toHaveAttribute('data-swipe-direction')
+ await expect
+ .element(page.getByRole('option', { name: 'app.gotoAnything.groups.apps' }))
+ .toBeInTheDocument()
+ await expect
+ .element(searchField())
+ .toHaveAttribute('placeholder', 'app.gotoAnything.searchOrFilterPlaceholder')
+ })
+ it('closes when the viewport widens to the dialog breakpoint', async () => {
+ renderPalette()
+ await openWithShortcut()
+ const sheet = page.getByRole('dialog', { name: searchTitle })
+ await expect.element(sheet).toBeInTheDocument()
+
+ await page.viewport(1024, 768)
+
+ await expect.element(sheet).not.toBeInTheDocument()
+ })
+})
diff --git a/web/app/components/goto-anything/actions/app.tsx b/web/app/components/goto-anything/actions/app.tsx
index 3410d19bab5..d147eadcc46 100644
--- a/web/app/components/goto-anything/actions/app.tsx
+++ b/web/app/components/goto-anything/actions/app.tsx
@@ -1,13 +1,10 @@
import type { AppPartial } from '@dify/contracts/api/console/apps/types.gen'
-import type { ActionItem, AppSearchResult, SearchQueryOptions, SearchResult } from './types'
-import { isWorkflowAppMode } from '@/app/components/apps/app-type'
+import type { ActionItem, AppSearchResult, SearchQueryOptions } from './types'
import { consoleQuery } from '@/service/console'
import { getRedirectionPath } from '@/utils/app-redirection'
import { AppTypeIcon } from '../../app/type-selector'
import AppIcon from '../../base/app-icon'
-type AppSection = { id: string; label: string; path: string; iconClassName: string }
-
function getAppPath(app: AppPartial) {
return getRedirectionPath({
id: app.id,
@@ -16,52 +13,6 @@ function getAppPath(app: AppPartial) {
})
}
-const getAppSections = (app: AppPartial): AppSection[] => {
- const base = `/app/${app.id}`
- if (isWorkflowAppMode(app.mode)) {
- return [
- {
- id: 'workflow',
- label: 'Workflow',
- path: `${base}/workflow`,
- iconClassName: 'i-ri-node-tree size-4 text-text-tertiary',
- },
- {
- id: 'overview',
- label: 'Overview',
- path: `${base}/overview`,
- iconClassName: 'i-ri-line-chart-line size-4 text-text-tertiary',
- },
- {
- id: 'logs',
- label: 'Logs',
- path: `${base}/logs`,
- iconClassName: 'i-ri-file-list-line size-4 text-text-tertiary',
- },
- ]
- }
- return [
- {
- id: 'configuration',
- label: 'Configuration',
- path: `${base}/configuration`,
- iconClassName: 'i-ri-layout-line size-4 text-text-tertiary',
- },
- {
- id: 'overview',
- label: 'Overview',
- path: `${base}/overview`,
- iconClassName: 'i-ri-line-chart-line size-4 text-text-tertiary',
- },
- {
- id: 'logs',
- label: 'Logs',
- path: `${base}/logs`,
- iconClassName: 'i-ri-file-list-line size-4 text-text-tertiary',
- },
- ]
-}
-
const appIcon = (app: AppPartial) => (
<div className="relative shrink-0">
<AppIcon size="large" icon={app} />
@@ -85,38 +36,6 @@ function getAppResults(apps: AppPartial[]): AppSearchResult[] {
}))
}
-// Generate sub-section results for matched apps when in scoped @app search
-function getScopedAppResults(apps: AppPartial[]): SearchResult[] {
- const results: SearchResult[] = []
- for (const app of apps) {
- results.push({
- id: app.id,
- title: app.name,
- description: app.description ?? undefined,
- type: 'app' as const,
- path: getAppPath(app),
- icon: appIcon(app),
- data: app,
- })
- for (const section of getAppSections(app)) {
- results.push({
- id: `${app.id}:${section.id}`,
- title: `${app.name} / ${section.label}`,
- description: section.path,
- type: 'app' as const,
- path: section.path,
- icon: (
- <div className="flex h-6 w-6 items-center justify-center rounded-md border-[0.5px] border-divider-regular bg-components-panel-bg">
- <span aria-hidden className={section.iconClassName} />
- </div>
- ),
- data: app,
- })
- }
- }
- return results
-}
-
export const appAction: ActionItem = {
key: '@app',
shortcut: '@app',
@@ -125,11 +44,7 @@ export const appAction: ActionItem = {
source: 'remote',
}
-export function appSearchQueryOptions(
- searchTerm: string,
- scoped: boolean,
- options: SearchQueryOptions = {},
-) {
+export function appSearchQueryOptions(searchTerm: string, options: SearchQueryOptions = {}) {
return consoleQuery.apps.get.queryOptions({
input: {
query: {
@@ -139,7 +54,6 @@ export function appSearchQueryOptions(
},
retry: false,
...options,
- select: (response) =>
- scoped ? getScopedAppResults(response.data) : getAppResults(response.data),
+ select: (response) => getAppResults(response.data),
})
}
diff --git a/web/app/components/goto-anything/command-options.ts b/web/app/components/goto-anything/command-options.ts
index 1731b65ff43..0f634ca03c2 100644
--- a/web/app/components/goto-anything/command-options.ts
+++ b/web/app/components/goto-anything/command-options.ts
@@ -4,15 +4,23 @@ import { useTranslation } from 'react-i18next'
import { MAIN_NAV_ROUTES } from '@/app/components/main-nav/routes'
import { slashCommandRegistry } from './actions/commands/catalog'
+export type SearchScope = Exclude<ActionItem['key'], '/'>
+
+export type ScopeSelection = SearchScope | 'all'
+
export type CommandOption = {
kind: 'command-option'
shortcut: string
title: string
description?: string
icon: string
+ opensPage?: boolean
+ scope?: SearchScope
result?: CommandSearchResult
}
+export type ScopeOption = CommandOption & { scope: SearchScope }
+
export type GotoAnythingOption = CommandOption | SearchResult
export function isCommandOption(option: GotoAnythingOption): option is CommandOption {
@@ -38,14 +46,12 @@ const scopeRoutes = {
'@agents': 'roster',
} as const
-const scopeDescriptions = {
- '@app': 'gotoAnything.actions.searchApplicationsDesc',
- '@knowledge': 'gotoAnything.actions.searchKnowledgeBasesDesc',
- '@plugin': 'gotoAnything.actions.searchPluginsDesc',
- '@node': 'gotoAnything.actions.searchWorkflowNodesDesc',
-} as const
+const featuredCommands = ['refine', 'create', 'go', 'models', 'theme', 'language']
-const featuredCommands = ['refine', 'create', 'models', 'go', 'theme']
+function commandRank(name: string) {
+ const rank = featuredCommands.indexOf(name)
+ return rank === -1 ? featuredCommands.length : rank
+}
function matches(query: string, values: (string | undefined)[]) {
const text = values.filter(Boolean).join(' ').toLocaleLowerCase()
@@ -73,39 +79,49 @@ export function useCommandOptions(
'@skill': t(($) => $['skillManagement.title'], { ns: 'skill' }),
'@agents': t(($) => $['roster.title'], { ns: 'agentRoster' }),
}
- const scopeOptions: CommandOption[] = Object.values(actions).flatMap((action) => {
+ const allScopeOptions: ScopeOption[] = Object.values(actions).flatMap((action) => {
if (action.key === '/') return []
const routeKey = scopeRoutes[action.key as keyof typeof scopeRoutes]
- const descriptionKey = scopeDescriptions[action.key as keyof typeof scopeDescriptions]
- const option: CommandOption = {
- kind: 'command-option',
- shortcut: action.shortcut,
- title: scopeTitles[action.key],
- description: descriptionKey ? t(($) => $[descriptionKey], { ns: 'app' }) : action.description,
- icon: MAIN_NAV_ROUTES.find((route) => route.key === routeKey)?.icon ?? 'i-ri-node-tree',
- }
- return !trimmed || matches(filter, [option.title, option.shortcut, action.key]) ? [option] : []
+ return [
+ {
+ kind: 'command-option',
+ shortcut: action.shortcut,
+ title: scopeTitles[action.key],
+ icon: MAIN_NAV_ROUTES.find((route) => route.key === routeKey)?.icon ?? 'i-ri-node-tree',
+ scope: action.key,
+ },
+ ]
})
+ const scopeOptions = trimmed
+ ? allScopeOptions.filter((option) =>
+ matches(filter, [option.title, option.shortcut, option.scope]),
+ )
+ : allScopeOptions
- if (trimmed.startsWith('@')) return { scopeOptions, commandOptions: [] }
-
- const commandOptions = commands.flatMap<CommandOption>((command) => {
- const presentation = commandPresentation[command.name as keyof typeof commandPresentation]
- const option: CommandOption = {
- kind: 'command-option',
- shortcut: `/${command.name}`,
- title:
- command.name === 'models'
- ? t(($) => $['modelProvider.systemModelSettings'], { ns: 'modelProvider' })
- : presentation
- ? t(($) => $[presentation[0]], { ns: 'app' })
- : command.description,
- description:
- command.name === 'models'
- ? t(($) => $['modelProvider.systemModelSettingsDesc'], { ns: 'modelProvider' })
- : undefined,
- icon: presentation?.[1] ?? 'i-ri-brain-2-line',
- }
+ const commandEntries = commands
+ .map((command) => {
+ const presentation = commandPresentation[command.name as keyof typeof commandPresentation]
+ const option: CommandOption = {
+ kind: 'command-option',
+ shortcut: `/${command.name}`,
+ title:
+ command.name === 'models'
+ ? t(($) => $['modelProvider.systemModelSettings'], { ns: 'modelProvider' })
+ : presentation
+ ? t(($) => $[presentation[0]], { ns: 'app' })
+ : command.description,
+ icon: presentation?.[1] ?? 'i-ri-brain-2-line',
+ opensPage: command.mode === 'submenu',
+ }
+ return { command, option }
+ })
+ .sort((a, b) => commandRank(a.command.name) - commandRank(b.command.name))
+ const allCommandOptions = commandEntries.map(({ option }) => option)
+ const result = { scopeOptions, allScopeOptions, allCommandOptions }
+
+ if (trimmed.startsWith('@')) return { ...result, commandOptions: [] }
+
+ const commandOptions = commandEntries.flatMap<CommandOption>(({ command, option }) => {
if (
!filter ||
matches(filter, [option.title, option.description, command.name, ...(command.aliases ?? [])])
@@ -115,32 +131,15 @@ export function useCommandOptions(
return slashCommandRegistry
.search(`/${command.name}`, context)
- .filter((result) => matches(filter, [result.title, result.description, result.id]))
- .map((result) => ({
+ .filter((match) => matches(filter, [match.title, match.description, match.id]))
+ .map((match) => ({
...option,
- title: result.title,
+ title: match.title,
description: option.title,
- result,
+ opensPage: false,
+ result: match,
}))
})
- if (!trimmed) {
- const featured = featuredCommands
- .flatMap((name) => commandOptions.filter((option) => option.shortcut === `/${name}`))
- .slice(0, 3)
- return {
- scopeOptions,
- commandOptions: [
- ...featured,
- {
- kind: 'command-option' as const,
- shortcut: '/',
- title: t(($) => $['gotoAnything.allCommands'], { ns: 'app' }),
- icon: 'i-ri-terminal-box-line',
- },
- ],
- }
- }
-
- return { scopeOptions, commandOptions }
+ return { ...result, commandOptions }
}
diff --git a/web/app/components/goto-anything/components/context-token.tsx b/web/app/components/goto-anything/components/context-token.tsx
new file mode 100644
index 00000000000..8570b59b6c8
--- /dev/null
+++ b/web/app/components/goto-anything/components/context-token.tsx
@@ -0,0 +1,27 @@
+'use client'
+
+import type { CommandOption } from '../command-options'
+import { IconButton } from '@langgenius/dify-ui/icon-button'
+import { useTranslation } from 'react-i18next'
+
+type ContextTokenProps = Pick<CommandOption, 'title'> & {
+ onRemove: () => void
+}
+
+export function ContextToken({ title, onRemove }: ContextTokenProps) {
+ const { t } = useTranslation(['common'])
+
+ return (
+ <span className="inline-flex h-6 max-w-40 shrink-0 items-center gap-0.5 rounded-md bg-state-accent-hover ps-1.5 pe-0.5 system-xs-medium text-text-accent">
+ <span className="truncate">{title}</span>
+ <IconButton
+ size="sm"
+ tabIndex={-1}
+ aria-label={t(($) => $['operation.remove'], { ns: 'common' })}
+ onClick={onRemove}
+ >
+ <span aria-hidden className="i-ri-close-line size-3.5" />
+ </IconButton>
+ </span>
+ )
+}
diff --git a/web/app/components/goto-anything/components/empty-state.tsx b/web/app/components/goto-anything/components/empty-state.tsx
index fe03804a268..ec347848f05 100644
--- a/web/app/components/goto-anything/components/empty-state.tsx
+++ b/web/app/components/goto-anything/components/empty-state.tsx
@@ -1,23 +1,30 @@
'use client'
-import type { ActionItem } from '../actions/types'
+import type { ScopeSelection } from '../command-options'
import { useTranslation } from 'react-i18next'
-type EmptyStateVariant = 'no-results' | 'error' | 'loading'
+const noResultsKeys: Partial<
+ Record<
+ ScopeSelection,
+ | 'gotoAnything.emptyState.noAppsFound'
+ | 'gotoAnything.emptyState.noPluginsFound'
+ | 'gotoAnything.emptyState.noKnowledgeBasesFound'
+ | 'gotoAnything.emptyState.noWorkflowNodesFound'
+ >
+> = {
+ '@app': 'gotoAnything.emptyState.noAppsFound',
+ '@plugin': 'gotoAnything.emptyState.noPluginsFound',
+ '@knowledge': 'gotoAnything.emptyState.noKnowledgeBasesFound',
+ '@node': 'gotoAnything.emptyState.noWorkflowNodesFound',
+}
-type EmptyStateProps = {
- variant: EmptyStateVariant
- searchMode?: string
- error?: Error | null
- actions?: Record<string, ActionItem>
+export type EmptyStateProps = {
+ variant: 'loading' | 'error' | 'no-commands' | 'no-results'
+ scope: ScopeSelection
+ error: Error | null
}
-export function EmptyState({
- variant,
- searchMode = 'general',
- error,
- actions = {},
-}: EmptyStateProps) {
+export function EmptyState({ variant, scope, error }: EmptyStateProps) {
const { t } = useTranslation(['app'])
if (variant === 'loading') {
@@ -49,42 +56,18 @@ export function EmptyState({
)
}
- const isCommandSearch = searchMode !== 'general'
- const commandType = isCommandSearch ? searchMode.replace('@', '') : ''
-
- const getNoResultsMessage = () => {
- if (!isCommandSearch) {
- return t(($) => $['gotoAnything.noResults'], { ns: 'app' })
- }
-
- const keyMap = {
- app: 'gotoAnything.emptyState.noAppsFound',
- plugin: 'gotoAnything.emptyState.noPluginsFound',
- knowledge: 'gotoAnything.emptyState.noKnowledgeBasesFound',
- node: 'gotoAnything.emptyState.noWorkflowNodesFound',
- } as const
-
- return t(($) => $[keyMap[commandType as keyof typeof keyMap] || 'gotoAnything.noResults'], {
- ns: 'app',
- })
- }
-
- const getHintMessage = () => {
- if (isCommandSearch) {
- return t(($) => $['gotoAnything.emptyState.tryDifferentTerm'], { ns: 'app' })
- }
-
- const shortcuts = Object.values(actions)
- .map((action) => action.shortcut)
- .join(', ')
- return t(($) => $['gotoAnything.emptyState.trySpecificSearch'], { ns: 'app', shortcuts })
- }
+ const noResultsKey =
+ variant === 'no-commands'
+ ? 'gotoAnything.noMatchingCommands'
+ : (noResultsKeys[scope] ?? 'gotoAnything.noResults')
return (
<div className="flex items-center justify-center py-8 text-center text-text-tertiary">
<div>
- <div className="text-sm font-medium">{getNoResultsMessage()}</div>
- <div className="mt-1 text-xs text-text-quaternary">{getHintMessage()}</div>
+ <div className="text-sm font-medium">{t(($) => $[noResultsKey], { ns: 'app' })}</div>
+ <div className="mt-1 text-xs text-text-quaternary">
+ {t(($) => $['gotoAnything.emptyState.tryDifferentTerm'], { ns: 'app' })}
+ </div>
</div>
</div>
)
diff --git a/web/app/components/goto-anything/components/footer.tsx b/web/app/components/goto-anything/components/footer.tsx
deleted file mode 100644
index 7db3f00d0a9..00000000000
--- a/web/app/components/goto-anything/components/footer.tsx
+++ /dev/null
@@ -1,61 +0,0 @@
-'use client'
-
-import { Button } from '@langgenius/dify-ui/button'
-import { Kbd } from '@langgenius/dify-ui/kbd'
-import { useTranslation } from 'react-i18next'
-
-type FooterProps = {
- resultCount: number | null
- isLoading: boolean
- hasPartialFailure: boolean
- onSelectMode: (query: string) => void
-}
-
-export function Footer({ resultCount, isLoading, hasPartialFailure, onSelectMode }: FooterProps) {
- const { t } = useTranslation(['app'])
- const commandsLabel = t(($) => $['gotoAnything.groups.commands'], { ns: 'app' })
- const scopesLabel = t(($) => $['gotoAnything.selectSearchType'], { ns: 'app' })
-
- return (
- <div className="flex shrink-0 items-center gap-3 border-t border-divider-subtle bg-components-panel-bg-blur px-3 py-2 text-xs text-text-tertiary">
- <div className="flex min-h-6 min-w-0 flex-1 items-center gap-1">
- {resultCount === null ? (
- <>
- <Button
- variant="ghost"
- size="small"
- aria-label={commandsLabel}
- onClick={() => onSelectMode('/')}
- >
- <Kbd>/</Kbd>
- <span className="hidden sm:inline">{commandsLabel}</span>
- </Button>
- <Button
- variant="ghost"
- size="small"
- aria-label={scopesLabel}
- onClick={() => onSelectMode('@')}
- >
- <Kbd>@</Kbd>
- <span className="hidden sm:inline">{scopesLabel}</span>
- </Button>
- </>
- ) : (
- <span>
- {hasPartialFailure
- ? t(($) => $['gotoAnything.someServicesUnavailable'], { ns: 'app' })
- : isLoading && resultCount === 0
- ? t(($) => $['gotoAnything.searching'], { ns: 'app' })
- : t(($) => $['gotoAnything.resultCount'], { ns: 'app', count: resultCount })}
- </span>
- )}
- </div>
- {resultCount !== null && resultCount > 0 && (
- <span className="flex shrink-0 items-center gap-1">
- <span>{t(($) => $['gotoAnything.activate'], { ns: 'app' })}</span>
- <Kbd>Enter</Kbd>
- </span>
- )}
- </div>
- )
-}
diff --git a/web/app/components/goto-anything/components/scope-bar.tsx b/web/app/components/goto-anything/components/scope-bar.tsx
new file mode 100644
index 00000000000..d966dad9683
--- /dev/null
+++ b/web/app/components/goto-anything/components/scope-bar.tsx
@@ -0,0 +1,50 @@
+'use client'
+
+import type { RadioGroupProps } from '@langgenius/dify-ui/radio-group'
+import type { ScopeOption, ScopeSelection } from '../command-options'
+import { RadioGroup, RadioItem } from '@langgenius/dify-ui/radio-group'
+import { ScrollArea, ScrollAreaContent, ScrollAreaViewport } from '@langgenius/dify-ui/scroll-area'
+import { useTranslation } from 'react-i18next'
+
+type ScopeBarProps = Pick<RadioGroupProps<ScopeSelection>, 'value' | 'onValueChange'> & {
+ scopes: ScopeOption[]
+}
+
+export function ScopeBar({ scopes, value, onValueChange }: ScopeBarProps) {
+ const { t } = useTranslation(['app'])
+ const items = [
+ { value: 'all' as const, title: t(($) => $['types.all'], { ns: 'app' }) },
+ ...scopes.map((option) => ({ value: option.scope, title: option.title })),
+ ]
+
+ return (
+ <ScrollArea className="shrink-0 pb-2">
+ <ScrollAreaViewport
+ tabIndex={-1}
+ style={{ overflowY: 'hidden' }}
+ className="mask-[linear-gradient(to_right,transparent,#000_min(1.5rem,var(--scroll-area-overflow-x-start,0px)),#000_calc(100%-min(1.5rem,var(--scroll-area-overflow-x-end,0px))),transparent)] has-focus-visible:mask-none data-has-overflow-x:overscroll-x-contain"
+ >
+ <ScrollAreaContent className="px-4 py-1">
+ <RadioGroup<ScopeSelection>
+ aria-label={t(($) => $['gotoAnything.selectSearchType'], { ns: 'app' })}
+ value={value}
+ onValueChange={onValueChange}
+ className="gap-1"
+ >
+ {items.map((item) => (
+ <RadioItem
+ key={item.value}
+ value={item.value}
+ nativeButton
+ render={<button type="button" />}
+ className="flex h-7 shrink-0 touch-manipulation items-center rounded-lg border-[0.5px] border-transparent px-2.5 system-sm-medium whitespace-nowrap text-text-tertiary outline-hidden hover:bg-state-base-hover hover:text-text-secondary focus-visible:inset-ring-2 focus-visible:inset-ring-state-accent-solid data-checked:border-components-segmented-control-item-active-border data-checked:bg-components-segmented-control-item-active-bg data-checked:text-text-accent-light-mode-only data-checked:shadow-xs data-checked:shadow-shadow-shadow-3"
+ >
+ {item.title}
+ </RadioItem>
+ ))}
+ </RadioGroup>
+ </ScrollAreaContent>
+ </ScrollAreaViewport>
+ </ScrollArea>
+ )
+}
diff --git a/web/app/components/goto-anything/components/search-announcements.tsx b/web/app/components/goto-anything/components/search-announcements.tsx
new file mode 100644
index 00000000000..69e896578e3
--- /dev/null
+++ b/web/app/components/goto-anything/components/search-announcements.tsx
@@ -0,0 +1,30 @@
+'use client'
+
+import { AutocompleteStatus } from '@langgenius/dify-ui/autocomplete'
+import { useTranslation } from 'react-i18next'
+
+type SearchAnnouncementsProps = {
+ hintId: string
+ status: string | null
+ describesTokenRemoval: boolean
+}
+
+export function SearchAnnouncements({
+ hintId,
+ status,
+ describesTokenRemoval,
+}: SearchAnnouncementsProps) {
+ const { t } = useTranslation(['app'])
+
+ return (
+ <>
+ <p id={hintId} className="sr-only">
+ {t(($) => $['gotoAnything.searchHint'], { ns: 'app' })}
+ {describesTokenRemoval && (
+ <> {t(($) => $['gotoAnything.contextTokenHint'], { ns: 'app' })}</>
+ )}
+ </p>
+ <AutocompleteStatus className="sr-only">{status}</AutocompleteStatus>
+ </>
+ )
+}
diff --git a/web/app/components/goto-anything/components/search-results.tsx b/web/app/components/goto-anything/components/search-results.tsx
new file mode 100644
index 00000000000..f5b2d7445f0
--- /dev/null
+++ b/web/app/components/goto-anything/components/search-results.tsx
@@ -0,0 +1,39 @@
+'use client'
+
+import type { ResultListProps } from '../results'
+import type { EmptyStateProps } from './empty-state'
+import { useTranslation } from 'react-i18next'
+import { ResultList } from '../results'
+import { EmptyState } from './empty-state'
+
+type SearchResultsProps = ResultListProps &
+ Pick<EmptyStateProps, 'scope' | 'error'> & {
+ emptyState: EmptyStateProps['variant'] | null
+ hasPartialFailure: boolean
+ }
+
+export function SearchResults({
+ emptyState,
+ scope,
+ error,
+ hasPartialFailure,
+ ...listProps
+}: SearchResultsProps) {
+ const { t } = useTranslation(['app'])
+
+ return (
+ <>
+ {hasPartialFailure && (
+ <p className="flex items-center gap-1.5 px-4 pt-3 text-xs text-text-tertiary">
+ <span
+ aria-hidden
+ className="i-ri-error-warning-line size-3.5 shrink-0 text-text-warning"
+ />
+ {t(($) => $['gotoAnything.someServicesUnavailable'], { ns: 'app' })}
+ </p>
+ )}
+ {emptyState && <EmptyState variant={emptyState} scope={scope} error={error} />}
+ <ResultList {...listProps} />
+ </>
+ )
+}
diff --git a/web/app/components/goto-anything/dialog-handle.ts b/web/app/components/goto-anything/handles.ts
similarity index 52%
rename from web/app/components/goto-anything/dialog-handle.ts
rename to web/app/components/goto-anything/handles.ts
index 2fccb17ec53..0400d9aa78e 100644
--- a/web/app/components/goto-anything/dialog-handle.ts
+++ b/web/app/components/goto-anything/handles.ts
@@ -1,5 +1,8 @@
'use client'
import { createDialogHandle } from '@langgenius/dify-ui/dialog'
+import { createDrawerHandle } from '@langgenius/dify-ui/drawer'
export const gotoAnythingDialogHandle = createDialogHandle()
+
+export const gotoAnythingDrawerHandle = createDrawerHandle()
diff --git a/web/app/components/goto-anything/index.tsx b/web/app/components/goto-anything/index.tsx
index 5fdd079b43c..4c446a333b9 100644
--- a/web/app/components/goto-anything/index.tsx
+++ b/web/app/components/goto-anything/index.tsx
@@ -1,71 +1,27 @@
'use client'
-import type { AutocompleteChangeEventDetails } from '@langgenius/dify-ui/autocomplete'
import type { Plugin } from '../plugins/types'
-import type { ActionItem, SearchResult } from './actions/types'
-import type { GotoAnythingOption } from './command-options'
-import {
- Autocomplete,
- AutocompleteInput,
- AutocompleteInputGroup,
- AutocompleteStatus,
-} from '@langgenius/dify-ui/autocomplete'
import { Dialog, DialogClose, DialogContent, DialogTitle } from '@langgenius/dify-ui/dialog'
-import { Kbd, KbdGroup } from '@langgenius/dify-ui/kbd'
import {
- ScrollArea,
- ScrollAreaContent,
- ScrollAreaScrollbar,
- ScrollAreaThumb,
- ScrollAreaViewport,
-} from '@langgenius/dify-ui/scroll-area'
-import { formatForDisplay, HotkeysProvider, useHotkey } from '@tanstack/react-hotkeys'
-import { keepPreviousData, useQuery } from '@tanstack/react-query'
-import { useDebouncedValue } from 'foxact/use-debounced-value'
-import { useAtomValue } from 'jotai'
-import { useId, useMemo, useRef, useState } from 'react'
+ Drawer,
+ DrawerBackdrop,
+ DrawerClose,
+ DrawerPopup,
+ DrawerPortal,
+ DrawerTitle,
+ DrawerViewport,
+ DrawerVirtualKeyboardProvider,
+} from '@langgenius/dify-ui/drawer'
+import { useMediaQuery } from '@langgenius/dify-ui/use-media-query'
+import { useHotkey } from '@tanstack/react-hotkeys'
+import { useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
-import { selectWorkflowNode } from '@/app/components/workflow/utils/node-navigation'
-import { useGetLanguage } from '@/context/i18n'
-import { isCurrentWorkspaceDatasetOperatorAtom } from '@/context/workspace-state'
-import { isAgentV2Enabled } from '@/features/agent-v2/feature-flag'
-import { useMarketplace, useMarketplacePluginSearch } from '@/features/marketplace/client'
-import { usePathname, useRouter } from '@/next/navigation'
-import { consoleQuery } from '@/service/console'
import { PluginInstallPermissionProvider } from '../plugins/install-plugin/components/plugin-install-permission-provider'
import useWorkspacePluginInstallPermission from '../plugins/install-plugin/hooks/use-workspace-plugin-install-permission'
import InstallFromMarketplace from '../plugins/install-plugin/install-from-marketplace'
-import { createActions, getActionSearchTerm, matchAction } from './actions'
-import { agentSearchQueryOptions } from './actions/agent'
-import { appSearchQueryOptions } from './actions/app'
-import { slashCommandRegistry } from './actions/commands/catalog'
-import { createSlashAction } from './actions/commands/slash'
-import { useCommandContext } from './actions/commands/use-command-context'
-import { knowledgeSearchQueryOptions } from './actions/knowledge'
-import { parsePluginSearchResults } from './actions/plugin'
-import { skillSearchQueryOptions } from './actions/skill'
-import { isCommandOption, useCommandOptions } from './command-options'
-import { EmptyState } from './components/empty-state'
-import { Footer } from './components/footer'
-import { gotoAnythingDialogHandle } from './dialog-handle'
+import { gotoAnythingDialogHandle, gotoAnythingDrawerHandle } from './handles'
import { GOTO_ANYTHING_HOTKEY } from './hotkeys'
-import { CommandGrid, ResultList } from './results'
-
-const appWorkflowPathPattern = /^\/app\/[^/]+\/workflow$/
-const sharedWorkflowPathPattern = /^\/workflow\/[^/]+$/
-const ragPipelinePathPattern = /^\/datasets\/[^/]+\/pipeline$/
-
-const groupLabelKeys = {
- app: 'gotoAnything.groups.apps',
- plugin: 'gotoAnything.groups.plugins',
- knowledge: 'gotoAnything.groups.knowledgeBases',
- 'workflow-node': 'gotoAnything.groups.workflowNodes',
- command: 'gotoAnything.groups.commands',
-} as const
-
-function optionToInputValue(option: GotoAnythingOption) {
- return isCommandOption(option) ? `${option.shortcut} ` : option.title
-}
+import { SearchSession } from './search-session'
function isEditableShortcutTarget(target: EventTarget | null) {
if (!(target instanceof HTMLElement)) return false
@@ -73,259 +29,29 @@ function isEditableShortcutTarget(target: EventTarget | null) {
return target.isContentEditable || ['INPUT', 'TEXTAREA', 'SELECT'].includes(target.tagName)
}
-function getSearchMode(
- searchQuery: string,
- isCommandsMode: boolean,
- actions: Record<string, ActionItem>,
-) {
- if (isCommandsMode) return searchQuery.trim().startsWith('/') ? 'commands' : 'scopes'
-
- const action = matchAction(searchQuery.trimStart().toLowerCase(), actions)
- if (!action) return 'general'
-
- return action.key === '/' ? '@command' : action.key
-}
-
-function isCommandSelectionQuery(query: string, actions: Record<string, ActionItem>) {
- const trimmedQuery = query.trim()
- if (!trimmedQuery || trimmedQuery === '@' || trimmedQuery === '/') return true
-
- return (
- (trimmedQuery.startsWith('@') || trimmedQuery.startsWith('/')) &&
- !matchAction(query.trimStart().toLowerCase(), actions)
- )
-}
-
-function getActionIdentity(query: string, action: ActionItem) {
- if (action.key !== '/') return action.key
- return query.split(/\s/, 1)[0]
-}
-
-function getActionBaseQuery(query: string, action: ActionItem) {
- if (action.key === '/') return `${getActionIdentity(query, action)} `
- return `${query.split(/\s/, 1)[0] ?? action.shortcut} `
-}
-
-function getRemoteSearchIdentity(
- query: string,
- isCommandsMode: boolean,
- action: ActionItem | undefined,
-) {
- if (!query.trim() || isCommandsMode || action?.source === 'local') return null
- return action?.key ?? 'general'
-}
-
-function dedupeSearchResults(results: SearchResult[]) {
- const seen = new Set<string>()
- return results.filter((result) => {
- const key = `${result.type}-${result.id}`
- if (seen.has(key)) return false
-
- seen.add(key)
- return true
- })
-}
-
-function groupSearchResults(results: SearchResult[]) {
- return results.reduce<Record<string, SearchResult[]>>((groups, result) => {
- const group = groups[result.type] ?? []
- group.push(result)
- groups[result.type] = group
- return groups
- }, {})
-}
-
-function SearchDialogHotkeys() {
- // Keep the browser from claiming Mod+K while the global opener is suspended.
- useHotkey(GOTO_ANYTHING_HOTKEY, () => {})
- return null
-}
-
export function GotoAnything() {
- const { t } = useTranslation(['app', 'common', 'skill', 'modelProvider', 'agentRoster'])
- const pathname = usePathname()
- const router = useRouter()
- const defaultLocale = useGetLanguage()
- const isCurrentWorkspaceDatasetOperator = useAtomValue(isCurrentWorkspaceDatasetOperatorAtom)
- const { data: enableSkill } = useQuery(
- consoleQuery.features.get.queryOptions({
- select: (features) => features.enable_skill,
- }),
- )
- const agentsAvailable = isAgentV2Enabled()
- const skillsAvailable = enableSkill === true && !isCurrentWorkspaceDatasetOperator
- const pluginsAvailable = useMarketplace() !== null
- const isWorkflowPage =
- appWorkflowPathPattern.test(pathname) || sharedWorkflowPathPattern.test(pathname)
- const isRagPipelinePage = ragPipelinePathPattern.test(pathname)
- const { canInstallPlugin, currentDifyVersion } = useWorkspacePluginInstallPermission()
- const [searchQuery, setSearchQuery] = useState('')
+ const { t } = useTranslation(['app', 'common'])
+ const [drawerOpen, setDrawerOpen] = useState(false)
+ const isAtLeastMd = useMediaQuery('(width >= 48rem)', {})
+ if (isAtLeastMd && drawerOpen) setDrawerOpen(false)
const [activePlugin, setActivePlugin] = useState<Plugin>()
- const inputRef = useRef<HTMLInputElement>(null)
- const searchHintId = useId()
- const hotkeyScopeId = useId()
- const commandContext = useCommandContext(agentsAvailable, skillsAvailable, isWorkflowPage)
- const actions = useMemo(
- () =>
- createActions(createSlashAction(commandContext), isWorkflowPage, isRagPipelinePage, {
- agents: agentsAvailable,
- plugins: pluginsAvailable,
- skills: skillsAvailable,
- }),
- [
- agentsAvailable,
- commandContext,
- isWorkflowPage,
- isRagPipelinePage,
- pluginsAvailable,
- skillsAvailable,
- ],
- )
- const { commandOptions, scopeOptions } = useCommandOptions(actions, searchQuery, commandContext)
- const trimmedSearchQuery = searchQuery.trim()
- const normalizedSearchQuery = searchQuery.trimStart().toLowerCase()
- const isCommandsMode = isCommandSelectionQuery(searchQuery, actions)
- const searchMode = getSearchMode(searchQuery, isCommandsMode, actions)
- const currentAction = matchAction(normalizedSearchQuery, actions)
- const debouncedSearchQuery = useDebouncedValue(searchQuery, 300)
- const normalizedDebouncedQuery = debouncedSearchQuery.trimStart().toLowerCase()
- const isDebouncedCommandsMode = isCommandSelectionQuery(debouncedSearchQuery, actions)
- const debouncedAction = matchAction(normalizedDebouncedQuery, actions)
- const debouncedSearchTerm = debouncedAction
- ? getActionSearchTerm(normalizedDebouncedQuery, debouncedAction)
- : normalizedDebouncedQuery.trimEnd()
- const remoteSearchEnabled = Boolean(normalizedDebouncedQuery.trim()) && !isDebouncedCommandsMode
- const appSearchEnabled =
- remoteSearchEnabled && (!debouncedAction || debouncedAction.key === '@app')
- const knowledgeSearchEnabled =
- remoteSearchEnabled && (!debouncedAction || debouncedAction.key === '@knowledge')
- const pluginSearchEnabled =
- remoteSearchEnabled &&
- pluginsAvailable &&
- (!debouncedAction || debouncedAction.key === '@plugin')
- const skillSearchEnabled =
- remoteSearchEnabled && skillsAvailable && (!debouncedAction || debouncedAction.key === '@skill')
- const agentSearchEnabled =
- remoteSearchEnabled &&
- agentsAvailable &&
- (!debouncedAction || debouncedAction.key === '@agents')
- const appSearchQuery = useQuery(
- appSearchQueryOptions(debouncedSearchTerm, debouncedAction?.key === '@app', {
- enabled: appSearchEnabled,
- placeholderData: keepPreviousData,
- }),
- )
- const knowledgeSearchQuery = useQuery(
- knowledgeSearchQueryOptions(debouncedSearchTerm, {
- enabled: knowledgeSearchEnabled,
- placeholderData: keepPreviousData,
- }),
- )
- const pluginSearchQuery = useMarketplacePluginSearch(debouncedSearchTerm, {
- enabled: pluginSearchEnabled,
- select: (plugins) => parsePluginSearchResults(plugins, defaultLocale),
- })
- const skillSearchQuery = useQuery(
- skillSearchQueryOptions(debouncedSearchTerm, {
- enabled: skillSearchEnabled,
- placeholderData: keepPreviousData,
- }),
- )
- const agentSearchQuery = useQuery(
- agentSearchQueryOptions(debouncedSearchTerm, {
- enabled: agentSearchEnabled,
- placeholderData: keepPreviousData,
- }),
- )
- const isSameLocalAction =
- currentAction?.source === 'local' &&
- debouncedAction?.source === 'local' &&
- getActionIdentity(normalizedSearchQuery, currentAction) ===
- getActionIdentity(normalizedDebouncedQuery, debouncedAction)
- const isLocalSearchDebouncing =
- currentAction?.source === 'local' && normalizedSearchQuery !== normalizedDebouncedQuery
- const isSameGeneralSearch =
- currentAction === undefined &&
- debouncedAction === undefined &&
- !isCommandsMode &&
- !isDebouncedCommandsMode &&
- Boolean(normalizedSearchQuery.trim()) &&
- Boolean(normalizedDebouncedQuery.trim())
- let localSearchQuery = normalizedSearchQuery
- if (isSameLocalAction || isSameGeneralSearch) localSearchQuery = normalizedDebouncedQuery
- else if (isLocalSearchDebouncing)
- localSearchQuery = getActionBaseQuery(normalizedSearchQuery, currentAction)
- const localSearchEnabled = Boolean(trimmedSearchQuery) && !isCommandsMode
- const localSearchResults = useMemo(() => {
- if (!localSearchEnabled) return []
-
- const action = matchAction(localSearchQuery, actions)
- if (action?.source === 'local') {
- return action.search(
- localSearchQuery,
- getActionSearchTerm(localSearchQuery, action),
- defaultLocale,
- )
- }
- if (action) return []
-
- return Object.values(actions).flatMap((candidate) => {
- if (candidate.source !== 'local' || candidate.key === '/') return []
- const generalSearchTerm = localSearchQuery.trimEnd()
- return candidate.search(generalSearchTerm, generalSearchTerm, defaultLocale)
- })
- }, [actions, defaultLocale, localSearchEnabled, localSearchQuery])
- const debouncedRemoteQueries = [
- appSearchEnabled ? appSearchQuery : undefined,
- knowledgeSearchEnabled ? knowledgeSearchQuery : undefined,
- pluginSearchEnabled ? pluginSearchQuery : undefined,
- skillSearchEnabled ? skillSearchQuery : undefined,
- agentSearchEnabled ? agentSearchQuery : undefined,
- ].filter((query) => query !== undefined)
- const currentRemoteSearchIdentity = getRemoteSearchIdentity(
- normalizedSearchQuery,
- isCommandsMode,
- currentAction,
- )
- const debouncedRemoteSearchIdentity = getRemoteSearchIdentity(
- normalizedDebouncedQuery,
- isDebouncedCommandsMode,
- debouncedAction,
- )
- const isSameRemoteSearch =
- currentRemoteSearchIdentity !== null &&
- currentRemoteSearchIdentity === debouncedRemoteSearchIdentity
- const currentRemoteQueries = isSameRemoteSearch ? debouncedRemoteQueries : []
- const isRemoteSearchDebouncing =
- currentRemoteSearchIdentity !== null && normalizedSearchQuery !== normalizedDebouncedQuery
- const isDebouncing = isRemoteSearchDebouncing || isLocalSearchDebouncing
- const isLoading =
- isDebouncing || currentRemoteQueries.some((query) => query.isLoading || query.isFetching)
- const failedRemoteQueries = currentRemoteQueries.filter((query) => query.isError)
- const allRemoteSearchesFailed =
- currentRemoteQueries.length > 0 && failedRemoteQueries.length === currentRemoteQueries.length
- const hasUnavailableServices = failedRemoteQueries.length > 0
- const queryError = failedRemoteQueries[0]?.error
- const error = queryError instanceof Error ? queryError : null
- const remoteSearchResults = currentRemoteQueries.flatMap((query) => query.data ?? [])
- const searchResults = [...localSearchResults, ...remoteSearchResults]
- const dedupedResults = dedupeSearchResults(searchResults)
- const groupedResults = groupSearchResults(dedupedResults)
-
- function handleDialogOpenChangeComplete(open: boolean) {
- if (!open) setSearchQuery('')
- }
+ const { canInstallPlugin, currentDifyVersion } = useWorkspacePluginInstallPermission()
+ const dialogInputRef = useRef<HTMLInputElement>(null)
+ const drawerInputRef = useRef<HTMLInputElement>(null)
useHotkey(
GOTO_ANYTHING_HOTKEY,
(event) => {
if (event.defaultPrevented) return
- if (!gotoAnythingDialogHandle.isOpen && isEditableShortcutTarget(event.target)) return
+ const isOpen = gotoAnythingDialogHandle.isOpen || drawerOpen
+ if (!isOpen && isEditableShortcutTarget(event.target)) return
event.preventDefault()
event.stopPropagation()
- if (!gotoAnythingDialogHandle.isOpen) gotoAnythingDialogHandle.open(null)
+ if (isOpen) return
+ if (isAtLeastMd) gotoAnythingDialogHandle.open(null)
+ else setDrawerOpen(true)
},
{
ignoreInputs: false,
@@ -334,262 +60,65 @@ export function GotoAnything() {
},
)
- function handleCommandSelect(commandKey: string) {
- if (commandKey.startsWith('/')) {
- const handler = slashCommandRegistry.findCommand(commandKey.slice(1))
- if (handler?.isAvailable?.(commandContext) === false) return
- if (handler?.mode === 'direct') {
- void slashCommandRegistry.execute(handler.name, {}, commandContext)
- gotoAnythingDialogHandle.close()
- return
- }
- }
-
- changeSearchQuery(commandKey === '/' ? '/' : `${commandKey} `)
- }
-
- function changeSearchQuery(query: string) {
- setSearchQuery(query)
- // Autocomplete finishes activating the old option before focus returns to the input.
- queueMicrotask(() => inputRef.current?.focus())
- }
-
- function handleNavigate(result: SearchResult) {
+ function closeSearch() {
gotoAnythingDialogHandle.close()
-
- switch (result.type) {
- case 'command':
- actions.slash.action?.(result)
- break
- case 'plugin':
- setActivePlugin(result.data)
- break
- case 'workflow-node':
- if (result.metadata?.nodeId) selectWorkflowNode(result.metadata.nodeId, true)
- break
- default:
- if (result.path) router.push(result.path)
- }
+ setDrawerOpen(false)
}
- function handleAutocompleteValueChange(
- nextValue: string,
- eventDetails: AutocompleteChangeEventDetails,
- ) {
- if (eventDetails.reason !== 'item-press') setSearchQuery(nextValue)
- }
-
- function selectOption(option: GotoAnythingOption) {
- if (!isCommandOption(option)) handleNavigate(option)
- else if (option.result) handleNavigate(option.result)
- else handleCommandSelect(option.shortcut)
- }
-
- function getGroupLabel(type: string) {
- if (type === 'skill') return t(($) => $['skillManagement.title'], { ns: 'skill' })
- if (type === 'agent') return t(($) => $['roster.title'], { ns: 'agentRoster' })
-
- return t(($) => $[groupLabelKeys[type as keyof typeof groupLabelKeys] || `${type}s`], {
- ns: 'app',
- })
- }
-
- const isHome = !trimmedSearchQuery
- const isScopeSelection = isCommandsMode && trimmedSearchQuery.startsWith('@')
- const showCommands =
- isHome || (isCommandsMode && !isScopeSelection) || (!currentAction && !isCommandsMode)
- const optionSuggestions = isScopeSelection ? scopeOptions : showCommands ? commandOptions : []
- const visibleOptions: GotoAnythingOption[] = [
- ...optionSuggestions,
- ...(isHome ? scopeOptions : []),
- ...(!isCommandsMode ? dedupedResults : []),
- ]
- const optionGroups = [
- {
- id: isScopeSelection ? 'scopes' : 'commands',
- label: isScopeSelection
- ? t(($) => $['gotoAnything.selectSearchType'], { ns: 'app' })
- : t(($) => $['gotoAnything.groups.commands'], { ns: 'app' }),
- items: optionSuggestions,
- },
- ...(isHome
- ? [
- {
- id: 'scopes',
- label: t(($) => $['gotoAnything.selectSearchType'], { ns: 'app' }),
- items: scopeOptions,
- },
- ]
- : []),
- ]
- const autocompleteResultCount = visibleOptions.length
- const isError = allRemoteSearchesFailed && autocompleteResultCount === 0
-
- let autocompleteStatus: string | null = null
- if (isLoading) autocompleteStatus = t(($) => $['gotoAnything.searching'], { ns: 'app' })
- else if (isError) autocompleteStatus = t(($) => $['gotoAnything.searchFailed'], { ns: 'app' })
- else if (hasUnavailableServices)
- autocompleteStatus = t(($) => $['gotoAnything.someServicesUnavailable'], { ns: 'app' })
- else if (trimmedSearchQuery)
- autocompleteStatus = t(($) => $['gotoAnything.resultCount'], {
- ns: 'app',
- count: autocompleteResultCount,
- })
-
- let emptyStateVariant: 'loading' | 'error' | 'no-results' | null = null
- if (isLoading && autocompleteResultCount === 0) emptyStateVariant = 'loading'
- else if (isError) emptyStateVariant = 'error'
- else if (autocompleteResultCount === 0) emptyStateVariant = 'no-results'
+ const searchTitle = t(($) => $['gotoAnything.searchTitle'], { ns: 'app' })
+ const closeLabel = t(($) => $['operation.close'], { ns: 'common' })
return (
<>
- <Dialog
- handle={gotoAnythingDialogHandle}
- onOpenChangeComplete={handleDialogOpenChangeComplete}
- >
+ <Dialog handle={gotoAnythingDialogHandle}>
<DialogContent
- initialFocus={inputRef}
- className="w-160 data-open:transition-none"
+ initialFocus={dialogInputRef}
+ className="w-140 data-open:transition-none"
backdropProps={{ className: 'bg-background-overlay-alt data-open:transition-none' }}
>
- <HotkeysProvider scope={hotkeyScopeId} exclusive>
- <SearchDialogHotkeys />
- <div
- aria-hidden
- className="pointer-events-none absolute inset-x-0 top-0 h-64 bg-[url('/marketplace/hero-gradient-noise.svg')] bg-cover bg-center opacity-18 dark:opacity-28"
- />
- <div
- aria-hidden
- className="pointer-events-none absolute inset-x-0 top-0 h-64 bg-linear-to-b from-components-panel-bg/20 via-components-panel-bg/70 to-components-panel-bg"
- />
- <DialogTitle className="sr-only">
- {t(($) => $['gotoAnything.searchTitle'], { ns: 'app' })}
- </DialogTitle>
- <Autocomplete<GotoAnythingOption>
- items={visibleOptions}
- value={searchQuery}
- onValueChange={handleAutocompleteValueChange}
- itemToStringValue={optionToInputValue}
- filter={null}
- grid={isCommandsMode}
- open
- inline
- autoHighlight="always"
- keepHighlight
- loopFocus
- >
- <AutocompleteInputGroup
- size="medium"
- // oxlint-disable-next-line shadcn/no-restyle -- The inline command palette keeps focus in search and indicates navigation on the active descendant.
- className="h-auto shrink-0 gap-3 rounded-none border-0 bg-components-panel-bg-blur px-4 py-3 has-[input:focus]:ring-0"
- >
- <span aria-hidden className="i-ri-search-line size-4 text-text-quaternary" />
- <div className="flex min-w-0 flex-1 items-center gap-2">
- <AutocompleteInput
- ref={inputRef}
- size="medium"
- aria-label={t(($) => $['gotoAnything.searchTitle'], { ns: 'app' })}
- placeholder={t(($) => $['gotoAnything.searchPlaceholder'], { ns: 'app' })}
- aria-describedby={searchHintId}
- className="px-0"
- />
- </div>
- <KbdGroup className="hidden sm:flex">
- {formatForDisplay(GOTO_ANYTHING_HOTKEY, { parts: true }).map((key) => (
- <Kbd key={key}>{key}</Kbd>
- ))}
- </KbdGroup>
- </AutocompleteInputGroup>
- <p id={searchHintId} className="sr-only">
- {t(($) => $['gotoAnything.searchHint'], { ns: 'app' })}
- </p>
-
- <AutocompleteStatus className="sr-only">{autocompleteStatus}</AutocompleteStatus>
-
- <ScrollArea className="h-120 min-h-0 shrink overflow-hidden border-t border-divider-subtle">
- <ScrollAreaViewport
- tabIndex={-1}
- aria-busy={isLoading || undefined}
- className="scroll-pt-10 scroll-pb-1 overscroll-contain"
- >
- <ScrollAreaContent
- className="min-h-full w-full max-w-full"
- style={{ minWidth: '100%' }}
- >
- {emptyStateVariant === 'loading' && <EmptyState variant="loading" />}
-
- {emptyStateVariant === 'error' && <EmptyState variant="error" error={error} />}
-
- {emptyStateVariant === 'no-results' && isCommandsMode && (
- <div className="flex items-center justify-center py-8 text-center text-text-tertiary">
- <div>
- <div className="text-sm font-medium text-text-tertiary">
- {t(($) => $['gotoAnything.noMatchingCommands'], { ns: 'app' })}
- </div>
- <div className="mt-1 text-xs text-text-quaternary">
- {t(($) => $['gotoAnything.tryDifferentSearch'], { ns: 'app' })}
- </div>
- </div>
- </div>
- )}
-
- {emptyStateVariant === 'no-results' && !isCommandsMode && (
- <EmptyState
- variant={emptyStateVariant}
- searchMode={searchMode}
- actions={actions}
- />
- )}
-
- {isCommandsMode ? (
- <CommandGrid
- groups={optionGroups}
- label={
- isHome
- ? t(($) => $['gotoAnything.searchTitle'], { ns: 'app' })
- : optionGroups[0]!.label
- }
- onSelect={selectOption}
- />
- ) : (
- <ResultList
- groups={[
- {
- id: 'commands',
- label: getGroupLabel('command'),
- items: optionSuggestions,
- },
- ...Object.entries(groupedResults).map(([type, items]) => ({
- id: type,
- label: getGroupLabel(type),
- items,
- })),
- ]}
- label={t(($) => $['gotoAnything.searchTitle'], { ns: 'app' })}
- onSelect={selectOption}
- />
- )}
- </ScrollAreaContent>
- </ScrollAreaViewport>
- <ScrollAreaScrollbar>
- <ScrollAreaThumb />
- </ScrollAreaScrollbar>
- </ScrollArea>
-
- <Footer
- onSelectMode={changeSearchQuery}
- resultCount={trimmedSearchQuery ? autocompleteResultCount : null}
- isLoading={isLoading}
- hasPartialFailure={hasUnavailableServices && !isError}
- />
- </Autocomplete>
- <DialogClose tabIndex={-1} className="sr-only">
- {t(($) => $['operation.close'], { ns: 'common' })}
- </DialogClose>
- </HotkeysProvider>
+ <DialogTitle className="sr-only">{searchTitle}</DialogTitle>
+ <SearchSession
+ surface="dialog"
+ inputRef={dialogInputRef}
+ onClose={closeSearch}
+ onInstallPlugin={setActivePlugin}
+ />
+ <DialogClose tabIndex={-1} className="sr-only">
+ {closeLabel}
+ </DialogClose>
</DialogContent>
</Dialog>
+ <Drawer
+ handle={gotoAnythingDrawerHandle}
+ swipeDirection="down"
+ open={drawerOpen}
+ onOpenChange={setDrawerOpen}
+ >
+ <DrawerVirtualKeyboardProvider>
+ <DrawerPortal>
+ <DrawerBackdrop className="fixed bg-background-overlay-alt" />
+ <DrawerViewport>
+ <DrawerPopup
+ initialFocus={drawerInputRef}
+ className="h-[min(85dvh,calc(100dvh-3.5rem))]"
+ >
+ <DrawerTitle className="sr-only">{searchTitle}</DrawerTitle>
+ <SearchSession
+ surface="drawer"
+ inputRef={drawerInputRef}
+ onClose={closeSearch}
+ onInstallPlugin={setActivePlugin}
+ />
+ <DrawerClose tabIndex={-1} className="sr-only">
+ {closeLabel}
+ </DrawerClose>
+ </DrawerPopup>
+ </DrawerViewport>
+ </DrawerPortal>
+ </DrawerVirtualKeyboardProvider>
+ </Drawer>
+
{activePlugin && canInstallPlugin && (
<PluginInstallPermissionProvider
canInstallPlugin={canInstallPlugin}
diff --git a/web/app/components/goto-anything/results.tsx b/web/app/components/goto-anything/results.tsx
index bbbc92bb7ba..6473bf0e597 100644
--- a/web/app/components/goto-anything/results.tsx
+++ b/web/app/components/goto-anything/results.tsx
@@ -1,11 +1,10 @@
-import type { CommandOption, GotoAnythingOption } from './command-options'
+import type { GotoAnythingOption } from './command-options'
import {
AutocompleteCollection,
AutocompleteGroup,
AutocompleteGroupLabel,
AutocompleteItem,
AutocompleteList,
- AutocompleteRow,
} from '@langgenius/dify-ui/autocomplete'
import { cn } from '@langgenius/dify-ui/cn'
import { isCommandOption } from './command-options'
@@ -16,70 +15,13 @@ type OptionGroup<T> = {
items: T[]
}
-export function CommandGrid({
- groups,
- label,
- onSelect,
-}: {
- groups: OptionGroup<CommandOption>[]
+export type ResultListProps = {
+ groups: OptionGroup<GotoAnythingOption>[]
label: string
onSelect: (option: GotoAnythingOption) => void
-}) {
- return (
- <AutocompleteList aria-label={label} className="max-h-none overflow-visible p-0">
- {groups
- .filter((group) => group.items.length > 0)
- .map((group) => (
- <AutocompleteGroup key={group.id} items={group.items}>
- <AutocompleteGroupLabel className="flex h-10 items-end px-4 pb-2 text-start font-mono text-[11px] font-medium tracking-[0.12em] text-text-tertiary uppercase">
- {group.label}
- </AutocompleteGroupLabel>
- <div className="flex flex-col gap-1 px-4 pb-3">
- {Array.from({ length: Math.ceil(group.items.length / 2) }, (_, rowIndex) => {
- const row = group.items.slice(rowIndex * 2, rowIndex * 2 + 2)
- return (
- <AutocompleteRow key={row[0]!.shortcut} className="grid grid-cols-2 gap-2">
- {row.map((option) => (
- <AutocompleteItem
- key={option.shortcut}
- value={option}
- className="group m-0 min-h-18 items-start gap-2 rounded-xl border-[0.5px] border-components-card-border bg-components-card-bg/90 p-2 shadow-xs shadow-shadow-shadow-3 backdrop-blur-sm data-highlighted:border-state-accent-solid/30 data-highlighted:bg-state-accent-hover sm:gap-3 sm:p-3"
- onClick={() => onSelect(option)}
- >
- <span className="flex size-6 shrink-0 items-center justify-center rounded-lg border-[0.5px] border-divider-regular bg-background-default text-text-tertiary group-data-highlighted:text-text-accent sm:size-8">
- <span aria-hidden className={cn(option.icon, 'size-4')} />
- </span>
- <span className="min-w-0 flex-1 text-start">
- <span className="block font-mono text-xs font-semibold tracking-[-0.01em] wrap-break-word text-text-primary">
- {option.shortcut}
- </span>
- <span className="mt-1 block text-xs leading-4 wrap-break-word text-text-tertiary">
- {option.shortcut.startsWith('@')
- ? (option.description ?? option.title)
- : option.title}
- </span>
- </span>
- </AutocompleteItem>
- ))}
- </AutocompleteRow>
- )
- })}
- </div>
- </AutocompleteGroup>
- ))}
- </AutocompleteList>
- )
}
-export function ResultList({
- groups,
- label,
- onSelect,
-}: {
- groups: OptionGroup<GotoAnythingOption>[]
- label: string
- onSelect: (option: GotoAnythingOption) => void
-}) {
+export function ResultList({ groups, label, onSelect }: ResultListProps) {
return (
<AutocompleteList aria-label={label} className="max-h-none overflow-visible p-0">
{groups
@@ -98,26 +40,32 @@ export function ResultList({
: `${option.type}:${option.id}`
}
value={option}
- className="group mx-2 min-h-12 gap-3 px-3 py-2 text-text-primary"
+ className={cn(
+ 'mx-2 gap-3 px-3 py-1 text-text-primary',
+ option.description ? 'min-h-12' : 'min-h-11 md:min-h-10',
+ )}
onClick={() => onSelect(option)}
>
{isCommandOption(option) ? (
- <span className="flex size-8 shrink-0 items-center justify-center text-text-tertiary group-data-highlighted:text-text-accent">
+ <span className="flex size-8 shrink-0 items-center justify-center text-text-tertiary">
<span aria-hidden className={cn(option.icon, 'size-5')} />
</span>
) : (
option.icon
)}
<span className="min-w-0 flex-1 text-start">
- <span className="block text-sm font-medium">{option.title}</span>
+ <span className="block truncate text-sm font-medium">{option.title}</span>
{option.description && (
- <span className="block text-xs text-text-tertiary">{option.description}</span>
+ <span className="block truncate text-xs text-text-tertiary">
+ {option.description}
+ </span>
)}
</span>
- {isCommandOption(option) && (
- <span className="shrink-0 font-mono text-xs text-text-tertiary">
- {option.shortcut}
- </span>
+ {isCommandOption(option) && option.opensPage && (
+ <span
+ aria-hidden
+ className="i-ri-arrow-right-s-line size-4 shrink-0 text-text-quaternary [&:dir(rtl)]:-scale-x-100"
+ />
)}
</AutocompleteItem>
)}
diff --git a/web/app/components/goto-anything/search-session.tsx b/web/app/components/goto-anything/search-session.tsx
new file mode 100644
index 00000000000..a4d76d27c23
--- /dev/null
+++ b/web/app/components/goto-anything/search-session.tsx
@@ -0,0 +1,625 @@
+'use client'
+
+import type { AutocompleteChangeEventDetails } from '@langgenius/dify-ui/autocomplete'
+import type { KeyboardEvent, ReactNode, RefObject } from 'react'
+import type { Plugin } from '../plugins/types'
+import type { ActionItem, SearchResult } from './actions/types'
+import type { GotoAnythingOption, ScopeSelection, SearchScope } from './command-options'
+import type { EmptyStateProps } from './components/empty-state'
+import {
+ Autocomplete,
+ AutocompleteClear,
+ AutocompleteInput,
+ AutocompleteInputGroup,
+} from '@langgenius/dify-ui/autocomplete'
+import { cn } from '@langgenius/dify-ui/cn'
+import { DrawerContent } from '@langgenius/dify-ui/drawer'
+import {
+ ScrollArea,
+ ScrollAreaContent,
+ ScrollAreaScrollbar,
+ ScrollAreaThumb,
+ ScrollAreaViewport,
+} from '@langgenius/dify-ui/scroll-area'
+import { HotkeysProvider, useHotkey } from '@tanstack/react-hotkeys'
+import { keepPreviousData, useQuery } from '@tanstack/react-query'
+import { useDebouncedValue } from 'foxact/use-debounced-value'
+import { useAtomValue } from 'jotai'
+import { useId, useMemo, useState } from 'react'
+import { useTranslation } from 'react-i18next'
+import { selectWorkflowNode } from '@/app/components/workflow/utils/node-navigation'
+import { useGetLanguage } from '@/context/i18n'
+import { isCurrentWorkspaceDatasetOperatorAtom } from '@/context/workspace-state'
+import { isAgentV2Enabled } from '@/features/agent-v2/feature-flag'
+import { useMarketplace, useMarketplacePluginSearch } from '@/features/marketplace/client'
+import { usePathname, useRouter } from '@/next/navigation'
+import { consoleQuery } from '@/service/console'
+import { createActions, getActionSearchTerm, matchAction } from './actions'
+import { agentSearchQueryOptions } from './actions/agent'
+import { appSearchQueryOptions } from './actions/app'
+import { slashCommandRegistry } from './actions/commands/catalog'
+import { createSlashAction } from './actions/commands/slash'
+import { useCommandContext } from './actions/commands/use-command-context'
+import { knowledgeSearchQueryOptions } from './actions/knowledge'
+import { parsePluginSearchResults } from './actions/plugin'
+import { skillSearchQueryOptions } from './actions/skill'
+import { isCommandOption, useCommandOptions } from './command-options'
+import { ContextToken } from './components/context-token'
+import { ScopeBar } from './components/scope-bar'
+import { SearchAnnouncements } from './components/search-announcements'
+import { SearchResults } from './components/search-results'
+import { GOTO_ANYTHING_HOTKEY } from './hotkeys'
+
+type Surface = 'dialog' | 'drawer'
+
+const appWorkflowPathPattern = /^\/app\/[^/]+\/workflow$/
+const sharedWorkflowPathPattern = /^\/workflow\/[^/]+$/
+const ragPipelinePathPattern = /^\/datasets\/[^/]+\/pipeline$/
+
+const groupLabelKeys = {
+ app: 'gotoAnything.groups.apps',
+ plugin: 'gotoAnything.groups.plugins',
+ knowledge: 'gotoAnything.groups.knowledgeBases',
+ 'workflow-node': 'gotoAnything.groups.workflowNodes',
+ command: 'gotoAnything.groups.commands',
+} as const
+
+function isCommandSelectionQuery(query: string, actions: Record<string, ActionItem>) {
+ const trimmedQuery = query.trim()
+ if (!trimmedQuery || trimmedQuery === '@' || trimmedQuery === '/') return true
+
+ return (
+ (trimmedQuery.startsWith('@') || trimmedQuery.startsWith('/')) &&
+ !matchAction(query.trimStart().toLowerCase(), actions)
+ )
+}
+
+function getActionIdentity(query: string, action: ActionItem) {
+ if (action.key !== '/') return action.key
+ return query.split(/\s/, 1)[0]
+}
+
+function getActionBaseQuery(query: string, action: ActionItem) {
+ if (action.key === '/') return `${getActionIdentity(query, action)} `
+ return `${query.split(/\s/, 1)[0] ?? action.shortcut} `
+}
+
+function getRemoteSearchIdentity(
+ query: string,
+ isCommandsMode: boolean,
+ action: ActionItem | undefined,
+) {
+ if (!query.trim() || isCommandsMode || action?.source === 'local') return null
+ return action?.key ?? 'general'
+}
+
+function dedupeSearchResults(results: SearchResult[]) {
+ const seen = new Set<string>()
+ return results.filter((result) => {
+ const key = `${result.type}-${result.id}`
+ if (seen.has(key)) return false
+
+ seen.add(key)
+ return true
+ })
+}
+
+function groupSearchResults(results: SearchResult[]) {
+ return results.reduce<Record<string, SearchResult[]>>((groups, result) => {
+ const group = groups[result.type] ?? []
+ group.push(result)
+ groups[result.type] = group
+ return groups
+ }, {})
+}
+
+function SearchDialogHotkeys() {
+ // Keep the browser from claiming Mod+K while the global opener is suspended.
+ useHotkey(GOTO_ANYTHING_HOTKEY, () => {})
+ return null
+}
+
+function ResultsViewport({
+ surface,
+ isLoading,
+ children,
+}: {
+ surface: Surface
+ isLoading: boolean
+ children: ReactNode
+}) {
+ const scrollArea = (
+ <ScrollArea
+ className={cn(
+ 'min-h-0 overflow-hidden',
+ surface === 'dialog' ? 'h-120 shrink border-t border-divider-subtle' : 'flex-1',
+ )}
+ >
+ <ScrollAreaViewport
+ tabIndex={-1}
+ aria-busy={isLoading || undefined}
+ className={cn(
+ 'scroll-pt-10 overscroll-contain',
+ surface === 'dialog'
+ ? 'scroll-pb-2'
+ : 'scroll-pb-[calc(--spacing(2)+var(--drawer-keyboard-inset,0px))]',
+ )}
+ >
+ <ScrollAreaContent
+ className={cn(
+ 'min-h-full w-full max-w-full',
+ surface === 'dialog'
+ ? 'pb-2'
+ : 'pb-[calc(--spacing(2)+env(safe-area-inset-bottom)+var(--drawer-keyboard-inset,0px))]',
+ )}
+ style={{ minWidth: '100%' }}
+ >
+ {children}
+ </ScrollAreaContent>
+ </ScrollAreaViewport>
+ <ScrollAreaScrollbar>
+ <ScrollAreaThumb />
+ </ScrollAreaScrollbar>
+ </ScrollArea>
+ )
+
+ if (surface === 'dialog') return scrollArea
+
+ return (
+ <DrawerContent className="overflow-hidden border-t border-divider-subtle">
+ {scrollArea}
+ </DrawerContent>
+ )
+}
+
+type SearchSessionProps = {
+ surface: Surface
+ inputRef: RefObject<HTMLInputElement | null>
+ onClose: () => void
+ onInstallPlugin: (plugin: Plugin) => void
+}
+
+export function SearchSession({ surface, inputRef, onClose, onInstallPlugin }: SearchSessionProps) {
+ const { t } = useTranslation(['app', 'common', 'skill', 'modelProvider', 'agentRoster'])
+ const pathname = usePathname()
+ const router = useRouter()
+ const defaultLocale = useGetLanguage()
+ const isCurrentWorkspaceDatasetOperator = useAtomValue(isCurrentWorkspaceDatasetOperatorAtom)
+ const { data: enableSkill } = useQuery(
+ consoleQuery.features.get.queryOptions({
+ select: (features) => features.enable_skill,
+ }),
+ )
+ const agentsAvailable = isAgentV2Enabled()
+ const skillsAvailable = enableSkill === true && !isCurrentWorkspaceDatasetOperator
+ const pluginsAvailable = useMarketplace() !== null
+ const isWorkflowPage =
+ appWorkflowPathPattern.test(pathname) || sharedWorkflowPathPattern.test(pathname)
+ const isRagPipelinePage = ragPipelinePathPattern.test(pathname)
+ const [term, setTerm] = useState('')
+ const [scope, setScope] = useState<ScopeSelection>('all')
+ const [page, setPage] = useState<string | null>(null)
+ const searchHintId = useId()
+ const hotkeyScopeId = useId()
+ const commandContext = useCommandContext(agentsAvailable, skillsAvailable, isWorkflowPage)
+ const actions = useMemo(
+ () =>
+ createActions(createSlashAction(commandContext), isWorkflowPage, isRagPipelinePage, {
+ agents: agentsAvailable,
+ plugins: pluginsAvailable,
+ skills: skillsAvailable,
+ }),
+ [
+ agentsAvailable,
+ commandContext,
+ isWorkflowPage,
+ isRagPipelinePage,
+ pluginsAvailable,
+ skillsAvailable,
+ ],
+ )
+ const scopeAction = Object.values(actions).find((action) => action.key === scope)
+ const activeScope = scopeAction ? scope : 'all'
+ const searchQuery = page ? `/${page} ${term}` : scopeAction ? `${scopeAction.key} ${term}` : term
+ const { commandOptions, scopeOptions, allScopeOptions, allCommandOptions } = useCommandOptions(
+ actions,
+ searchQuery,
+ commandContext,
+ )
+ const pageOption = page
+ ? allCommandOptions.find((option) => option.shortcut === `/${page}`)
+ : undefined
+ const scopeOption = allScopeOptions.find((option) => option.scope === activeScope)
+ const trimmedSearchQuery = searchQuery.trim()
+ const normalizedSearchQuery = searchQuery.trimStart().toLowerCase()
+ const isCommandsMode = isCommandSelectionQuery(searchQuery, actions)
+ const currentAction = matchAction(normalizedSearchQuery, actions)
+ const debouncedSearchQuery = useDebouncedValue(searchQuery, 300)
+ const normalizedDebouncedQuery = debouncedSearchQuery.trimStart().toLowerCase()
+ const isDebouncedCommandsMode = isCommandSelectionQuery(debouncedSearchQuery, actions)
+ const debouncedAction = matchAction(normalizedDebouncedQuery, actions)
+ const debouncedSearchTerm = debouncedAction
+ ? getActionSearchTerm(normalizedDebouncedQuery, debouncedAction)
+ : normalizedDebouncedQuery.trimEnd()
+ const remoteSearchEnabled = Boolean(normalizedDebouncedQuery.trim()) && !isDebouncedCommandsMode
+ const appSearchEnabled =
+ remoteSearchEnabled && (!debouncedAction || debouncedAction.key === '@app')
+ const knowledgeSearchEnabled =
+ remoteSearchEnabled && (!debouncedAction || debouncedAction.key === '@knowledge')
+ const pluginSearchEnabled =
+ remoteSearchEnabled &&
+ pluginsAvailable &&
+ (!debouncedAction || debouncedAction.key === '@plugin')
+ const skillSearchEnabled =
+ remoteSearchEnabled && skillsAvailable && (!debouncedAction || debouncedAction.key === '@skill')
+ const agentSearchEnabled =
+ remoteSearchEnabled &&
+ agentsAvailable &&
+ (!debouncedAction || debouncedAction.key === '@agents')
+ const appSearchQuery = useQuery(
+ appSearchQueryOptions(debouncedSearchTerm, {
+ enabled: appSearchEnabled,
+ placeholderData: keepPreviousData,
+ }),
+ )
+ const knowledgeSearchQuery = useQuery(
+ knowledgeSearchQueryOptions(debouncedSearchTerm, {
+ enabled: knowledgeSearchEnabled,
+ placeholderData: keepPreviousData,
+ }),
+ )
+ const pluginSearchQuery = useMarketplacePluginSearch(debouncedSearchTerm, {
+ enabled: pluginSearchEnabled,
+ select: (plugins) => parsePluginSearchResults(plugins, defaultLocale),
+ })
+ const skillSearchQuery = useQuery(
+ skillSearchQueryOptions(debouncedSearchTerm, {
+ enabled: skillSearchEnabled,
+ placeholderData: keepPreviousData,
+ }),
+ )
+ const agentSearchQuery = useQuery(
+ agentSearchQueryOptions(debouncedSearchTerm, {
+ enabled: agentSearchEnabled,
+ placeholderData: keepPreviousData,
+ }),
+ )
+ const isSameLocalAction =
+ currentAction?.source === 'local' &&
+ debouncedAction?.source === 'local' &&
+ getActionIdentity(normalizedSearchQuery, currentAction) ===
+ getActionIdentity(normalizedDebouncedQuery, debouncedAction)
+ const isLocalSearchDebouncing =
+ currentAction?.source === 'local' && normalizedSearchQuery !== normalizedDebouncedQuery
+ const isSameGeneralSearch =
+ currentAction === undefined &&
+ debouncedAction === undefined &&
+ !isCommandsMode &&
+ !isDebouncedCommandsMode &&
+ Boolean(normalizedSearchQuery.trim()) &&
+ Boolean(normalizedDebouncedQuery.trim())
+ let localSearchQuery = normalizedSearchQuery
+ if (isSameLocalAction || isSameGeneralSearch) localSearchQuery = normalizedDebouncedQuery
+ else if (isLocalSearchDebouncing)
+ localSearchQuery = getActionBaseQuery(normalizedSearchQuery, currentAction)
+ const localSearchEnabled = Boolean(trimmedSearchQuery) && !isCommandsMode
+ const localSearchResults = useMemo(() => {
+ if (!localSearchEnabled) return []
+
+ const action = matchAction(localSearchQuery, actions)
+ if (action?.source === 'local') {
+ return action.search(
+ localSearchQuery,
+ getActionSearchTerm(localSearchQuery, action),
+ defaultLocale,
+ )
+ }
+ if (action) return []
+
+ return Object.values(actions).flatMap((candidate) => {
+ if (candidate.source !== 'local' || candidate.key === '/') return []
+ const generalSearchTerm = localSearchQuery.trimEnd()
+ return candidate.search(generalSearchTerm, generalSearchTerm, defaultLocale)
+ })
+ }, [actions, defaultLocale, localSearchEnabled, localSearchQuery])
+ const debouncedRemoteQueries = [
+ appSearchEnabled ? appSearchQuery : undefined,
+ knowledgeSearchEnabled ? knowledgeSearchQuery : undefined,
+ pluginSearchEnabled ? pluginSearchQuery : undefined,
+ skillSearchEnabled ? skillSearchQuery : undefined,
+ agentSearchEnabled ? agentSearchQuery : undefined,
+ ].filter((query) => query !== undefined)
+ const currentRemoteSearchIdentity = getRemoteSearchIdentity(
+ normalizedSearchQuery,
+ isCommandsMode,
+ currentAction,
+ )
+ const debouncedRemoteSearchIdentity = getRemoteSearchIdentity(
+ normalizedDebouncedQuery,
+ isDebouncedCommandsMode,
+ debouncedAction,
+ )
+ const isSameRemoteSearch =
+ currentRemoteSearchIdentity !== null &&
+ currentRemoteSearchIdentity === debouncedRemoteSearchIdentity
+ const currentRemoteQueries = isSameRemoteSearch ? debouncedRemoteQueries : []
+ const isRemoteSearchDebouncing =
+ currentRemoteSearchIdentity !== null && normalizedSearchQuery !== normalizedDebouncedQuery
+ const isDebouncing = isRemoteSearchDebouncing || isLocalSearchDebouncing
+ const isLoading =
+ isDebouncing || currentRemoteQueries.some((query) => query.isLoading || query.isFetching)
+ const failedRemoteQueries = currentRemoteQueries.filter((query) => query.isError)
+ const allRemoteSearchesFailed =
+ currentRemoteQueries.length > 0 && failedRemoteQueries.length === currentRemoteQueries.length
+ const hasUnavailableServices = failedRemoteQueries.length > 0
+ const queryError = failedRemoteQueries[0]?.error
+ const error = queryError instanceof Error ? queryError : null
+ const remoteSearchResults = currentRemoteQueries.flatMap<SearchResult>(
+ (query) => query.data ?? [],
+ )
+ const searchResults = [...localSearchResults, ...remoteSearchResults]
+ const dedupedResults = dedupeSearchResults(searchResults)
+ const groupedResults = groupSearchResults(dedupedResults)
+
+ function focusInput() {
+ queueMicrotask(() => inputRef.current?.focus())
+ }
+
+ function openPage(name: string, rest = '') {
+ setPage(name)
+ setScope('all')
+ setTerm(rest)
+ focusInput()
+ }
+
+ function closePage() {
+ setPage(null)
+ setTerm('')
+ focusInput()
+ }
+
+ function selectScope(nextScope: SearchScope, rest = '') {
+ setScope(nextScope)
+ setTerm(rest)
+ focusInput()
+ }
+
+ function clearScope() {
+ setScope('all')
+ focusInput()
+ }
+
+ function handleCommandSelect(shortcut: string) {
+ const handler = slashCommandRegistry.findCommand(shortcut.slice(1))
+ if (!handler || handler.isAvailable?.(commandContext) === false) return
+ if (handler.mode === 'submenu') {
+ openPage(handler.name)
+ return
+ }
+ void slashCommandRegistry.execute(handler.name, {}, commandContext)
+ onClose()
+ }
+
+ function handleKeyDownCapture(event: KeyboardEvent<HTMLElement>) {
+ // oxlint-disable-next-line typescript/no-deprecated -- Safari reports IME composition through keyCode 229.
+ if (event.nativeEvent.isComposing || event.keyCode === 229) return
+ if (event.target !== inputRef.current) return
+
+ if (event.key === 'Escape' && surface === 'drawer' && term) {
+ event.preventDefault()
+ event.stopPropagation()
+ setTerm('')
+ return
+ }
+
+ if (event.key !== 'Backspace' || event.repeat || term) return
+ if (page) {
+ event.preventDefault()
+ closePage()
+ } else if (surface === 'dialog' && activeScope !== 'all') {
+ event.preventDefault()
+ clearScope()
+ }
+ }
+
+ function changeTerm(nextTerm: string) {
+ const prefix = page ? undefined : /^([@/][^\s@/]+)\s/.exec(nextTerm)
+ if (prefix) {
+ const token = prefix[1]!.toLowerCase()
+ const rest = nextTerm.slice(prefix[0].length)
+ const scopeMatch = allScopeOptions.find(
+ (option) => option.shortcut === token || option.scope === token,
+ )
+ if (scopeMatch) {
+ selectScope(scopeMatch.scope, rest)
+ return
+ }
+ const command = token.startsWith('/')
+ ? slashCommandRegistry.findCommand(token.slice(1))
+ : undefined
+ if (command?.mode === 'submenu' && command.isAvailable?.(commandContext) !== false) {
+ openPage(command.name, rest)
+ return
+ }
+ }
+ setTerm(nextTerm)
+ }
+
+ function handleNavigate(result: SearchResult) {
+ onClose()
+
+ switch (result.type) {
+ case 'command':
+ actions.slash.action?.(result)
+ break
+ case 'plugin':
+ onInstallPlugin(result.data)
+ break
+ case 'workflow-node':
+ if (result.metadata?.nodeId) selectWorkflowNode(result.metadata.nodeId, true)
+ break
+ default:
+ if (result.path) router.push(result.path)
+ }
+ }
+
+ function handleAutocompleteValueChange(
+ nextValue: string,
+ eventDetails: AutocompleteChangeEventDetails,
+ ) {
+ if (eventDetails.reason !== 'item-press') changeTerm(nextValue)
+ }
+
+ function selectOption(option: GotoAnythingOption) {
+ if (!isCommandOption(option)) handleNavigate(option)
+ else if (option.result) handleNavigate(option.result)
+ else if (option.scope) selectScope(option.scope)
+ else handleCommandSelect(option.shortcut)
+ }
+
+ function getGroupLabel(type: string) {
+ if (type === 'skill') return t(($) => $['skillManagement.title'], { ns: 'skill' })
+ if (type === 'agent') return t(($) => $['roster.title'], { ns: 'agentRoster' })
+
+ return t(($) => $[groupLabelKeys[type as keyof typeof groupLabelKeys] || `${type}s`], {
+ ns: 'app',
+ })
+ }
+
+ const isScopeSelection = isCommandsMode && trimmedSearchQuery.startsWith('@')
+ const commandSuggestions = isCommandsMode || !currentAction ? commandOptions : []
+ const showScopes =
+ isScopeSelection ||
+ (surface === 'dialog' && !currentAction && (!trimmedSearchQuery || !isCommandsMode))
+ const scopeSuggestions = showScopes ? scopeOptions : []
+ const visibleOptions: GotoAnythingOption[] = [
+ ...commandSuggestions,
+ ...scopeSuggestions,
+ ...(!isCommandsMode ? dedupedResults : []),
+ ]
+ const resultGroups = [
+ {
+ id: 'commands',
+ label: t(($) => $['gotoAnything.groups.commands'], { ns: 'app' }),
+ items: commandSuggestions,
+ },
+ {
+ id: 'scopes',
+ label: t(($) => $['gotoAnything.selectSearchType'], { ns: 'app' }),
+ items: scopeSuggestions,
+ },
+ ...(isCommandsMode
+ ? []
+ : Object.entries(groupedResults).map(([type, items]) => ({
+ id: type,
+ label: getGroupLabel(type),
+ items,
+ }))),
+ ]
+ const autocompleteResultCount = visibleOptions.length
+ const isError = allRemoteSearchesFailed && autocompleteResultCount === 0
+
+ let autocompleteStatus: string | null = null
+ if (isLoading) autocompleteStatus = t(($) => $['gotoAnything.searching'], { ns: 'app' })
+ else if (isError) autocompleteStatus = t(($) => $['gotoAnything.searchFailed'], { ns: 'app' })
+ else if (hasUnavailableServices)
+ autocompleteStatus = t(($) => $['gotoAnything.someServicesUnavailable'], { ns: 'app' })
+ else if (trimmedSearchQuery)
+ autocompleteStatus = t(($) => $['gotoAnything.resultCount'], {
+ ns: 'app',
+ count: autocompleteResultCount,
+ })
+
+ let emptyState: EmptyStateProps['variant'] | null = null
+ if (isLoading && autocompleteResultCount === 0) emptyState = 'loading'
+ else if (isError) emptyState = 'error'
+ else if (autocompleteResultCount === 0) emptyState = isCommandsMode ? 'no-commands' : 'no-results'
+
+ const searchTitle = t(($) => $['gotoAnything.searchTitle'], { ns: 'app' })
+ const tokenOption = pageOption ?? (surface === 'dialog' ? scopeOption : undefined)
+ let placeholder: string = t(($) => $['gotoAnything.searchPlaceholder'], { ns: 'app' })
+ if (pageOption) placeholder = t(($) => $['placeholder.search'], { ns: 'common' })
+ else if (scopeOption)
+ placeholder = t(($) => $['gotoAnything.searchInScopePlaceholder'], {
+ ns: 'app',
+ scope: scopeOption.title,
+ })
+ else if (surface === 'dialog')
+ placeholder = t(($) => $['gotoAnything.searchOrFilterPlaceholder'], { ns: 'app' })
+
+ return (
+ <div className="flex min-h-0 flex-1 flex-col" onKeyDownCapture={handleKeyDownCapture}>
+ <HotkeysProvider scope={hotkeyScopeId} exclusive>
+ <SearchDialogHotkeys />
+ <Autocomplete
+ key={surface === 'dialog' ? (page ?? scope) : (page ?? 'home')}
+ items={visibleOptions}
+ value={term}
+ onValueChange={handleAutocompleteValueChange}
+ itemToStringValue={(option) => option.title}
+ filter={null}
+ open
+ inline
+ autoHighlight="always"
+ keepHighlight
+ loopFocus
+ >
+ <div className={cn('shrink-0', surface === 'drawer' && 'px-4 pt-2 pb-3')}>
+ {surface === 'drawer' && (
+ <div aria-hidden className="mx-auto mb-3 h-1 w-9 rounded-full bg-divider-deep" />
+ )}
+ <AutocompleteInputGroup
+ size="medium"
+ className={cn(
+ // oxlint-disable-next-line shadcn/no-restyle -- The palette's search field is its header and keeps the ring off while the active descendant shows navigation.
+ 'has-[input:focus]:ring-0',
+ surface === 'dialog'
+ ? 'h-auto gap-3 rounded-none border-0 bg-transparent px-4 py-3 hover:bg-transparent has-[input:focus]:bg-transparent'
+ : 'h-10 gap-2 rounded-[10px] px-3',
+ )}
+ >
+ <span aria-hidden className="i-ri-search-line size-4 shrink-0 text-text-quaternary" />
+ {tokenOption && (
+ <ContextToken
+ title={tokenOption.title}
+ onRemove={pageOption ? closePage : clearScope}
+ />
+ )}
+ <AutocompleteInput
+ ref={inputRef}
+ size="medium"
+ aria-label={pageOption?.title ?? scopeOption?.title ?? searchTitle}
+ aria-describedby={searchHintId}
+ placeholder={placeholder}
+ enterKeyHint={surface === 'drawer' ? 'go' : undefined}
+ className={cn('px-0', surface === 'drawer' && 'text-base')}
+ />
+ {surface === 'drawer' && term && (
+ <AutocompleteClear aria-label={t(($) => $['operation.clear'], { ns: 'common' })} />
+ )}
+ </AutocompleteInputGroup>
+ </div>
+ {surface === 'drawer' && !page && (
+ <ScopeBar scopes={allScopeOptions} value={activeScope} onValueChange={setScope} />
+ )}
+ <SearchAnnouncements
+ hintId={searchHintId}
+ status={autocompleteStatus}
+ describesTokenRemoval={Boolean(tokenOption)}
+ />
+ <ResultsViewport surface={surface} isLoading={isLoading}>
+ <SearchResults
+ groups={resultGroups}
+ label={searchTitle}
+ onSelect={selectOption}
+ emptyState={emptyState}
+ scope={activeScope}
+ error={error}
+ hasPartialFailure={hasUnavailableServices && !isError}
+ />
+ </ResultsViewport>
+ </Autocomplete>
+ </HotkeysProvider>
+ </div>
+ )
+}
diff --git a/web/app/components/main-nav/__tests__/mobile-nav.spec.tsx b/web/app/components/main-nav/__tests__/mobile-nav.spec.tsx
index 1e5b44c7c19..da0936d2ada 100644
--- a/web/app/components/main-nav/__tests__/mobile-nav.spec.tsx
+++ b/web/app/components/main-nav/__tests__/mobile-nav.spec.tsx
@@ -1,3 +1,4 @@
+import type { ReactNode } from 'react'
import { render, screen, waitFor, within } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { MainNavMobileBar } from '../mobile-nav'
@@ -14,8 +15,9 @@ vi.mock('@/next/navigation', () => ({
vi.mock('../index', () => ({
MainNavLogo: () => <a href="/">Dify</a>,
- MainNavPanel: () => (
+ MainNavPanel: ({ headerAction }: { headerAction: ReactNode }) => (
<nav aria-label="Primary">
+ {headerAction}
{/* Client-side links cancel the native navigation, like next/link does. */}
<a href="/datasets" onClick={(event) => event.preventDefault()}>
Knowledge
@@ -70,6 +72,14 @@ it('stays open for new-tab links, modified clicks, and non-link controls', async
expect(screen.getByRole('dialog', { name: menuName })).toBeInTheDocument()
})
+it('closes from the close button in the panel header', async () => {
+ const { drawer, user } = await openMenu()
+
+ await user.click(within(drawer).getByRole('button', { name: 'common.operation.close' }))
+
+ await expectClosed()
+})
+
it('closes when the route changes without a link click', async () => {
const { view } = await openMenu()
diff --git a/web/app/components/main-nav/components/search-button.tsx b/web/app/components/main-nav/components/search-button.tsx
index d6d3b104afc..be291100c63 100644
--- a/web/app/components/main-nav/components/search-button.tsx
+++ b/web/app/components/main-nav/components/search-button.tsx
@@ -6,7 +6,7 @@ import { Kbd } from '@langgenius/dify-ui/kbd'
import { detectPlatform, formatForDisplay } from '@tanstack/react-hotkeys'
import { useSyncExternalStore } from 'react'
import { useTranslation } from 'react-i18next'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { GOTO_ANYTHING_HOTKEY } from '@/app/components/goto-anything/hotkeys'
function noopSubscribe() {
diff --git a/web/app/components/main-nav/index.tsx b/web/app/components/main-nav/index.tsx
index b4118e912c9..af113f28e87 100644
--- a/web/app/components/main-nav/index.tsx
+++ b/web/app/components/main-nav/index.tsx
@@ -1,6 +1,6 @@
'use client'
-import type { Ref } from 'react'
+import type { ReactNode, Ref } from 'react'
import type { MainNavItem, MainNavProps } from './types'
import { cn } from '@langgenius/dify-ui/cn'
import { useQuery, useSuspenseQuery } from '@tanstack/react-query'
@@ -56,7 +56,7 @@ export function MainNavLogo() {
)
}
-export function MainNavPanel({ initialPlatform }: Pick<MainNavProps, 'initialPlatform'>) {
+export function MainNavPanel({ headerAction }: { headerAction: ReactNode }) {
const { t } = useTranslation(['common', 'navigation', 'contacts'])
const pathname = usePathname()
const isCurrentWorkspaceDatasetOperator = useAtomValue(isCurrentWorkspaceDatasetOperatorAtom)
@@ -120,7 +120,7 @@ export function MainNavPanel({ initialPlatform }: Pick<MainNavProps, 'initialPla
<div className="flex min-h-0 w-60 flex-1 flex-col overflow-hidden">
<div className="flex items-center justify-between ps-4 pe-2 pt-3 pb-2">
<MainNavLogo />
- <MainNavSearchButton initialPlatform={initialPlatform} />
+ {headerAction}
</div>
<div className="p-2">
<WorkspaceCard />
@@ -187,7 +187,7 @@ export function MainNav({ className, initialPlatform }: MainNavProps) {
className,
)}
>
- <MainNavPanel initialPlatform={initialPlatform} />
+ <MainNavPanel headerAction={<MainNavSearchButton initialPlatform={initialPlatform} />} />
<div className="isolate w-60 shrink-0">
<StepByStepTourMount
recoveryAnchorRef={brandingEnabled ? undefined : helpMenuTriggerRef}
diff --git a/web/app/components/main-nav/layout.tsx b/web/app/components/main-nav/layout.tsx
index 67aac28e197..41aeafb7b86 100644
--- a/web/app/components/main-nav/layout.tsx
+++ b/web/app/components/main-nav/layout.tsx
@@ -55,7 +55,7 @@ const MainNavLayout = ({
{useDetailSidebar && !hideMainNavigation && detailSidebar}
{showMainNav && (
<>
- <MainNavMobileBar initialPlatform={initialPlatform} />
+ <MainNavMobileBar />
<MainNav className="max-md:hidden" initialPlatform={initialPlatform} />
</>
)}
diff --git a/web/app/components/main-nav/mobile-nav.tsx b/web/app/components/main-nav/mobile-nav.tsx
index d783f66126c..28394312e03 100644
--- a/web/app/components/main-nav/mobile-nav.tsx
+++ b/web/app/components/main-nav/mobile-nav.tsx
@@ -1,10 +1,10 @@
'use client'
import type { MouseEvent } from 'react'
-import type { MainNavProps } from './types'
import {
Drawer,
DrawerBackdrop,
+ DrawerClose,
DrawerContent,
DrawerPopup,
DrawerPortal,
@@ -15,6 +15,7 @@ import { IconButton } from '@langgenius/dify-ui/icon-button'
import { useMediaQuery } from '@langgenius/dify-ui/use-media-query'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
+import { gotoAnythingDrawerHandle } from '@/app/components/goto-anything/handles'
import { usePathname } from '@/next/navigation'
import { MainNavFooter, MainNavLogo, MainNavPanel } from '.'
@@ -26,8 +27,8 @@ function isPlainLinkClick(event: MouseEvent) {
)
}
-export function MainNavMobileBar({ initialPlatform }: Pick<MainNavProps, 'initialPlatform'>) {
- const { t } = useTranslation(['common'])
+export function MainNavMobileBar() {
+ const { t } = useTranslation(['common', 'app'])
const pathname = usePathname()
const [openedOn, setOpenedOn] = useState<{ pathname: string } | null>(null)
const isAtLeastMd = useMediaQuery('(width >= 48rem)', {})
@@ -40,33 +41,59 @@ export function MainNavMobileBar({ initialPlatform }: Pick<MainNavProps, 'initia
return (
<header className="flex shrink-0 items-center justify-between bg-background-body ps-4 pe-2 pt-3 pb-2 md:hidden">
<MainNavLogo />
- <Drawer swipeDirection="left" open={open} onOpenChange={setOpen}>
+ <div className="flex items-center gap-1">
<DrawerTrigger
+ handle={gotoAnythingDrawerHandle}
render={
- <IconButton aria-label={menuLabel} size="lg">
- <span aria-hidden="true" className="i-ri-menu-line size-4" />
+ <IconButton
+ aria-label={t(($) => $['gotoAnything.searchTitle'], { ns: 'app' })}
+ size="lg"
+ >
+ <span aria-hidden="true" className="i-custom-vender-main-nav-quick-search size-4" />
</IconButton>
}
/>
- <DrawerPortal>
- <DrawerBackdrop className="fixed" />
- <DrawerViewport>
- <DrawerPopup
- aria-label={menuLabel}
- className="bg-background-body data-[swipe-direction=left]:w-60"
- >
- <DrawerContent
- onClick={(event) => {
- if (isPlainLinkClick(event)) setOpen(false)
- }}
+ <Drawer swipeDirection="left" open={open} onOpenChange={setOpen}>
+ <DrawerTrigger
+ render={
+ <IconButton aria-label={menuLabel} size="lg">
+ <span aria-hidden="true" className="i-ri-menu-line size-4" />
+ </IconButton>
+ }
+ />
+ <DrawerPortal>
+ <DrawerBackdrop className="fixed" />
+ <DrawerViewport>
+ <DrawerPopup
+ aria-label={menuLabel}
+ className="bg-background-body data-[swipe-direction=left]:w-60"
>
- <MainNavPanel initialPlatform={initialPlatform} />
- <MainNavFooter />
- </DrawerContent>
- </DrawerPopup>
- </DrawerViewport>
- </DrawerPortal>
- </Drawer>
+ <DrawerContent
+ onClick={(event) => {
+ if (isPlainLinkClick(event)) setOpen(false)
+ }}
+ >
+ <MainNavPanel
+ headerAction={
+ <DrawerClose
+ render={
+ <IconButton
+ aria-label={t(($) => $['operation.close'], { ns: 'common' })}
+ size="lg"
+ >
+ <span aria-hidden="true" className="i-ri-close-line size-4" />
+ </IconButton>
+ }
+ />
+ }
+ />
+ <MainNavFooter />
+ </DrawerContent>
+ </DrawerPopup>
+ </DrawerViewport>
+ </DrawerPortal>
+ </Drawer>
+ </div>
</header>
)
}
diff --git a/web/app/components/snippets/components/snippet-detail-top.tsx b/web/app/components/snippets/components/snippet-detail-top.tsx
index e6a61986844..ca64d27d88f 100644
--- a/web/app/components/snippets/components/snippet-detail-top.tsx
+++ b/web/app/components/snippets/components/snippet-detail-top.tsx
@@ -15,7 +15,7 @@ import { formatForDisplay } from '@tanstack/react-hotkeys'
import { useTranslation } from 'react-i18next'
import { useStudioListHref } from '@/app/components/apps/list-navigation-state'
import { DetailSidebarToggleButton } from '@/app/components/detail-sidebar/toggle-button'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { GOTO_ANYTHING_HOTKEY } from '@/app/components/goto-anything/hotkeys'
import Link from '@/next/link'
import { useRouter } from '@/next/navigation'
@@ -47,10 +47,10 @@ export function SnippetDetailTop({ expand = true, onToggle }: SnippetDetailTopPr
}
return (
- <div className="flex items-center py-2 pr-2 pl-1">
+ <div className="flex items-center py-2 ps-1 pe-2">
<Breadcrumb aria-label={t(($) => $['tabs.snippets'], { ns: 'workflow' })} className="flex-1">
<BreadcrumbList className="gap-px">
- <BreadcrumbItem className="shrink-0 gap-0 rounded-lg py-2 pr-1.5 pl-0.5 transition-colors hover:bg-background-default-hover">
+ <BreadcrumbItem className="shrink-0 gap-0 rounded-lg py-2 ps-0.5 pe-1.5 transition-colors hover:bg-background-default-hover">
<IconButton
size="xs"
aria-label={t(($) => $['operation.back'], { ns: 'common' })}
diff --git a/web/features/agent-v2/agent-detail/navigation.tsx b/web/features/agent-v2/agent-detail/navigation.tsx
index bbf770f99bc..ff7b48bf1af 100644
--- a/web/features/agent-v2/agent-detail/navigation.tsx
+++ b/web/features/agent-v2/agent-detail/navigation.tsx
@@ -19,7 +19,7 @@ import { useTranslation } from 'react-i18next'
import NavLink from '@/app/components/app-sidebar/nav-link'
import AppIcon from '@/app/components/base/app-icon'
import { DetailSidebarToggleButton } from '@/app/components/detail-sidebar/toggle-button'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { GOTO_ANYTHING_HOTKEY } from '@/app/components/goto-anything/hotkeys'
import { getAgentSectionAccess } from '@/features/agent-v2/acl'
import { useAgentPermissions } from '@/features/agent-v2/permissions'
@@ -98,7 +98,7 @@ export function AgentDetailTop({ expand = true, onToggle }: AgentDetailTopProps)
}
return (
- <div className="flex items-center py-2 pr-2 pl-1">
+ <div className="flex items-center py-2 ps-1 pe-2">
<Breadcrumb
aria-label={tCommon(($) => $['roster.title'], { ns: 'agentRoster' })}
className="flex-1"
@@ -108,7 +108,7 @@ export function AgentDetailTop({ expand = true, onToggle }: AgentDetailTopProps)
<BreadcrumbLink
render={<Link href="/" />}
aria-label={tCommon(($) => $['mainNav.home'], { ns: 'navigation' })}
- className="gap-0 rounded-lg py-2 pr-1.5 pl-0.5 hover:bg-background-default-hover"
+ className="gap-0 rounded-lg py-2 ps-0.5 pe-1.5 hover:bg-background-default-hover"
>
<span aria-hidden className="i-ri-arrow-left-s-line size-4" />
<span aria-hidden className="i-custom-vender-main-nav-app-home size-4" />
@@ -194,18 +194,18 @@ export function AgentDetailSection({ expand = true }: AgentDetailSectionProps) {
<div className={cn('py-2', expand && '-mx-1')}>
<div
className={cn(
- 'flex h-13 items-center rounded-xl py-1.5 pr-2 pl-1.5',
+ 'flex h-13 items-center rounded-xl py-1.5 ps-1.5 pe-2',
!expand && 'justify-center',
)}
>
- <div className={cn('shrink-0', expand && 'mr-2')}>
+ <div className={cn('shrink-0', expand && 'me-2')}>
<span aria-hidden>
<AppIcon size="large" shape="circle" icon={agent} />
</span>
</div>
<div
className={cn(
- 'relative flex h-10 min-w-0 flex-1 flex-col justify-center gap-0.5 pr-7',
+ 'relative flex h-10 min-w-0 flex-1 flex-col justify-center gap-0.5 pe-7',
!expand && 'hidden',
)}
>
@@ -219,7 +219,7 @@ export function AgentDetailSection({ expand = true }: AgentDetailSectionProps) {
<div className="truncate system-xs-regular text-text-tertiary">{agent.role}</div>
)}
{agent && expand && (
- <div className="absolute -top-px right-0">
+ <div className="absolute inset-e-0 -top-px">
<AgentDetailSidebarActions agent={agent} />
</div>
)}
diff --git a/web/features/new-rag/space/shell.tsx b/web/features/new-rag/space/shell.tsx
index bf0a22d45cb..e4dd876ce74 100644
--- a/web/features/new-rag/space/shell.tsx
+++ b/web/features/new-rag/space/shell.tsx
@@ -21,7 +21,7 @@ import { Suspense, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { LoadingPlaceholder } from '@/app/components/base/loading-placeholder'
import { DetailSidebarToggleButton } from '@/app/components/detail-sidebar/toggle-button'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { GOTO_ANYTHING_HOTKEY } from '@/app/components/goto-anything/hotkeys'
import useDocumentTitle from '@/hooks/use-document-title'
import Link from '@/next/link'
@@ -202,7 +202,7 @@ export function KnowledgeSpaceShell({
}
>
{pageTitleElement}
- <div className="flex min-h-0 min-w-0 flex-1 flex-col gap-1 overflow-hidden pl-1 sm:flex-row">
+ <div className="flex min-h-0 min-w-0 flex-1 flex-col gap-1 overflow-hidden ps-1 sm:flex-row">
<aside
className={cn(
'flex shrink-0 flex-col overflow-hidden rounded-lg bg-components-panel-bg shadow-xs transition-[width] motion-reduce:transition-none',
@@ -212,7 +212,7 @@ export function KnowledgeSpaceShell({
<div
className={cn(
'flex min-w-0 items-center',
- sidebarExpanded ? 'py-2 pr-2 pl-1' : 'w-full justify-center px-3 pt-2 pb-1',
+ sidebarExpanded ? 'py-2 ps-1 pe-2' : 'w-full justify-center px-3 pt-2 pb-1',
)}
>
{sidebarExpanded && (
@@ -226,7 +226,7 @@ export function KnowledgeSpaceShell({
<BreadcrumbLink
render={<Link href="/" />}
aria-label={tCommon(($) => $['mainNav.home'], { ns: 'navigation' })}
- className="gap-0 rounded-lg py-2 pr-1.5 pl-0.5 hover:bg-background-default-hover"
+ className="gap-0 rounded-lg py-2 ps-0.5 pe-1.5 hover:bg-background-default-hover"
>
<span aria-hidden className="i-ri-arrow-left-s-line size-4" />
<span aria-hidden className="i-custom-vender-main-nav-app-home size-4" />
@@ -414,7 +414,7 @@ export function KnowledgeSpaceShell({
>
{navIcon('i-custom-vender-knowledge-api-aggregate')}
{sidebarExpanded && (
- <span className="min-w-0 flex-1 truncate text-left">
+ <span className="min-w-0 flex-1 truncate text-start">
{t(($) => $.apiAgentAccess)}
</span>
)}
diff --git a/web/features/skills/__tests__/detail-page-navigation.spec.tsx b/web/features/skills/__tests__/detail-page-navigation.spec.tsx
index 413a32a36f6..ce3ee4a4965 100644
--- a/web/features/skills/__tests__/detail-page-navigation.spec.tsx
+++ b/web/features/skills/__tests__/detail-page-navigation.spec.tsx
@@ -3,7 +3,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { fireEvent, render, screen, waitFor, within } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { beforeEach, describe, expect, it } from 'vite-plus/test'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { createNuqsTestWrapper } from '@/test/nuqs-testing'
import {
createFileTabSkillDetail,
diff --git a/web/features/skills/detail/file-tree.tsx b/web/features/skills/detail/file-tree.tsx
index 779f76aa418..7589acb9051 100644
--- a/web/features/skills/detail/file-tree.tsx
+++ b/web/features/skills/detail/file-tree.tsx
@@ -63,7 +63,7 @@ import { parseAsBoolean, useQueryState } from 'nuqs'
import { useCallback, useEffect, useEffectEvent, useId, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { getKeyboardResizeValue } from '@/app/components/base/resize-handle/keyboard'
-import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/dialog-handle'
+import { gotoAnythingDialogHandle } from '@/app/components/goto-anything/handles'
import { GOTO_ANYTHING_HOTKEY } from '@/app/components/goto-anything/hotkeys'
import AccountSection from '@/app/components/main-nav/components/account-section'
import HelpMenu from '@/app/components/main-nav/components/help-menu'
@@ -1177,7 +1177,7 @@ export function FileTree({
className={cn(
'group/sidebar relative flex min-h-0 flex-col rounded-lg bg-components-panel-bg',
collapsed && sidebarFloating
- ? 'absolute top-1 bottom-1 left-1 z-40 w-60 overflow-hidden border border-divider-subtle shadow-lg'
+ ? 'absolute inset-s-1 top-1 bottom-1 z-40 w-60 overflow-hidden border border-divider-subtle shadow-lg'
: 'flex-1 overflow-visible',
)}
style={{ width: collapsed ? skillSidebarMinWidth : sidebarWidth }}
@@ -1193,14 +1193,14 @@ export function FileTree({
aria-valuetext={t(($) => $['resize.width'], { ns: 'common', width: sidebarWidth })}
aria-controls={sidebarPanelId}
tabIndex={0}
- className="group/resize absolute top-0 -right-2 z-40 flex h-full w-4 cursor-col-resize touch-none items-center justify-center outline-hidden"
+ className="group/resize absolute -inset-e-2 top-0 z-40 flex h-full w-4 cursor-col-resize touch-none items-center justify-center outline-hidden"
onKeyDown={handleSidebarResizeKeyDown}
onPointerDown={handleSidebarResizePointerDown}
>
<span
aria-hidden
className={cn(
- 'absolute right-1.25 h-10 w-0.5 rounded-full bg-state-base-handle opacity-0 transition-[height,background-color,opacity] group-hover/resize:opacity-100 group-focus-visible/resize:opacity-100',
+ 'absolute inset-e-1.25 h-10 w-0.5 rounded-full bg-state-base-handle opacity-0 transition-[height,background-color,opacity] group-hover/resize:opacity-100 group-focus-visible/resize:opacity-100',
sidebarResizing && 'h-full bg-state-accent-solid opacity-100',
)}
/>
@@ -1208,7 +1208,7 @@ export function FileTree({
)}
<div
data-testid="skill-detail-sidebar-header"
- className="flex h-12 shrink-0 items-center py-2 pr-2 pl-1"
+ className="flex h-12 shrink-0 items-center py-2 ps-1 pe-2"
>
<Breadcrumb
aria-label={tCommon(($) => $['mainNav.skills'], { ns: 'navigation' })}
@@ -1218,7 +1218,7 @@ export function FileTree({
<BreadcrumbItem className="shrink-0">
<BreadcrumbLink
render={<Link href="/skills" />}
- className="gap-0 rounded-lg py-2 pr-1.5 pl-0.5 hover:bg-background-default-hover"
+ className="gap-0 rounded-lg py-2 ps-0.5 pe-1.5 hover:bg-background-default-hover"
aria-label={t(($) => $['skillManagement.detail.back'])}
>
<span aria-hidden className="i-ri-arrow-left-s-line size-4" />
@@ -1588,7 +1588,7 @@ export function FileTree({
render={
<button
type="button"
- className="-mx-2 flex h-6 w-[calc(100%+16px)] cursor-pointer items-center gap-2 rounded-md px-2.5 text-left system-xs-regular text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary data-popup-open:bg-state-base-hover data-popup-open:text-text-secondary"
+ className="-mx-2 flex h-6 w-[calc(100%+16px)] cursor-pointer items-center gap-2 rounded-md px-2.5 text-start system-xs-regular text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary data-popup-open:bg-state-base-hover data-popup-open:text-text-secondary"
>
<span aria-hidden className="i-ri-apps-2-line size-4 shrink-0" />
<span className="min-w-0 flex-1 truncate">{referenceCountLabel}</span>
diff --git a/web/i18n/locales/ar-TN/app.json b/web/i18n/locales/ar-TN/app.json
index 05c9807b6ed..2895f16551e 100644
--- a/web/i18n/locales/ar-TN/app.json
+++ b/web/i18n/locales/ar-TN/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "قم بوصف التغيير الذي سيتم تطبيقه على المسودة الحالية",
"gotoAnything.actions.refineTitle": "تحسين الرسم البياني الحالي",
"gotoAnything.actions.searchApplications": "بحث في التطبيقات",
- "gotoAnything.actions.searchApplicationsDesc": "البحث عن تطبيقات",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "البحث في قواعد المعرفة",
- "gotoAnything.actions.searchPluginsDesc": "البحث عن تكاملات",
- "gotoAnything.actions.searchWorkflowNodesDesc": "البحث عن عقد سير العمل",
"gotoAnything.actions.slashDesc": "تنفيذ الأوامر (اكتب / لرؤية جميع الأوامر المتاحة)",
"gotoAnything.actions.slashTitle": "الأوامر",
"gotoAnything.actions.themeCategoryDesc": "تغيير السمة",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "استخدم المظهر الفاتح",
"gotoAnything.actions.themeSystem": "سمة النظام",
"gotoAnything.actions.themeSystemDesc": "اتبع مظهر نظام التشغيل",
- "gotoAnything.activate": "اختيار",
- "gotoAnything.allCommands": "عرض جميع الأوامر",
+ "gotoAnything.contextTokenHint": "عندما يكون الحقل فارغًا، يزيل Backspace عامل التصفية أو الصفحة الحالية.",
"gotoAnything.emptyState.noAppsFound": "لم يتم العثور على تطبيقات",
"gotoAnything.emptyState.noKnowledgeBasesFound": "لم يتم العثور على قواعد معرفة",
"gotoAnything.emptyState.noPluginsFound": "لم يتم العثور على إضافات",
"gotoAnything.emptyState.noWorkflowNodesFound": "لم يتم العثور على عقد سير عمل",
"gotoAnything.emptyState.tryDifferentTerm": "جرب مصطلح بحث مختلف",
- "gotoAnything.emptyState.trySpecificSearch": "جرب {{shortcuts}} لعمليات بحث محددة",
"gotoAnything.groups.apps": "تطبيقات",
"gotoAnything.groups.commands": "أوامر",
"gotoAnything.groups.knowledgeBases": "قواعد المعرفة",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} نتيجة",
"gotoAnything.resultCount_other": "{{count}} نتائج",
"gotoAnything.searchFailed": "فشل البحث",
- "gotoAnything.searchHint": "ابحث عن موارد أو إجراءات. اكتب / لعرض الأوامر أو @ لتضييق نطاق البحث. استخدم مفاتيح الأسهم لاختيار عنصر واضغط Enter لفتحه.",
+ "gotoAnything.searchHint": "ابحث عن موارد أو إجراءات. استخدم مفاتيح الأسهم لاختيار عنصر واضغط Enter لفتحه.",
+ "gotoAnything.searchInScopePlaceholder": "ابحث في {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "ابحث عن موارد أو إجراءات، أو اكتب @ للتصفية حسب النوع…",
"gotoAnything.searchPlaceholder": "ابحث عن موارد أو إجراءات…",
"gotoAnything.searchTemporarilyUnavailable": "البحث غير متاح مؤقتًا",
"gotoAnything.searchTitle": "ابحث عن أي شيء",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "اختر ما تريد البحث عنه",
"gotoAnything.servicesUnavailableMessage": "قد تواجه بعض خدمات البحث مشكلات. حاول مرة أخرى لاحقًا.",
"gotoAnything.someServicesUnavailable": "بعض خدمات البحث غير متوفرة",
- "gotoAnything.tryDifferentSearch": "جرب مصطلح بحث مختلف",
"iconPicker.cancel": "إلغاء",
"iconPicker.chooseStyle": "اختر النمط",
"iconPicker.clearSearch": "مسح البحث",
diff --git a/web/i18n/locales/az-AZ/app.json b/web/i18n/locales/az-AZ/app.json
index a6b00c06691..92d8c3f51df 100644
--- a/web/i18n/locales/az-AZ/app.json
+++ b/web/i18n/locales/az-AZ/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Cari qaralamaya tətbiq ediləcək dəyişikliyi təsvir et",
"gotoAnything.actions.refineTitle": "Cari qrafı təkmilləşdir",
"gotoAnything.actions.searchApplications": "Tətbiqləri axtar",
- "gotoAnything.actions.searchApplicationsDesc": "Tətbiqləri axtarın",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Bilik bazalarını axtarın",
- "gotoAnything.actions.searchPluginsDesc": "İnteqrasiyaları axtarın",
- "gotoAnything.actions.searchWorkflowNodesDesc": "İş axını düyünlərini axtarın",
"gotoAnything.actions.slashDesc": "Əmrləri icra et (bütün mövcud əmrləri görmək üçün / yaz)",
"gotoAnything.actions.slashTitle": "Əmrlər",
"gotoAnything.actions.themeCategoryDesc": "Mövzunu dəyişin",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Açıq görünüşdən istifadə et",
"gotoAnything.actions.themeSystem": "Sistem temasına keç",
"gotoAnything.actions.themeSystemDesc": "Əməliyyat sisteminizin görünüşünə uyğunlaşdır",
- "gotoAnything.activate": "Seçin",
- "gotoAnything.allCommands": "Bütün əmrləri göstər",
+ "gotoAnything.contextTokenHint": "Sahə boş olduqda Backspace cari filtri və ya səhifəni silir.",
"gotoAnything.emptyState.noAppsFound": "Tətbiq tapılmadı",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Bilik bazası tapılmadı",
"gotoAnything.emptyState.noPluginsFound": "İnteqrasiya tapılmadı",
"gotoAnything.emptyState.noWorkflowNodesFound": "İş axını düyünü tapılmadı",
"gotoAnything.emptyState.tryDifferentTerm": "Başqa axtarış ifadəsi sınayın",
- "gotoAnything.emptyState.trySpecificSearch": "Xüsusi axtarışlar üçün bu qısayolları sınayın: {{shortcuts}}",
"gotoAnything.groups.apps": "Tətbiqlər",
"gotoAnything.groups.commands": "Əmrlər",
"gotoAnything.groups.knowledgeBases": "Bilik bazaları",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} nəticə",
"gotoAnything.resultCount_other": "{{count}} nəticə",
"gotoAnything.searchFailed": "Axtarış uğursuz oldu",
- "gotoAnything.searchHint": "Resurs və ya əməliyyat axtarın. Əmrlər üçün /, axtarışı daraltmaq üçün @ yazın. Element seçmək üçün ox düymələrindən, açmaq üçün Enter düyməsindən istifadə edin.",
+ "gotoAnything.searchHint": "Resurs və ya əməliyyat axtarın. Element seçmək üçün ox düymələrindən, açmaq üçün Enter düyməsindən istifadə edin.",
+ "gotoAnything.searchInScopePlaceholder": "{{scope}} daxilində axtar…",
+ "gotoAnything.searchOrFilterPlaceholder": "Resurs və ya əməliyyat axtarın, növə görə süzmək üçün @ yazın…",
"gotoAnything.searchPlaceholder": "Resurs və ya əməliyyat axtarın…",
"gotoAnything.searchTemporarilyUnavailable": "Axtarış müvəqqəti olaraq əlçatan deyil",
"gotoAnything.searchTitle": "İstənilən şeyi axtar",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Nə axtaracağınızı seçin",
"gotoAnything.servicesUnavailableMessage": "Bəzi axtarış xidmətlərində problem ola bilər. Bir az sonra yenidən cəhd edin.",
"gotoAnything.someServicesUnavailable": "Bəzi axtarış xidmətləri əlçatan deyil",
- "gotoAnything.tryDifferentSearch": "Başqa axtarış ifadəsi sınayın",
"iconPicker.cancel": "Ləğv et",
"iconPicker.chooseStyle": "Üslub seçin",
"iconPicker.clearSearch": "Axtarışı təmizlə",
diff --git a/web/i18n/locales/de-DE/app.json b/web/i18n/locales/de-DE/app.json
index 9362865aed5..31fe109500d 100644
--- a/web/i18n/locales/de-DE/app.json
+++ b/web/i18n/locales/de-DE/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Beschreiben Sie eine Änderung, die auf den aktuellen Entwurf angewendet werden soll",
"gotoAnything.actions.refineTitle": "Aktuelles Diagramm verfeinern",
"gotoAnything.actions.searchApplications": "Anwendungen durchsuchen",
- "gotoAnything.actions.searchApplicationsDesc": "Apps suchen",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Wissensdatenbanken suchen",
- "gotoAnything.actions.searchPluginsDesc": "Integrationen suchen",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Workflow-Knoten suchen",
"gotoAnything.actions.slashDesc": "Führen Sie Befehle wie /theme, /lang aus",
"gotoAnything.actions.slashTitle": "Befehle",
"gotoAnything.actions.themeCategoryDesc": "Design wechseln",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Verwenden Sie das helle Erscheinungsbild",
"gotoAnything.actions.themeSystem": "Systemthema",
"gotoAnything.actions.themeSystemDesc": "Folgen Sie dem Aussehen Ihres Betriebssystems",
- "gotoAnything.activate": "Auswählen",
- "gotoAnything.allCommands": "Alle Befehle anzeigen",
+ "gotoAnything.contextTokenHint": "Bei leerem Feld entfernt Backspace den aktuellen Filter oder die Seite.",
"gotoAnything.emptyState.noAppsFound": "Keine Apps gefunden",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Keine Wissensdatenbanken gefunden",
"gotoAnything.emptyState.noPluginsFound": "Keine Integrationen gefunden",
"gotoAnything.emptyState.noWorkflowNodesFound": "Keine Workflow-Knoten gefunden",
"gotoAnything.emptyState.tryDifferentTerm": "Versuchen Sie einen anderen Suchbegriff",
- "gotoAnything.emptyState.trySpecificSearch": "Versuchen Sie {{shortcuts}} für spezifische Suchen",
"gotoAnything.groups.apps": "Apps",
"gotoAnything.groups.commands": "Befehle",
"gotoAnything.groups.knowledgeBases": "Wissensdatenbanken",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} Ergebnis",
"gotoAnything.resultCount_other": "{{count}} Ergebnisse",
"gotoAnything.searchFailed": "Suche fehlgeschlagen",
- "gotoAnything.searchHint": "Ressourcen oder Aktionen suchen. / zeigt Befehle an, @ grenzt die Suche ein. Mit den Pfeiltasten auswählen und mit Enter öffnen.",
+ "gotoAnything.searchHint": "Ressourcen oder Aktionen suchen. Mit den Pfeiltasten auswählen und mit Enter öffnen.",
+ "gotoAnything.searchInScopePlaceholder": "{{scope}} durchsuchen…",
+ "gotoAnything.searchOrFilterPlaceholder": "Ressourcen oder Aktionen suchen, @ filtert nach Typ…",
"gotoAnything.searchPlaceholder": "Ressourcen oder Aktionen suchen…",
"gotoAnything.searchTemporarilyUnavailable": "Suche vorübergehend nicht verfügbar",
"gotoAnything.searchTitle": "Suchen Sie nach irgendetwas",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Wählen Sie aus, wonach gesucht werden soll",
"gotoAnything.servicesUnavailableMessage": "Bei einigen Suchdiensten können Probleme auftreten. Versuchen Sie es gleich noch einmal.",
"gotoAnything.someServicesUnavailable": "Einige Suchdienste sind nicht verfügbar",
- "gotoAnything.tryDifferentSearch": "Versuchen Sie es mit einem anderen Suchbegriff",
"iconPicker.cancel": "Abbrechen",
"iconPicker.chooseStyle": "Stil wählen",
"iconPicker.clearSearch": "Suche löschen",
diff --git a/web/i18n/locales/en-US/app.json b/web/i18n/locales/en-US/app.json
index 8af1a990cdf..d88d73977a2 100644
--- a/web/i18n/locales/en-US/app.json
+++ b/web/i18n/locales/en-US/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Describe a change to apply to the current draft",
"gotoAnything.actions.refineTitle": "Refine current graph",
"gotoAnything.actions.searchApplications": "Search Applications",
- "gotoAnything.actions.searchApplicationsDesc": "Search apps",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Search knowledge bases",
- "gotoAnything.actions.searchPluginsDesc": "Search integrations",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Search workflow nodes",
"gotoAnything.actions.slashDesc": "Execute commands (type / to see all available commands)",
"gotoAnything.actions.slashTitle": "Commands",
"gotoAnything.actions.themeCategoryDesc": "Switch theme",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Use light appearance",
"gotoAnything.actions.themeSystem": "System Theme",
"gotoAnything.actions.themeSystemDesc": "Follow your OS appearance",
- "gotoAnything.activate": "Select",
- "gotoAnything.allCommands": "View all commands",
+ "gotoAnything.contextTokenHint": "In an empty field, Backspace removes the current filter or page.",
"gotoAnything.emptyState.noAppsFound": "No apps found",
"gotoAnything.emptyState.noKnowledgeBasesFound": "No knowledge bases found",
"gotoAnything.emptyState.noPluginsFound": "No integrations found",
"gotoAnything.emptyState.noWorkflowNodesFound": "No workflow nodes found",
"gotoAnything.emptyState.tryDifferentTerm": "Try a different search term",
- "gotoAnything.emptyState.trySpecificSearch": "Try {{shortcuts}} for specific searches",
"gotoAnything.groups.apps": "Apps",
"gotoAnything.groups.commands": "Commands",
"gotoAnything.groups.knowledgeBases": "Knowledge Bases",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} result",
"gotoAnything.resultCount_other": "{{count}} results",
"gotoAnything.searchFailed": "Search failed",
- "gotoAnything.searchHint": "Search resources or actions. Type / for commands or @ to narrow your search. Use arrow keys to choose an item and Enter to open it.",
+ "gotoAnything.searchHint": "Search resources or actions. Use arrow keys to choose an item and Enter to open it.",
+ "gotoAnything.searchInScopePlaceholder": "Search {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Search resources or actions, or type @ to filter…",
"gotoAnything.searchPlaceholder": "Search resources or actions…",
"gotoAnything.searchTemporarilyUnavailable": "Search temporarily unavailable",
"gotoAnything.searchTitle": "Search for anything",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Choose what to search for",
"gotoAnything.servicesUnavailableMessage": "Some search services may be experiencing issues. Try again in a moment.",
"gotoAnything.someServicesUnavailable": "Some search services unavailable",
- "gotoAnything.tryDifferentSearch": "Try a different search term",
"iconPicker.cancel": "Cancel",
"iconPicker.chooseStyle": "Choose Style",
"iconPicker.clearSearch": "Clear search",
diff --git a/web/i18n/locales/es-ES/app.json b/web/i18n/locales/es-ES/app.json
index 989f3db8395..bc4ca91297b 100644
--- a/web/i18n/locales/es-ES/app.json
+++ b/web/i18n/locales/es-ES/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Describir un cambio para aplicar al borrador actual.",
"gotoAnything.actions.refineTitle": "Refinar el gráfico actual",
"gotoAnything.actions.searchApplications": "Buscar aplicaciones",
- "gotoAnything.actions.searchApplicationsDesc": "Buscar apps",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Buscar bases de conocimiento",
- "gotoAnything.actions.searchPluginsDesc": "Buscar integraciones",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Buscar nodos de flujo",
"gotoAnything.actions.slashDesc": "Ejecuta comandos como /tema, /idioma",
"gotoAnything.actions.slashTitle": "Comandos",
"gotoAnything.actions.themeCategoryDesc": "Cambiar tema",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Usar apariencia clara",
"gotoAnything.actions.themeSystem": "Tema del sistema",
"gotoAnything.actions.themeSystemDesc": "Sigue la apariencia de tu sistema operativo",
- "gotoAnything.activate": "Seleccionar",
- "gotoAnything.allCommands": "Ver todos los comandos",
+ "gotoAnything.contextTokenHint": "Con el campo vacío, Retroceso quita el filtro o la página actual.",
"gotoAnything.emptyState.noAppsFound": "No se encontraron aplicaciones",
"gotoAnything.emptyState.noKnowledgeBasesFound": "No se han encontrado bases de conocimiento",
"gotoAnything.emptyState.noPluginsFound": "No se encontraron complementos",
"gotoAnything.emptyState.noWorkflowNodesFound": "No se encontraron nodos de flujo de trabajo",
"gotoAnything.emptyState.tryDifferentTerm": "Intenta un término de búsqueda diferente",
- "gotoAnything.emptyState.trySpecificSearch": "Prueba {{shortcuts}} para búsquedas específicas",
"gotoAnything.groups.apps": "Aplicaciones",
"gotoAnything.groups.commands": "Comandos",
"gotoAnything.groups.knowledgeBases": "Bases de conocimiento",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} resultado",
"gotoAnything.resultCount_other": "{{count}} resultados",
"gotoAnything.searchFailed": "Error de búsqueda",
- "gotoAnything.searchHint": "Busca recursos o acciones. Escribe / para ver comandos o @ para limitar la búsqueda. Usa las flechas para elegir un elemento y Enter para abrirlo.",
+ "gotoAnything.searchHint": "Busca recursos o acciones. Usa las flechas para elegir un elemento y Enter para abrirlo.",
+ "gotoAnything.searchInScopePlaceholder": "Buscar en {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Busca recursos o acciones, o escribe @ para filtrar por tipo…",
"gotoAnything.searchPlaceholder": "Buscar recursos o acciones…",
"gotoAnything.searchTemporarilyUnavailable": "La búsqueda no está disponible temporalmente",
"gotoAnything.searchTitle": "Busca cualquier cosa",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Elige qué buscar",
"gotoAnything.servicesUnavailableMessage": "Algunos servicios de búsqueda pueden estar experimentando problemas. Inténtalo de nuevo en un momento.",
"gotoAnything.someServicesUnavailable": "Algunos servicios de búsqueda no están disponibles",
- "gotoAnything.tryDifferentSearch": "Prueba con un término de búsqueda diferente",
"iconPicker.cancel": "Cancelar",
"iconPicker.chooseStyle": "Elegir estilo",
"iconPicker.clearSearch": "Borrar búsqueda",
diff --git a/web/i18n/locales/fa-IR/app.json b/web/i18n/locales/fa-IR/app.json
index a22c23fe979..407721da919 100644
--- a/web/i18n/locales/fa-IR/app.json
+++ b/web/i18n/locales/fa-IR/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "تغییری را برای اعمال در پیش‌نویس فعلی توضیح دهید",
"gotoAnything.actions.refineTitle": "نمودار فعلی را اصلاح کنید",
"gotoAnything.actions.searchApplications": "جستجوی برنامه ها",
- "gotoAnything.actions.searchApplicationsDesc": "جستجوی برنامه‌ها",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "جستجوی پایگاه‌های دانش",
- "gotoAnything.actions.searchPluginsDesc": "جستجوی یکپارچه‌سازی‌ها",
- "gotoAnything.actions.searchWorkflowNodesDesc": "جستجوی گره‌های گردش کار",
"gotoAnything.actions.slashDesc": "دستورات را مانند /theme، /lang اجرا کنید",
"gotoAnything.actions.slashTitle": "دستورات",
"gotoAnything.actions.themeCategoryDesc": "تغییر پوسته",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "از ظاهر روشن استفاده کنید",
"gotoAnything.actions.themeSystem": "تم سیستم",
"gotoAnything.actions.themeSystemDesc": "به ظاهر سیستم‌عامل خود پایبند باشید",
- "gotoAnything.activate": "انتخاب",
- "gotoAnything.allCommands": "نمایش همه فرمان‌ها",
+ "gotoAnything.contextTokenHint": "وقتی فیلد خالی است، Backspace فیلتر یا صفحهٔ فعلی را حذف می‌کند.",
"gotoAnything.emptyState.noAppsFound": "هیچ برنامه ای یافت نشد",
"gotoAnything.emptyState.noKnowledgeBasesFound": "هیچ پایگاه دانش یافت نشد",
"gotoAnything.emptyState.noPluginsFound": "هیچ یکپارچه‌سازی ای یافت نشد",
"gotoAnything.emptyState.noWorkflowNodesFound": "هیچ گره گردش کاری یافت نشد",
"gotoAnything.emptyState.tryDifferentTerm": "یک عبارت جستجوی متفاوت را امتحان کنید",
- "gotoAnything.emptyState.trySpecificSearch": "{{shortcuts}} را برای جستجوهای خاص امتحان کنید",
"gotoAnything.groups.apps": "برنامه‌ها",
"gotoAnything.groups.commands": "دستورات",
"gotoAnything.groups.knowledgeBases": "پایگاه های دانش",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} نتیجه",
"gotoAnything.resultCount_other": "{{count}} نتیجه",
"gotoAnything.searchFailed": "جستجو انجام نشد",
- "gotoAnything.searchHint": "منابع یا اقدامات را جستجو کنید. برای فرمان‌ها / و برای محدود کردن جستجو @ را وارد کنید. با کلیدهای جهت‌نما موردی را انتخاب کنید و با Enter آن را باز کنید.",
+ "gotoAnything.searchHint": "منابع یا اقدامات را جستجو کنید. با کلیدهای جهت‌نما موردی را انتخاب کنید و با Enter آن را باز کنید.",
+ "gotoAnything.searchInScopePlaceholder": "جستجو در {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "منابع یا اقدامات را جستجو کنید، یا @ را برای فیلتر بر اساس نوع وارد کنید…",
"gotoAnything.searchPlaceholder": "جستجوی منابع یا اقدامات…",
"gotoAnything.searchTemporarilyUnavailable": "جستجو به طور موقت در دسترس نیست",
"gotoAnything.searchTitle": "هر چیزی را جستجو کنید",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "انتخاب کنید چه چیزی را جستجو کنید",
"gotoAnything.servicesUnavailableMessage": "برخی از سرویس های جستجو ممکن است با مشکل مواجه شوند. یک لحظه دیگر دوباره امتحان کنید.",
"gotoAnything.someServicesUnavailable": "برخی از سرویس های جستجو دردسترس نیستند",
- "gotoAnything.tryDifferentSearch": "عبارت جستجوی دیگری را امتحان کنید",
"iconPicker.cancel": "لغو",
"iconPicker.chooseStyle": "انتخاب سبک",
"iconPicker.clearSearch": "پاک کردن جستجو",
diff --git a/web/i18n/locales/fr-FR/app.json b/web/i18n/locales/fr-FR/app.json
index f71990d0852..a3258f31ba7 100644
--- a/web/i18n/locales/fr-FR/app.json
+++ b/web/i18n/locales/fr-FR/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Décrire un changement à appliquer au brouillon actuel",
"gotoAnything.actions.refineTitle": "Affiner le graphique actuel",
"gotoAnything.actions.searchApplications": "Rechercher des applications",
- "gotoAnything.actions.searchApplicationsDesc": "Rechercher des apps",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Rechercher des bases de connaissances",
- "gotoAnything.actions.searchPluginsDesc": "Rechercher des intégrations",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Rechercher des nœuds de workflow",
"gotoAnything.actions.slashDesc": "Exécutez des commandes telles que /theme, /lang",
"gotoAnything.actions.slashTitle": "Commandes",
"gotoAnything.actions.themeCategoryDesc": "Changer de thème",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Utiliser une apparence légère",
"gotoAnything.actions.themeSystem": "Thème du système",
"gotoAnything.actions.themeSystemDesc": "Suivez l'apparence de votre système d'exploitation",
- "gotoAnything.activate": "Sélectionner",
- "gotoAnything.allCommands": "Afficher toutes les commandes",
+ "gotoAnything.contextTokenHint": "Champ vide, Retour arrière retire le filtre ou la page en cours.",
"gotoAnything.emptyState.noAppsFound": "Aucune application trouvée",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Aucune base de connaissances trouvée",
"gotoAnything.emptyState.noPluginsFound": "Aucun intégration trouvé",
"gotoAnything.emptyState.noWorkflowNodesFound": "Aucun nœud de workflow trouvé",
"gotoAnything.emptyState.tryDifferentTerm": "Essayez un terme de recherche différent",
- "gotoAnything.emptyState.trySpecificSearch": "Essayez {{shortcuts}} pour des recherches spécifiques",
"gotoAnything.groups.apps": "Applications",
"gotoAnything.groups.commands": "Commandes",
"gotoAnything.groups.knowledgeBases": "Bases de connaissances",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} résultat",
"gotoAnything.resultCount_other": "{{count}} résultats",
"gotoAnything.searchFailed": "Echec de la recherche",
- "gotoAnything.searchHint": "Recherchez des ressources ou des actions. Saisissez / pour les commandes ou @ pour limiter la recherche. Utilisez les flèches pour sélectionner un élément et Entrée pour l’ouvrir.",
+ "gotoAnything.searchHint": "Recherchez des ressources ou des actions. Utilisez les flèches pour sélectionner un élément et Entrée pour l’ouvrir.",
+ "gotoAnything.searchInScopePlaceholder": "Rechercher dans {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Rechercher des ressources ou des actions, @ pour filtrer par type…",
"gotoAnything.searchPlaceholder": "Rechercher des ressources ou des actions…",
"gotoAnything.searchTemporarilyUnavailable": "Recherche temporairement indisponible",
"gotoAnything.searchTitle": "Recherchez n'importe quoi",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Choisissez les éléments de recherche",
"gotoAnything.servicesUnavailableMessage": "Certains services de recherche peuvent rencontrer des problèmes. Réessayez dans un instant.",
"gotoAnything.someServicesUnavailable": "Certains services de recherche indisponibles",
- "gotoAnything.tryDifferentSearch": "Essayez un autre terme de recherche",
"iconPicker.cancel": "Annuler",
"iconPicker.chooseStyle": "Choisir un style",
"iconPicker.clearSearch": "Effacer la recherche",
diff --git a/web/i18n/locales/hi-IN/app.json b/web/i18n/locales/hi-IN/app.json
index 260efcf692f..3d4aef08e58 100644
--- a/web/i18n/locales/hi-IN/app.json
+++ b/web/i18n/locales/hi-IN/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "वर्मन मसौदे पर लागू हो रहा है",
"gotoAnything.actions.refineTitle": "वर्तमान ग्राफ़ को परिष्कृत करें",
"gotoAnything.actions.searchApplications": "एप्लिकेशन खोजें",
- "gotoAnything.actions.searchApplicationsDesc": "ऐप खोजें",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "ज्ञान आधार खोजें",
- "gotoAnything.actions.searchPluginsDesc": "इंटीग्रेशन खोजें",
- "gotoAnything.actions.searchWorkflowNodesDesc": "वर्कफ़्लो नोड खोजें",
"gotoAnything.actions.slashDesc": "कमांड्स चलाएं जैसे /theme, /lang",
"gotoAnything.actions.slashTitle": "कमांड",
"gotoAnything.actions.themeCategoryDesc": "थीम बदलें",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "हल्की उपस्थिति का प्रयोग करें",
"gotoAnything.actions.themeSystem": "सिस्टम थीम",
"gotoAnything.actions.themeSystemDesc": "अपने ऑपरेटिंग सिस्टम की उपस्थिति का पालन करें",
- "gotoAnything.activate": "चुनें",
- "gotoAnything.allCommands": "सभी कमांड देखें",
+ "gotoAnything.contextTokenHint": "खाली फ़ील्ड में Backspace मौजूदा फ़िल्टर या पेज हटा देता है।",
"gotoAnything.emptyState.noAppsFound": "कोई ऐप्स नहीं मिले",
"gotoAnything.emptyState.noKnowledgeBasesFound": "कोई ज्ञान आधार नहीं मिले",
"gotoAnything.emptyState.noPluginsFound": "कोई एकीकरण नहीं मिले",
"gotoAnything.emptyState.noWorkflowNodesFound": "कोई कार्यप्रवाह नोड नहीं मिला",
"gotoAnything.emptyState.tryDifferentTerm": "एक अलग खोज शब्द आज़माएं",
- "gotoAnything.emptyState.trySpecificSearch": "विशिष्ट खोज के लिए {{shortcuts}} आज़माएं",
"gotoAnything.groups.apps": "ऐप्स",
"gotoAnything.groups.commands": "आदेश",
"gotoAnything.groups.knowledgeBases": "ज्ञान आधार",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} परिणाम",
"gotoAnything.resultCount_other": "{{count}} परिणाम",
"gotoAnything.searchFailed": "खोज विफल रहा",
- "gotoAnything.searchHint": "संसाधन या कार्रवाइयाँ खोजें। कमांड के लिए / या खोज सीमित करने के लिए @ टाइप करें। तीर कुंजियों से आइटम चुनें और खोलने के लिए Enter दबाएँ।",
+ "gotoAnything.searchHint": "संसाधन या कार्रवाइयाँ खोजें। तीर कुंजियों से आइटम चुनें और खोलने के लिए Enter दबाएँ।",
+ "gotoAnything.searchInScopePlaceholder": "{{scope}} में खोजें…",
+ "gotoAnything.searchOrFilterPlaceholder": "संसाधन या कार्रवाइयाँ खोजें, प्रकार से फ़िल्टर करने के लिए @ टाइप करें…",
"gotoAnything.searchPlaceholder": "संसाधन या कार्रवाइयाँ खोजें…",
"gotoAnything.searchTemporarilyUnavailable": "खोज अस्थायी रूप से उपलब्ध नहीं है",
"gotoAnything.searchTitle": "किसी भी चीज़ की खोज करें",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "खोजने के लिए क्या चुनें",
"gotoAnything.servicesUnavailableMessage": "कुछ खोज सेवाएँ समस्याओं का सामना कर सकती हैं। थोड़ी देर बाद फिर से प्रयास करें।",
"gotoAnything.someServicesUnavailable": "कुछ खोज सेवाएँ उपलब्ध नहीं हैं",
- "gotoAnything.tryDifferentSearch": "एक अलग खोज शब्द आजमाएँ",
"iconPicker.cancel": "रद्द करें",
"iconPicker.chooseStyle": "शैली चुनें",
"iconPicker.clearSearch": "खोज साफ़ करें",
diff --git a/web/i18n/locales/id-ID/app.json b/web/i18n/locales/id-ID/app.json
index b12d9ecece0..c5aad2722cf 100644
--- a/web/i18n/locales/id-ID/app.json
+++ b/web/i18n/locales/id-ID/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Jelaskan perubahan yang akan diterapkan pada draf saat ini",
"gotoAnything.actions.refineTitle": "Sempurnakan grafik saat ini",
"gotoAnything.actions.searchApplications": "Cari Aplikasi",
- "gotoAnything.actions.searchApplicationsDesc": "Cari aplikasi",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Cari basis pengetahuan",
- "gotoAnything.actions.searchPluginsDesc": "Cari integrasi",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Cari node alur kerja",
"gotoAnything.actions.slashDesc": "Jalankan perintah (ketik / untuk melihat semua perintah yang tersedia)",
"gotoAnything.actions.slashTitle": "Perintah",
"gotoAnything.actions.themeCategoryDesc": "Ganti tema",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Gunakan penampilan ringan",
"gotoAnything.actions.themeSystem": "Tema Sistem",
"gotoAnything.actions.themeSystemDesc": "Ikuti tampilan OS Anda",
- "gotoAnything.activate": "Pilih",
- "gotoAnything.allCommands": "Lihat semua perintah",
+ "gotoAnything.contextTokenHint": "Saat kolom kosong, Backspace menghapus filter atau halaman saat ini.",
"gotoAnything.emptyState.noAppsFound": "Tidak ada aplikasi yang ditemukan",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Tidak ada basis pengetahuan yang ditemukan",
"gotoAnything.emptyState.noPluginsFound": "Tidak ada integrasi yang ditemukan",
"gotoAnything.emptyState.noWorkflowNodesFound": "Tidak ada simpul alur kerja yang ditemukan",
"gotoAnything.emptyState.tryDifferentTerm": "Coba istilah penelusuran lain",
- "gotoAnything.emptyState.trySpecificSearch": "Coba {{shortcuts}} untuk pencarian spesifik",
"gotoAnything.groups.apps": "Apps",
"gotoAnything.groups.commands": "Perintah",
"gotoAnything.groups.knowledgeBases": "Basis Pengetahuan",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "hasil {{count}}",
"gotoAnything.resultCount_other": "hasil {{count}}",
"gotoAnything.searchFailed": "Pencarian gagal",
- "gotoAnything.searchHint": "Cari sumber daya atau tindakan. Ketik / untuk perintah atau @ untuk mempersempit pencarian. Gunakan tombol panah untuk memilih item dan Enter untuk membukanya.",
+ "gotoAnything.searchHint": "Cari sumber daya atau tindakan. Gunakan tombol panah untuk memilih item dan Enter untuk membukanya.",
+ "gotoAnything.searchInScopePlaceholder": "Cari di {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Cari sumber daya atau tindakan, ketik @ untuk memfilter jenis…",
"gotoAnything.searchPlaceholder": "Cari sumber daya atau tindakan…",
"gotoAnything.searchTemporarilyUnavailable": "Penelusuran tidak tersedia untuk sementara",
"gotoAnything.searchTitle": "Cari apa pun",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Pilih apa yang akan dicari",
"gotoAnything.servicesUnavailableMessage": "Beberapa layanan penelusuran mungkin mengalami masalah. Coba lagi sebentar lagi.",
"gotoAnything.someServicesUnavailable": "Beberapa layanan penelusuran tidak tersedia",
- "gotoAnything.tryDifferentSearch": "Coba istilah penelusuran lain",
"iconPicker.cancel": "Batal",
"iconPicker.chooseStyle": "Pilih gaya",
"iconPicker.clearSearch": "Hapus pencarian",
diff --git a/web/i18n/locales/it-IT/app.json b/web/i18n/locales/it-IT/app.json
index dbe44f0249a..b6bd9c04110 100644
--- a/web/i18n/locales/it-IT/app.json
+++ b/web/i18n/locales/it-IT/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Descrivi una modifica da applicare alla bozza corrente",
"gotoAnything.actions.refineTitle": "Perfeziona il grafico corrente",
"gotoAnything.actions.searchApplications": "Cerca applicazioni",
- "gotoAnything.actions.searchApplicationsDesc": "Cerca app",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Cerca basi di conoscenza",
- "gotoAnything.actions.searchPluginsDesc": "Cerca integrazioni",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Cerca nodi del workflow",
"gotoAnything.actions.slashDesc": "Esegui comandi come /theme, /lang",
"gotoAnything.actions.slashTitle": "Comandi",
"gotoAnything.actions.themeCategoryDesc": "Cambia tema",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Usa un aspetto chiaro",
"gotoAnything.actions.themeSystem": "Tema di sistema",
"gotoAnything.actions.themeSystemDesc": "Segui l'aspetto del tuo sistema operativo",
- "gotoAnything.activate": "Seleziona",
- "gotoAnything.allCommands": "Mostra tutti i comandi",
+ "gotoAnything.contextTokenHint": "Con il campo vuoto, Backspace rimuove il filtro o la pagina corrente.",
"gotoAnything.emptyState.noAppsFound": "Nessuna app trovata",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Nessuna base di conoscenza trovata",
"gotoAnything.emptyState.noPluginsFound": "Nessun integrazione trovato",
"gotoAnything.emptyState.noWorkflowNodesFound": "Nessun nodo del flusso di lavoro trovato",
"gotoAnything.emptyState.tryDifferentTerm": "Prova un termine di ricerca diverso",
- "gotoAnything.emptyState.trySpecificSearch": "Prova {{shortcuts}} per ricerche specifiche",
"gotoAnything.groups.apps": "Applicazioni",
"gotoAnything.groups.commands": "Comandi",
"gotoAnything.groups.knowledgeBases": "Basi di conoscenza",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} risultato",
"gotoAnything.resultCount_other": "{{count}} risultati",
"gotoAnything.searchFailed": "Ricerca non riuscita",
- "gotoAnything.searchHint": "Cerca risorse o azioni. Digita / per i comandi o @ per restringere la ricerca. Usa le frecce per scegliere un elemento e Invio per aprirlo.",
+ "gotoAnything.searchHint": "Cerca risorse o azioni. Usa le frecce per scegliere un elemento e Invio per aprirlo.",
+ "gotoAnything.searchInScopePlaceholder": "Cerca in {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Cerca risorse o azioni, oppure digita @ per filtrare per tipo…",
"gotoAnything.searchPlaceholder": "Cerca risorse o azioni…",
"gotoAnything.searchTemporarilyUnavailable": "Ricerca temporaneamente non disponibile",
"gotoAnything.searchTitle": "Cerca qualsiasi cosa",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Scegli cosa cercare",
"gotoAnything.servicesUnavailableMessage": "Alcuni servizi di ricerca potrebbero riscontrare problemi. Riprova tra un attimo.",
"gotoAnything.someServicesUnavailable": "Alcuni servizi di ricerca non sono disponibili",
- "gotoAnything.tryDifferentSearch": "Prova un termine di ricerca diverso",
"iconPicker.cancel": "Annulla",
"iconPicker.chooseStyle": "Scegli stile",
"iconPicker.clearSearch": "Cancella ricerca",
diff --git a/web/i18n/locales/ja-JP/app.json b/web/i18n/locales/ja-JP/app.json
index 2900984162c..c0d2590f3ed 100644
--- a/web/i18n/locales/ja-JP/app.json
+++ b/web/i18n/locales/ja-JP/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "現在のドラフトに適用する変更について説明します",
"gotoAnything.actions.refineTitle": "現在のグラフを絞り込む",
"gotoAnything.actions.searchApplications": "アプリケーションを検索",
- "gotoAnything.actions.searchApplicationsDesc": "アプリを検索",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "ナレッジベースを検索",
- "gotoAnything.actions.searchPluginsDesc": "連携を検索",
- "gotoAnything.actions.searchWorkflowNodesDesc": "ワークフローノードを検索",
"gotoAnything.actions.slashDesc": "コマンドを実行します、例えば /theme や /lang のように",
"gotoAnything.actions.slashTitle": "コマンド",
"gotoAnything.actions.themeCategoryDesc": "テーマを切り替え",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "明るい外観を使用する",
"gotoAnything.actions.themeSystem": "システムテーマ",
"gotoAnything.actions.themeSystemDesc": "OSの外観に従ってください",
- "gotoAnything.activate": "選択",
- "gotoAnything.allCommands": "すべてのコマンドを表示",
+ "gotoAnything.contextTokenHint": "入力が空のときは Backspace で現在の絞り込みやページを解除します。",
"gotoAnything.emptyState.noAppsFound": "アプリが見つかりません",
"gotoAnything.emptyState.noKnowledgeBasesFound": "ナレッジベースが見つかりません",
"gotoAnything.emptyState.noPluginsFound": "インテグレーションが見つかりません",
"gotoAnything.emptyState.noWorkflowNodesFound": "ワークフローノードが見つかりません",
"gotoAnything.emptyState.tryDifferentTerm": "別の検索語句を試してください",
- "gotoAnything.emptyState.trySpecificSearch": "特定検索には {{shortcuts}} を試してください",
"gotoAnything.groups.apps": "アプリケーション",
"gotoAnything.groups.commands": "コマンド",
"gotoAnything.groups.knowledgeBases": "ナレッジベース",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} 件の結果",
"gotoAnything.resultCount_other": "{{count}} 件の結果",
"gotoAnything.searchFailed": "検索に失敗しました",
- "gotoAnything.searchHint": "リソースや操作を検索できます。/ でコマンドを表示し、@ で検索範囲を絞り込みます。 矢印キーで項目を選び、Enter で開きます。",
+ "gotoAnything.searchHint": "リソースや操作を検索できます。矢印キーで項目を選び、Enter で開きます。",
+ "gotoAnything.searchInScopePlaceholder": "{{scope}}を検索…",
+ "gotoAnything.searchOrFilterPlaceholder": "リソースや操作を検索、@ で種類を絞り込み…",
"gotoAnything.searchPlaceholder": "リソースや操作を検索…",
"gotoAnything.searchTemporarilyUnavailable": "検索が一時的に利用できません",
"gotoAnything.searchTitle": "何でも検索",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "検索対象を選択",
"gotoAnything.servicesUnavailableMessage": "一部の検索サービスで問題が発生している可能性があります。しばらくしてからもう一度お試しください。",
"gotoAnything.someServicesUnavailable": "一部の検索サービスが利用できません",
- "gotoAnything.tryDifferentSearch": "別の検索語句をお試しください",
"iconPicker.cancel": "キャンセル",
"iconPicker.chooseStyle": "スタイルを選択",
"iconPicker.clearSearch": "検索をクリア",
diff --git a/web/i18n/locales/ko-KR/app.json b/web/i18n/locales/ko-KR/app.json
index cf7e6d9a95b..de02be78d9b 100644
--- a/web/i18n/locales/ko-KR/app.json
+++ b/web/i18n/locales/ko-KR/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "현재 초안에 적용할 변경 사항 설명",
"gotoAnything.actions.refineTitle": "현재 그래프 세분화",
"gotoAnything.actions.searchApplications": "응용 프로그램 검색",
- "gotoAnything.actions.searchApplicationsDesc": "앱 검색",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "지식 베이스 검색",
- "gotoAnything.actions.searchPluginsDesc": "통합 검색",
- "gotoAnything.actions.searchWorkflowNodesDesc": "워크플로 노드 검색",
"gotoAnything.actions.slashDesc": "/theme, /lang와 같은 명령어를 실행하십시오.",
"gotoAnything.actions.slashTitle": "명령어",
"gotoAnything.actions.themeCategoryDesc": "테마 변경",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "밝은 외관 사용",
"gotoAnything.actions.themeSystem": "시스템 테마",
"gotoAnything.actions.themeSystemDesc": "운영 체제의 외관을 따르세요",
- "gotoAnything.activate": "선택",
- "gotoAnything.allCommands": "모든 명령 보기",
+ "gotoAnything.contextTokenHint": "입력란이 비어 있을 때 Backspace를 누르면 현재 필터나 페이지가 해제됩니다.",
"gotoAnything.emptyState.noAppsFound": "앱을 찾을 수 없습니다.",
"gotoAnything.emptyState.noKnowledgeBasesFound": "기술 자료를 찾을 수 없습니다.",
"gotoAnything.emptyState.noPluginsFound": "통합을 찾을 수 없습니다.",
"gotoAnything.emptyState.noWorkflowNodesFound": "워크플로 노드를 찾을 수 없습니다.",
"gotoAnything.emptyState.tryDifferentTerm": "다른 검색어를 시도하세요",
- "gotoAnything.emptyState.trySpecificSearch": "특정 검색을 위해 {{shortcuts}}를 사용해보세요",
"gotoAnything.groups.apps": "앱",
"gotoAnything.groups.commands": "명령어",
"gotoAnything.groups.knowledgeBases": "기술 자료",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} 개 결과",
"gotoAnything.resultCount_other": "{{count}} 개 결과",
"gotoAnything.searchFailed": "검색 실패",
- "gotoAnything.searchHint": "리소스 또는 작업을 검색하세요. /를 입력하면 명령을 보고, @를 입력하면 검색 범위를 좁힐 수 있습니다. 방향키로 항목을 선택하고 Enter로 여세요.",
+ "gotoAnything.searchHint": "리소스 또는 작업을 검색하세요. 방향키로 항목을 선택하고 Enter로 여세요.",
+ "gotoAnything.searchInScopePlaceholder": "{{scope}} 검색…",
+ "gotoAnything.searchOrFilterPlaceholder": "리소스 또는 작업 검색, @로 유형 필터…",
"gotoAnything.searchPlaceholder": "리소스 또는 작업 검색…",
"gotoAnything.searchTemporarilyUnavailable": "일시적으로 검색할 수 없음",
"gotoAnything.searchTitle": "무엇이든 검색",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "검색할 항목 선택",
"gotoAnything.servicesUnavailableMessage": "일부 검색 서비스에서 문제가 발생할 수 있습니다. 잠시 후에 다시 시도하십시오.",
"gotoAnything.someServicesUnavailable": "일부 검색 서비스를 사용할 수 없습니다.",
- "gotoAnything.tryDifferentSearch": "다른 검색어 사용해 보기",
"iconPicker.cancel": "취소",
"iconPicker.chooseStyle": "스타일 선택",
"iconPicker.clearSearch": "검색 지우기",
diff --git a/web/i18n/locales/lo-LA/app.json b/web/i18n/locales/lo-LA/app.json
index b269c55c5fe..1e4f127139f 100644
--- a/web/i18n/locales/lo-LA/app.json
+++ b/web/i18n/locales/lo-LA/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "ອະທິບາຍການປ່ຽນແປງທີ່ຈະນຳໃຊ້ກັບຮ່າງປະຈຸບັນ",
"gotoAnything.actions.refineTitle": "ປັບປຸງກຣາຟປະຈຸບັນ",
"gotoAnything.actions.searchApplications": "ຄົ້ນຫາແອັບພລິເຄຊັນ",
- "gotoAnything.actions.searchApplicationsDesc": "ຄົ້ນຫາແອັບ",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "ຄົ້ນຫາຖານຄວາມຮູ້",
- "gotoAnything.actions.searchPluginsDesc": "ຄົ້ນຫາການເຊື່ອມຕໍ່",
- "gotoAnything.actions.searchWorkflowNodesDesc": "ຄົ້ນຫາໂນດຂັ້ນຕອນວຽກ",
"gotoAnything.actions.slashDesc": "ໃຊ້ຄຳສັ່ງ (ພິມ / ເພື່ອເບິ່ງຄຳສັ່ງທັງໝົດທີ່ມີ)",
"gotoAnything.actions.slashTitle": "ຄຳສັ່ງ",
"gotoAnything.actions.themeCategoryDesc": "ປ່ຽນທີມ",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "ໃຊ້ຮູບແບບສີແຈ້ງ",
"gotoAnything.actions.themeSystem": "ຮູບແບບຕາມລະບົບ",
"gotoAnything.actions.themeSystemDesc": "ໃຊ້ຮູບແບບຕາມການຕັ້ງຄ່າຂອງລະບົບປະຕິບັດການ",
- "gotoAnything.activate": "ເລືອກ",
- "gotoAnything.allCommands": "ເບິ່ງຄຳສັ່ງທັງໝົດ",
+ "gotoAnything.contextTokenHint": "ເມື່ອຊ່ອງຫວ່າງ, ກົດ Backspace ເພື່ອລຶບຕົວກັ່ນຕອງ ຫຼື ໜ້າປັດຈຸບັນ.",
"gotoAnything.emptyState.noAppsFound": "ບໍ່ພົບແອັບ",
"gotoAnything.emptyState.noKnowledgeBasesFound": "ບໍ່ພົບຄັງຄວາມຮູ້",
"gotoAnything.emptyState.noPluginsFound": "ບໍ່ພົບການເຊື່ອມຕໍ່",
"gotoAnything.emptyState.noWorkflowNodesFound": "ບໍ່ພົບໂນດໃນ Workflow",
"gotoAnything.emptyState.tryDifferentTerm": "ລອງໃຊ້ຄຳຄົ້ນຫາອື່ນ",
- "gotoAnything.emptyState.trySpecificSearch": "ລອງໃຊ້ {{shortcuts}} ສຳລັບການຄົ້ນຫາສະເພາະ",
"gotoAnything.groups.apps": "ແອັບ",
"gotoAnything.groups.commands": "ຄຳສັ່ງ",
"gotoAnything.groups.knowledgeBases": "ຄັງຄວາມຮູ້",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} ຜົນລາຍການ",
"gotoAnything.resultCount_other": "{{count}} ຜົນລາຍການ",
"gotoAnything.searchFailed": "ການຄົ້ນຫາລົ້ມເຫຼວ",
- "gotoAnything.searchHint": "ຄົ້ນຫາຊັບພະຍາກອນ ຫຼື ການດຳເນີນການ. ພິມ / ເພື່ອເບິ່ງຄຳສັ່ງ ຫຼື @ ເພື່ອຈຳກັດຂອບເຂດການຄົ້ນຫາ. ໃຊ້ປຸ່ມລູກສອນເພື່ອເລືອກລາຍການ ແລະ ກົດ Enter ເພື່ອເປີດ.",
+ "gotoAnything.searchHint": "ຄົ້ນຫາຊັບພະຍາກອນ ຫຼື ການດຳເນີນການ. ໃຊ້ປຸ່ມລູກສອນເພື່ອເລືອກລາຍການ ແລະ ກົດ Enter ເພື່ອເປີດ.",
+ "gotoAnything.searchInScopePlaceholder": "ຄົ້ນຫາໃນ {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "ຄົ້ນຫາຊັບພະຍາກອນ ຫຼື ການດຳເນີນການ, ພິມ @ ເພື່ອກັ່ນຕອງຕາມປະເພດ…",
"gotoAnything.searchPlaceholder": "ຄົ້ນຫາຊັບພະຍາກອນ ຫຼື ການດຳເນີນການ…",
"gotoAnything.searchTemporarilyUnavailable": "ການຄົ້ນຫາບໍ່ສາມາດໃຊ້ງານໄດ້ຊົ່ວຄາວ",
"gotoAnything.searchTitle": "ຄົ້ນຫາທຸກສິ່ງ",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "ເລືອກສິ່ງທີ່ຕ້ອງການຄົ້ນຫາ",
"gotoAnything.servicesUnavailableMessage": "ບໍລິການຄົ້ນຫາບາງຢ່າງອາດມີບັນຫາ. ກະລຸນາລອງໃໝ່ໃນອີກຈັກບຶດ.",
"gotoAnything.someServicesUnavailable": "ບາງບໍລິການຄົ້ນຫາບໍ່ສາມາດໃຊ້ງານໄດ້",
- "gotoAnything.tryDifferentSearch": "ລອງໃຊ້ຄຳຄົ້ນຫາອື່ນ",
"iconPicker.cancel": "ຍົກເລີກ",
"iconPicker.chooseStyle": "ເລືອກຮູບແບບ",
"iconPicker.clearSearch": "ລ້າງການຄົ້ນຫາ",
diff --git a/web/i18n/locales/nl-NL/app.json b/web/i18n/locales/nl-NL/app.json
index 7cbeb058849..9ec8450d600 100644
--- a/web/i18n/locales/nl-NL/app.json
+++ b/web/i18n/locales/nl-NL/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Beschrijf een wijziging die moet worden toegepast op het huidige concept",
"gotoAnything.actions.refineTitle": "Verfijn de huidige grafiek",
"gotoAnything.actions.searchApplications": "Search Applications",
- "gotoAnything.actions.searchApplicationsDesc": "Apps zoeken",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Kennisbanken zoeken",
- "gotoAnything.actions.searchPluginsDesc": "Integraties zoeken",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Workflowknooppunten zoeken",
"gotoAnything.actions.slashDesc": "Execute commands (type / to see all available commands)",
"gotoAnything.actions.slashTitle": "Commands",
"gotoAnything.actions.themeCategoryDesc": "Thema wijzigen",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Use light appearance",
"gotoAnything.actions.themeSystem": "System Theme",
"gotoAnything.actions.themeSystemDesc": "Follow your OS appearance",
- "gotoAnything.activate": "Selecteren",
- "gotoAnything.allCommands": "Alle opdrachten bekijken",
+ "gotoAnything.contextTokenHint": "Bij een leeg veld verwijdert Backspace het huidige filter of de pagina.",
"gotoAnything.emptyState.noAppsFound": "No apps found",
"gotoAnything.emptyState.noKnowledgeBasesFound": "No knowledge bases found",
"gotoAnything.emptyState.noPluginsFound": "No integraties found",
"gotoAnything.emptyState.noWorkflowNodesFound": "No workflow nodes found",
"gotoAnything.emptyState.tryDifferentTerm": "Try a different search term",
- "gotoAnything.emptyState.trySpecificSearch": "Try {{shortcuts}} for specific searches",
"gotoAnything.groups.apps": "Apps",
"gotoAnything.groups.commands": "Commands",
"gotoAnything.groups.knowledgeBases": "Knowledge Bases",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} result",
"gotoAnything.resultCount_other": "{{count}} results",
"gotoAnything.searchFailed": "Search failed",
- "gotoAnything.searchHint": "Zoek bronnen of acties. Typ / voor opdrachten of @ om je zoekopdracht te beperken. Gebruik de pijltoetsen om een item te kiezen en Enter om het te openen.",
+ "gotoAnything.searchHint": "Zoek bronnen of acties. Gebruik de pijltoetsen om een item te kiezen en Enter om het te openen.",
+ "gotoAnything.searchInScopePlaceholder": "Zoeken in {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Zoek bronnen of acties, of typ @ om op type te filteren…",
"gotoAnything.searchPlaceholder": "Zoek bronnen of acties…",
"gotoAnything.searchTemporarilyUnavailable": "Search temporarily unavailable",
"gotoAnything.searchTitle": "Search for anything",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Choose what to search for",
"gotoAnything.servicesUnavailableMessage": "Some search services may be experiencing issues. Try again in a moment.",
"gotoAnything.someServicesUnavailable": "Some search services unavailable",
- "gotoAnything.tryDifferentSearch": "Try a different search term",
"iconPicker.cancel": "Cancel",
"iconPicker.chooseStyle": "Kies stijl",
"iconPicker.clearSearch": "Zoekopdracht wissen",
diff --git a/web/i18n/locales/pl-PL/app.json b/web/i18n/locales/pl-PL/app.json
index f288242b732..32749ed89c3 100644
--- a/web/i18n/locales/pl-PL/app.json
+++ b/web/i18n/locales/pl-PL/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Opisz zmianę, którą chcesz zastosować w bieżącej wersji roboczej",
"gotoAnything.actions.refineTitle": "Udoskonal bieżący wykres",
"gotoAnything.actions.searchApplications": "Szukaj aplikacji",
- "gotoAnything.actions.searchApplicationsDesc": "Szukaj aplikacji",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Szukaj baz wiedzy",
- "gotoAnything.actions.searchPluginsDesc": "Szukaj integracji",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Szukaj węzłów przepływu",
"gotoAnything.actions.slashDesc": "Wykonuj polecenia takie jak /theme, /lang",
"gotoAnything.actions.slashTitle": "Polecenia",
"gotoAnything.actions.themeCategoryDesc": "Zmień motyw",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Użyj jasnego wyglądu",
"gotoAnything.actions.themeSystem": "Motyw systemu",
"gotoAnything.actions.themeSystemDesc": "Podążaj za wyglądem swojego systemu operacyjnego",
- "gotoAnything.activate": "Wybierz",
- "gotoAnything.allCommands": "Pokaż wszystkie polecenia",
+ "gotoAnything.contextTokenHint": "Gdy pole jest puste, Backspace usuwa bieżący filtr lub stronę.",
"gotoAnything.emptyState.noAppsFound": "Nie znaleziono aplikacji",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Nie znaleziono baz wiedzy",
"gotoAnything.emptyState.noPluginsFound": "Nie znaleziono wtyczek",
"gotoAnything.emptyState.noWorkflowNodesFound": "Nie znaleziono węzłów przepływu pracy",
"gotoAnything.emptyState.tryDifferentTerm": "Spróbuj innego terminu wyszukiwania",
- "gotoAnything.emptyState.trySpecificSearch": "Spróbuj {{shortcuts}} dla konkretnych wyszukiwań",
"gotoAnything.groups.apps": "Aplikacje",
"gotoAnything.groups.commands": "Polecenia",
"gotoAnything.groups.knowledgeBases": "Bazy wiedzy",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} wynik",
"gotoAnything.resultCount_other": "{{count}} wyników",
"gotoAnything.searchFailed": "Wyszukiwanie nie powiodło się",
- "gotoAnything.searchHint": "Szukaj zasobów lub działań. Wpisz /, aby zobaczyć polecenia, lub @, aby zawęzić wyszukiwanie. Wybierz element strzałkami i naciśnij Enter, aby go otworzyć.",
+ "gotoAnything.searchHint": "Szukaj zasobów lub działań. Wybierz element strzałkami i naciśnij Enter, aby go otworzyć.",
+ "gotoAnything.searchInScopePlaceholder": "Szukaj w: {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Szukaj zasobów lub działań albo wpisz @, aby filtrować według typu…",
"gotoAnything.searchPlaceholder": "Szukaj zasobów lub działań…",
"gotoAnything.searchTemporarilyUnavailable": "Wyszukiwanie chwilowo niedostępne",
"gotoAnything.searchTitle": "Szukaj czegokolwiek",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Wybierz, czego chcesz szukać",
"gotoAnything.servicesUnavailableMessage": "W przypadku niektórych usług wyszukiwania mogą występować problemy. Spróbuj ponownie za chwilę.",
"gotoAnything.someServicesUnavailable": "Niektóre usługi wyszukiwania są niedostępne",
- "gotoAnything.tryDifferentSearch": "Spróbuj użyć innego hasła",
"iconPicker.cancel": "Anuluj",
"iconPicker.chooseStyle": "Wybierz styl",
"iconPicker.clearSearch": "Wyczyść wyszukiwanie",
diff --git a/web/i18n/locales/pt-BR/app.json b/web/i18n/locales/pt-BR/app.json
index 8bbd186fe71..c2de6133c23 100644
--- a/web/i18n/locales/pt-BR/app.json
+++ b/web/i18n/locales/pt-BR/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Descreva uma alteração a ser aplicada ao rascunho atual",
"gotoAnything.actions.refineTitle": "Refinar o gráfico atual",
"gotoAnything.actions.searchApplications": "Pesquisar aplicativos",
- "gotoAnything.actions.searchApplicationsDesc": "Buscar apps",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Buscar bases de conhecimento",
- "gotoAnything.actions.searchPluginsDesc": "Buscar integrações",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Buscar nós do fluxo",
"gotoAnything.actions.slashDesc": "Execute comandos como /tema, /idioma",
"gotoAnything.actions.slashTitle": "Comandos",
"gotoAnything.actions.themeCategoryDesc": "Alterar tema",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Use aparência clara",
"gotoAnything.actions.themeSystem": "Tema do Sistema",
"gotoAnything.actions.themeSystemDesc": "Siga a aparência do seu sistema operacional",
- "gotoAnything.activate": "Selecionar",
- "gotoAnything.allCommands": "Ver todos os comandos",
+ "gotoAnything.contextTokenHint": "Com o campo vazio, Backspace remove o filtro ou a página atual.",
"gotoAnything.emptyState.noAppsFound": "Nenhum aplicativo encontrado",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Nenhuma base de conhecimento encontrada",
"gotoAnything.emptyState.noPluginsFound": "Nenhum integração encontrado",
"gotoAnything.emptyState.noWorkflowNodesFound": "Nenhum nó de fluxo de trabalho encontrado",
"gotoAnything.emptyState.tryDifferentTerm": "Tente um termo de pesquisa diferente",
- "gotoAnything.emptyState.trySpecificSearch": "Tente {{shortcuts}} para pesquisas específicas",
"gotoAnything.groups.apps": "Aplicativos",
"gotoAnything.groups.commands": "Comandos",
"gotoAnything.groups.knowledgeBases": "Bases de conhecimento",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} resultado",
"gotoAnything.resultCount_other": "{{count}} resultados",
"gotoAnything.searchFailed": "Falha na pesquisa",
- "gotoAnything.searchHint": "Busque recursos ou ações. Digite / para ver comandos ou @ para restringir a busca. Use as setas para selecionar um item e Enter para abri-lo.",
+ "gotoAnything.searchHint": "Busque recursos ou ações. Use as setas para selecionar um item e Enter para abri-lo.",
+ "gotoAnything.searchInScopePlaceholder": "Buscar em {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Busque recursos ou ações, ou digite @ para filtrar por tipo…",
"gotoAnything.searchPlaceholder": "Buscar recursos ou ações…",
"gotoAnything.searchTemporarilyUnavailable": "Pesquisa temporariamente indisponível",
"gotoAnything.searchTitle": "Pesquisar qualquer coisa",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Escolha o que pesquisar",
"gotoAnything.servicesUnavailableMessage": "Alguns serviços de pesquisa podem estar enfrentando problemas. Tente novamente em um momento.",
"gotoAnything.someServicesUnavailable": "Alguns serviços de pesquisa indisponíveis",
- "gotoAnything.tryDifferentSearch": "Tente um termo de pesquisa diferente",
"iconPicker.cancel": "Cancelar",
"iconPicker.chooseStyle": "Escolher estilo",
"iconPicker.clearSearch": "Limpar pesquisa",
diff --git a/web/i18n/locales/ro-RO/app.json b/web/i18n/locales/ro-RO/app.json
index 7e459b48d12..28a14f11d42 100644
--- a/web/i18n/locales/ro-RO/app.json
+++ b/web/i18n/locales/ro-RO/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Descrieți o modificare de aplicat schiței actuale",
"gotoAnything.actions.refineTitle": "Rafinați graficul curent",
"gotoAnything.actions.searchApplications": "Căutare aplicații",
- "gotoAnything.actions.searchApplicationsDesc": "Caută aplicații",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Caută baze de cunoștințe",
- "gotoAnything.actions.searchPluginsDesc": "Caută integrări",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Caută noduri de flux",
"gotoAnything.actions.slashDesc": "Execută comenzi precum /theme, /lang",
"gotoAnything.actions.slashTitle": "Comenzi",
"gotoAnything.actions.themeCategoryDesc": "Schimbă tema",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Folosește aspectul luminos",
"gotoAnything.actions.themeSystem": "Tema sistemului",
"gotoAnything.actions.themeSystemDesc": "Urmăriți aspectul sistemului de operare",
- "gotoAnything.activate": "Selectează",
- "gotoAnything.allCommands": "Vezi toate comenzile",
+ "gotoAnything.contextTokenHint": "Când câmpul este gol, Backspace elimină filtrul sau pagina curentă.",
"gotoAnything.emptyState.noAppsFound": "Nu s-au găsit aplicații",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Nu au fost găsite baze de cunoștințe",
"gotoAnything.emptyState.noPluginsFound": "Nu au fost găsite integrare-uri",
"gotoAnything.emptyState.noWorkflowNodesFound": "Nu au fost găsite noduri de flux de lucru",
"gotoAnything.emptyState.tryDifferentTerm": "Încercați un termen de căutare diferit",
- "gotoAnything.emptyState.trySpecificSearch": "Încercați {{shortcuts}} pentru căutări specifice",
"gotoAnything.groups.apps": "Aplicații",
"gotoAnything.groups.commands": "Comenzi",
"gotoAnything.groups.knowledgeBases": "Baze de cunoștințe",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} rezultat",
"gotoAnything.resultCount_other": "{{count}} rezultate",
"gotoAnything.searchFailed": "Căutarea a eșuat",
- "gotoAnything.searchHint": "Caută resurse sau acțiuni. Tastează / pentru comenzi sau @ pentru a restrânge căutarea. Folosește săgețile pentru a selecta un element și Enter pentru a-l deschide.",
+ "gotoAnything.searchHint": "Caută resurse sau acțiuni. Folosește săgețile pentru a selecta un element și Enter pentru a-l deschide.",
+ "gotoAnything.searchInScopePlaceholder": "Caută în {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Caută resurse sau acțiuni ori tastează @ pentru a filtra după tip…",
"gotoAnything.searchPlaceholder": "Caută resurse sau acțiuni…",
"gotoAnything.searchTemporarilyUnavailable": "Căutare temporar indisponibilă",
"gotoAnything.searchTitle": "Căutați orice",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Alegeți ce să căutați",
"gotoAnything.servicesUnavailableMessage": "Este posibil ca unele servicii de căutare să întâmpine probleme. Încercați din nou într-o clipă.",
"gotoAnything.someServicesUnavailable": "Unele servicii de căutare nu sunt disponibile",
- "gotoAnything.tryDifferentSearch": "Încercați un alt termen de căutare",
"iconPicker.cancel": "Anulează",
"iconPicker.chooseStyle": "Alege stilul",
"iconPicker.clearSearch": "Șterge căutarea",
diff --git a/web/i18n/locales/ru-RU/app.json b/web/i18n/locales/ru-RU/app.json
index 2b85429845c..8bf3d31025e 100644
--- a/web/i18n/locales/ru-RU/app.json
+++ b/web/i18n/locales/ru-RU/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Опишите изменение, которое будет применено к текущему проекту.",
"gotoAnything.actions.refineTitle": "Уточнить текущий график",
"gotoAnything.actions.searchApplications": "Поиск приложений",
- "gotoAnything.actions.searchApplicationsDesc": "Поиск приложений",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Поиск баз знаний",
- "gotoAnything.actions.searchPluginsDesc": "Поиск интеграций",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Поиск узлов процесса",
"gotoAnything.actions.slashDesc": "Выполняйте команды, такие как /theme, /lang",
"gotoAnything.actions.slashTitle": "Команды",
"gotoAnything.actions.themeCategoryDesc": "Сменить тему",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Используйте светлый внешний вид",
"gotoAnything.actions.themeSystem": "Системная тема",
"gotoAnything.actions.themeSystemDesc": "Следуйте внешнему виду вашей операционной системы",
- "gotoAnything.activate": "Выбрать",
- "gotoAnything.allCommands": "Показать все команды",
+ "gotoAnything.contextTokenHint": "Если поле пустое, Backspace снимает текущий фильтр или закрывает страницу.",
"gotoAnything.emptyState.noAppsFound": "Приложения не найдены",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Базы знаний не найдены",
"gotoAnything.emptyState.noPluginsFound": "Интеграции не найдены",
"gotoAnything.emptyState.noWorkflowNodesFound": "Узлы расчетной схемы не найдены",
"gotoAnything.emptyState.tryDifferentTerm": "Попробуйте другой поисковый термин",
- "gotoAnything.emptyState.trySpecificSearch": "Попробуйте {{shortcuts}} для конкретного поиска",
"gotoAnything.groups.apps": "Приложения",
"gotoAnything.groups.commands": "Команды",
"gotoAnything.groups.knowledgeBases": "Базы знаний",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} результат",
"gotoAnything.resultCount_other": "{{count}} результатов",
"gotoAnything.searchFailed": "Ошибка поиска",
- "gotoAnything.searchHint": "Ищите ресурсы или действия. Введите / для просмотра команд или @ для сужения поиска. Выберите элемент стрелками и нажмите Enter, чтобы открыть его.",
+ "gotoAnything.searchHint": "Ищите ресурсы или действия. Выберите элемент стрелками и нажмите Enter, чтобы открыть его.",
+ "gotoAnything.searchInScopePlaceholder": "Поиск: {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Ищите ресурсы или действия, введите @ для фильтра по типу…",
"gotoAnything.searchPlaceholder": "Поиск ресурсов или действий…",
"gotoAnything.searchTemporarilyUnavailable": "Поиск временно недоступен",
"gotoAnything.searchTitle": "Ищите что угодно",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Выберите, что искать",
"gotoAnything.servicesUnavailableMessage": "В некоторых поисковых службах могут возникать проблемы. Повторите попытку через мгновение.",
"gotoAnything.someServicesUnavailable": "Некоторые поисковые сервисы недоступны",
- "gotoAnything.tryDifferentSearch": "Попробуйте использовать другой поисковый запрос",
"iconPicker.cancel": "Отмена",
"iconPicker.chooseStyle": "Выбрать стиль",
"iconPicker.clearSearch": "Очистить поиск",
diff --git a/web/i18n/locales/sl-SI/app.json b/web/i18n/locales/sl-SI/app.json
index 9671bb4ce82..0affea77eb8 100644
--- a/web/i18n/locales/sl-SI/app.json
+++ b/web/i18n/locales/sl-SI/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Opišite spremembo za trenutni osnutek",
"gotoAnything.actions.refineTitle": "Izboljšajte trenutni graf",
"gotoAnything.actions.searchApplications": "Iskanje aplikacij",
- "gotoAnything.actions.searchApplicationsDesc": "Išči aplikacije",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Išči zbirke znanja",
- "gotoAnything.actions.searchPluginsDesc": "Išči integracije",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Išči vozlišča poteka",
"gotoAnything.actions.slashDesc": "Izvedi ukaze kot so /tema, /jezik",
"gotoAnything.actions.slashTitle": "Ukazi",
"gotoAnything.actions.themeCategoryDesc": "Spremeni temo",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Uporabite svetlo prikazovanje",
"gotoAnything.actions.themeSystem": "Sistem tema",
"gotoAnything.actions.themeSystemDesc": "Sledite videzu svojega operacijskega sistema",
- "gotoAnything.activate": "Izberi",
- "gotoAnything.allCommands": "Prikaži vse ukaze",
+ "gotoAnything.contextTokenHint": "Ko je polje prazno, Backspace odstrani trenutni filter ali stran.",
"gotoAnything.emptyState.noAppsFound": "Ni bilo najdenih aplikacij",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Zbirk znanja ni mogoče najti",
"gotoAnything.emptyState.noPluginsFound": "Integracijaov ni mogoče najti",
"gotoAnything.emptyState.noWorkflowNodesFound": "Vozlišča poteka dela niso bila najdena",
"gotoAnything.emptyState.tryDifferentTerm": "Poskusite z drugim iskalnim izrazom",
- "gotoAnything.emptyState.trySpecificSearch": "Poskusite {{shortcuts}} za specifična iskanja",
"gotoAnything.groups.apps": "Aplikacije",
"gotoAnything.groups.commands": "Ukazi",
"gotoAnything.groups.knowledgeBases": "Baze znanja",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} rezultat",
"gotoAnything.resultCount_other": "{{count}} rezultatov",
"gotoAnything.searchFailed": "Iskanje ni uspelo",
- "gotoAnything.searchHint": "Poiščite vire ali dejanja. Vnesite / za ukaze ali @ za omejitev iskanja. S puščicami izberite element in ga odprite s tipko Enter.",
+ "gotoAnything.searchHint": "Poiščite vire ali dejanja. S puščicami izberite element in ga odprite s tipko Enter.",
+ "gotoAnything.searchInScopePlaceholder": "Iskanje v: {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Poiščite vire ali dejanja ali vnesite @ za filtriranje po vrsti…",
"gotoAnything.searchPlaceholder": "Poišči vire ali dejanja…",
"gotoAnything.searchTemporarilyUnavailable": "Iskanje začasno ni na voljo",
"gotoAnything.searchTitle": "Poiščite karkoli",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Izberite, kaj želite iskati",
"gotoAnything.servicesUnavailableMessage": "Pri nekaterih iskalnih storitvah se morda pojavljajo težave. Poskusite znova čez trenutek.",
"gotoAnything.someServicesUnavailable": "Nekatere iskalne storitve niso na voljo",
- "gotoAnything.tryDifferentSearch": "Poskusite uporabiti drug iskalni izraz",
"iconPicker.cancel": "Prekliči",
"iconPicker.chooseStyle": "Izberi slog",
"iconPicker.clearSearch": "Počisti iskanje",
diff --git a/web/i18n/locales/th-TH/app.json b/web/i18n/locales/th-TH/app.json
index 2a10b9be921..8f473b51a3a 100644
--- a/web/i18n/locales/th-TH/app.json
+++ b/web/i18n/locales/th-TH/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "อธิบายการเปลี่ยนแปลงที่จะนำไปใช้กับร่างปัจจุบัน",
"gotoAnything.actions.refineTitle": "ปรับแต่งกราฟปัจจุบัน",
"gotoAnything.actions.searchApplications": "ค้นหาแอปพลิเคชัน",
- "gotoAnything.actions.searchApplicationsDesc": "ค้นหาแอป",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "ค้นหาฐานความรู้",
- "gotoAnything.actions.searchPluginsDesc": "ค้นหาการเชื่อมต่อ",
- "gotoAnything.actions.searchWorkflowNodesDesc": "ค้นหาโหนดเวิร์กโฟลว์",
"gotoAnything.actions.slashDesc": "ใช้คำสั่งเช่น /theme, /lang",
"gotoAnything.actions.slashTitle": "คำสั่ง",
"gotoAnything.actions.themeCategoryDesc": "เปลี่ยนธีม",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "ใช้รูปลักษณ์ที่มีความสว่าง",
"gotoAnything.actions.themeSystem": "ธีมระบบ",
"gotoAnything.actions.themeSystemDesc": "ติดตามรูปลักษณ์ของระบบปฏิบัติการของคุณ",
- "gotoAnything.activate": "เลือก",
- "gotoAnything.allCommands": "ดูคำสั่งทั้งหมด",
+ "gotoAnything.contextTokenHint": "เมื่อช่องว่างอยู่ กด Backspace เพื่อเอาตัวกรองหรือหน้าปัจจุบันออก",
"gotoAnything.emptyState.noAppsFound": "ไม่พบแอป",
"gotoAnything.emptyState.noKnowledgeBasesFound": "ไม่พบฐานความรู้",
"gotoAnything.emptyState.noPluginsFound": "ไม่พบการผสานรวม",
"gotoAnything.emptyState.noWorkflowNodesFound": "ไม่พบโหนดเวิร์กโฟลว์",
"gotoAnything.emptyState.tryDifferentTerm": "ลองใช้คำค้นหาที่แตกต่างออกไป",
- "gotoAnything.emptyState.trySpecificSearch": "ลองใช้ {{shortcuts}} สำหรับการค้นหาเฉพาะ",
"gotoAnything.groups.apps": "แอปพลิเคชัน",
"gotoAnything.groups.commands": "คำสั่ง",
"gotoAnything.groups.knowledgeBases": "ฐานความรู้",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} ผลลัพธ์",
"gotoAnything.resultCount_other": "{{count}} ผลลัพธ์",
"gotoAnything.searchFailed": "การค้นหาล้มเหลว",
- "gotoAnything.searchHint": "ค้นหาทรัพยากรหรือการดำเนินการ พิมพ์ / เพื่อดูคำสั่ง หรือ @ เพื่อจำกัดขอบเขตการค้นหา ใช้ปุ่มลูกศรเพื่อเลือกรายการและกด Enter เพื่อเปิด",
+ "gotoAnything.searchHint": "ค้นหาทรัพยากรหรือการดำเนินการ ใช้ปุ่มลูกศรเพื่อเลือกรายการและกด Enter เพื่อเปิด",
+ "gotoAnything.searchInScopePlaceholder": "ค้นหาใน{{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "ค้นหาทรัพยากรหรือการดำเนินการ พิมพ์ @ เพื่อกรองตามประเภท…",
"gotoAnything.searchPlaceholder": "ค้นหาทรัพยากรหรือการดำเนินการ…",
"gotoAnything.searchTemporarilyUnavailable": "การค้นหาไม่พร้อมใช้งานชั่วคราว",
"gotoAnything.searchTitle": "ค้นหาอะไรก็ได้",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "เลือกสิ่งที่จะค้นหา",
"gotoAnything.servicesUnavailableMessage": "บริการค้นหาบางบริการอาจประสบปัญหา ลองอีกครั้งในอีกสักครู่",
"gotoAnything.someServicesUnavailable": "บริการค้นหาบางบริการไม่พร้อมใช้งาน",
- "gotoAnything.tryDifferentSearch": "ลองใช้ข้อความค้นหาอื่น",
"iconPicker.cancel": "ยกเลิก",
"iconPicker.chooseStyle": "เลือกรูปแบบ",
"iconPicker.clearSearch": "ล้างการค้นหา",
diff --git a/web/i18n/locales/tr-TR/app.json b/web/i18n/locales/tr-TR/app.json
index 5abb807453b..e9e4842a867 100644
--- a/web/i18n/locales/tr-TR/app.json
+++ b/web/i18n/locales/tr-TR/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Mevcut taslağa uygulanacak bir değişikliği açıklayın",
"gotoAnything.actions.refineTitle": "Mevcut grafiği hassaslaştır",
"gotoAnything.actions.searchApplications": "Uygulamaları Ara",
- "gotoAnything.actions.searchApplicationsDesc": "Uygulama ara",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Bilgi tabanı ara",
- "gotoAnything.actions.searchPluginsDesc": "Entegrasyon ara",
- "gotoAnything.actions.searchWorkflowNodesDesc": "İş akışı düğümü ara",
"gotoAnything.actions.slashDesc": "/tema, /dil gibi komutları çalıştırın",
"gotoAnything.actions.slashTitle": "Komutlar",
"gotoAnything.actions.themeCategoryDesc": "Temayı değiştir",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Aydınlık görünüm kullan",
"gotoAnything.actions.themeSystem": "Sistem Teması",
"gotoAnything.actions.themeSystemDesc": "İşletim sisteminizin görünümünü takip edin",
- "gotoAnything.activate": "Seç",
- "gotoAnything.allCommands": "Tüm komutları görüntüle",
+ "gotoAnything.contextTokenHint": "Alan boşken Backspace geçerli filtreyi veya sayfayı kaldırır.",
"gotoAnything.emptyState.noAppsFound": "Uygulama bulunamadı",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Bilgi bankası bulunamadı",
"gotoAnything.emptyState.noPluginsFound": "Entegrasyon bulunamadı",
"gotoAnything.emptyState.noWorkflowNodesFound": "İş akışı düğümü bulunamadı",
"gotoAnything.emptyState.tryDifferentTerm": "Farklı bir arama terimi deneyin",
- "gotoAnything.emptyState.trySpecificSearch": "Belirli aramalar için {{shortcuts}} deneyin",
"gotoAnything.groups.apps": "Uygulamalar",
"gotoAnything.groups.commands": "Komutlar",
"gotoAnything.groups.knowledgeBases": "Bilgi Tabanları",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} sonuç",
"gotoAnything.resultCount_other": "{{count}} sonuç",
"gotoAnything.searchFailed": "Arama başarısız oldu",
- "gotoAnything.searchHint": "Kaynak veya işlem arayın. Komutlar için /, aramayı daraltmak için @ yazın. Ok tuşlarıyla bir öğe seçin ve Enter ile açın.",
+ "gotoAnything.searchHint": "Kaynak veya işlem arayın. Ok tuşlarıyla bir öğe seçin ve Enter ile açın.",
+ "gotoAnything.searchInScopePlaceholder": "{{scope}} içinde ara…",
+ "gotoAnything.searchOrFilterPlaceholder": "Kaynak veya işlem arayın, türe göre filtrelemek için @ yazın…",
"gotoAnything.searchPlaceholder": "Kaynak veya işlem ara…",
"gotoAnything.searchTemporarilyUnavailable": "Arama geçici olarak kullanılamıyor",
"gotoAnything.searchTitle": "Her şeyi arayın",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Ne arayacağınızı seçin",
"gotoAnything.servicesUnavailableMessage": "Bazı arama hizmetlerinde sorunlar yaşanıyor olabilir. Kısa bir süre sonra tekrar deneyin.",
"gotoAnything.someServicesUnavailable": "Bazı arama hizmetleri kullanılamıyor",
- "gotoAnything.tryDifferentSearch": "Farklı bir arama terimi deneyin",
"iconPicker.cancel": "İptal",
"iconPicker.chooseStyle": "Stil seç",
"iconPicker.clearSearch": "Aramayı temizle",
diff --git a/web/i18n/locales/uk-UA/app.json b/web/i18n/locales/uk-UA/app.json
index 7bde74f4bb1..c3163d3acd0 100644
--- a/web/i18n/locales/uk-UA/app.json
+++ b/web/i18n/locales/uk-UA/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Опишіть зміну, яку слід застосувати до поточної чернетки",
"gotoAnything.actions.refineTitle": "Уточнити поточний графік",
"gotoAnything.actions.searchApplications": "Пошук додатків",
- "gotoAnything.actions.searchApplicationsDesc": "Пошук застосунків",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Пошук баз знань",
- "gotoAnything.actions.searchPluginsDesc": "Пошук інтеграцій",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Пошук вузлів процесу",
"gotoAnything.actions.slashDesc": "Виконуйте команди, такі як /theme, /lang",
"gotoAnything.actions.slashTitle": "Команди",
"gotoAnything.actions.themeCategoryDesc": "Змінити тему",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Використовуйте світлий вигляд",
"gotoAnything.actions.themeSystem": "Системна тема",
"gotoAnything.actions.themeSystemDesc": "Дотримуйтесь зовнішнього вигляду вашої операційної системи",
- "gotoAnything.activate": "Вибрати",
- "gotoAnything.allCommands": "Показати всі команди",
+ "gotoAnything.contextTokenHint": "Якщо поле порожнє, Backspace знімає поточний фільтр або закриває сторінку.",
"gotoAnything.emptyState.noAppsFound": "Не знайдено додатків",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Баз знань не знайдено",
"gotoAnything.emptyState.noPluginsFound": "Інтеграціяів не знайдено",
"gotoAnything.emptyState.noWorkflowNodesFound": "Вузли бізнес-процесу не знайдено",
"gotoAnything.emptyState.tryDifferentTerm": "Спробуйте інший пошуковий термін",
- "gotoAnything.emptyState.trySpecificSearch": "Спробуйте {{shortcuts}} для конкретного пошуку",
"gotoAnything.groups.apps": "Програми",
"gotoAnything.groups.commands": "Команди",
"gotoAnything.groups.knowledgeBases": "Бази знань",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} результат",
"gotoAnything.resultCount_other": "{{count}} результатів",
"gotoAnything.searchFailed": "Пошук не вдався",
- "gotoAnything.searchHint": "Шукайте ресурси або дії. Введіть / для перегляду команд або @ для звуження пошуку. Виберіть елемент стрілками та натисніть Enter, щоб відкрити його.",
+ "gotoAnything.searchHint": "Шукайте ресурси або дії. Виберіть елемент стрілками та натисніть Enter, щоб відкрити його.",
+ "gotoAnything.searchInScopePlaceholder": "Пошук: {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Шукайте ресурси або дії, введіть @ для фільтра за типом…",
"gotoAnything.searchPlaceholder": "Пошук ресурсів або дій…",
"gotoAnything.searchTemporarilyUnavailable": "Пошук тимчасово недоступний",
"gotoAnything.searchTitle": "Шукайте що завгодно",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Виберіть, що шукати",
"gotoAnything.servicesUnavailableMessage": "У деяких пошукових службах можуть виникати проблеми. Повторіть спробу за мить.",
"gotoAnything.someServicesUnavailable": "Деякі пошукові сервіси недоступні",
- "gotoAnything.tryDifferentSearch": "Спробуйте інший пошуковий термін",
"iconPicker.cancel": "Скасувати",
"iconPicker.chooseStyle": "Вибрати стиль",
"iconPicker.clearSearch": "Очистити пошук",
diff --git a/web/i18n/locales/vi-VN/app.json b/web/i18n/locales/vi-VN/app.json
index 172f56f35e4..3dc8ac1ad14 100644
--- a/web/i18n/locales/vi-VN/app.json
+++ b/web/i18n/locales/vi-VN/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "Mô tả một thay đổi để áp dụng cho dự thảo hiện tại",
"gotoAnything.actions.refineTitle": "Tinh chỉnh biểu đồ hiện tại",
"gotoAnything.actions.searchApplications": "Tìm kiếm ứng dụng",
- "gotoAnything.actions.searchApplicationsDesc": "Tìm ứng dụng",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "Tìm cơ sở tri thức",
- "gotoAnything.actions.searchPluginsDesc": "Tìm tích hợp",
- "gotoAnything.actions.searchWorkflowNodesDesc": "Tìm nút quy trình",
"gotoAnything.actions.slashDesc": "Thực hiện các lệnh như /theme, /lang",
"gotoAnything.actions.slashTitle": "Lệnh",
"gotoAnything.actions.themeCategoryDesc": "Đổi giao diện",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "Sử dụng giao diện sáng",
"gotoAnything.actions.themeSystem": "Chủ đề hệ thống",
"gotoAnything.actions.themeSystemDesc": "Theo giao diện của hệ điều hành của bạn",
- "gotoAnything.activate": "Chọn",
- "gotoAnything.allCommands": "Xem tất cả lệnh",
+ "gotoAnything.contextTokenHint": "Khi ô trống, nhấn Backspace để bỏ bộ lọc hoặc trang hiện tại.",
"gotoAnything.emptyState.noAppsFound": "Không tìm thấy ứng dụng nào",
"gotoAnything.emptyState.noKnowledgeBasesFound": "Không tìm thấy cơ sở kiến thức",
"gotoAnything.emptyState.noPluginsFound": "Không tìm thấy tích hợp",
"gotoAnything.emptyState.noWorkflowNodesFound": "Không tìm thấy nút quy trình làm việc",
"gotoAnything.emptyState.tryDifferentTerm": "Thử từ khóa tìm kiếm khác",
- "gotoAnything.emptyState.trySpecificSearch": "Thử {{shortcuts}} để tìm kiếm cụ thể",
"gotoAnything.groups.apps": "Ứng dụng",
"gotoAnything.groups.commands": "Lệnh",
"gotoAnything.groups.knowledgeBases": "Cơ sở kiến thức",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} kết quả",
"gotoAnything.resultCount_other": "{{count}} kết quả",
"gotoAnything.searchFailed": "Tìm kiếm không thành công",
- "gotoAnything.searchHint": "Tìm tài nguyên hoặc thao tác. Nhập / để xem lệnh hoặc @ để thu hẹp tìm kiếm. Dùng phím mũi tên để chọn mục và Enter để mở.",
+ "gotoAnything.searchHint": "Tìm tài nguyên hoặc thao tác. Dùng phím mũi tên để chọn mục và Enter để mở.",
+ "gotoAnything.searchInScopePlaceholder": "Tìm trong {{scope}}…",
+ "gotoAnything.searchOrFilterPlaceholder": "Tìm tài nguyên hoặc thao tác, nhập @ để lọc theo loại…",
"gotoAnything.searchPlaceholder": "Tìm tài nguyên hoặc thao tác…",
"gotoAnything.searchTemporarilyUnavailable": "Tìm kiếm tạm thời không khả dụng",
"gotoAnything.searchTitle": "Tìm kiếm bất cứ thứ gì",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "Chọn nội dung để tìm kiếm",
"gotoAnything.servicesUnavailableMessage": "Một số dịch vụ tìm kiếm có thể gặp sự cố. Thử lại trong giây lát.",
"gotoAnything.someServicesUnavailable": "Một số dịch vụ tìm kiếm không khả dụng",
- "gotoAnything.tryDifferentSearch": "Thử một cụm từ tìm kiếm khác",
"iconPicker.cancel": "Hủy",
"iconPicker.chooseStyle": "Chọn kiểu",
"iconPicker.clearSearch": "Xóa tìm kiếm",
diff --git a/web/i18n/locales/zh-Hans/app.json b/web/i18n/locales/zh-Hans/app.json
index 07e567b9fd3..2cf339aaea6 100644
--- a/web/i18n/locales/zh-Hans/app.json
+++ b/web/i18n/locales/zh-Hans/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "描述要应用到当前草稿的修改",
"gotoAnything.actions.refineTitle": "优化当前图",
"gotoAnything.actions.searchApplications": "搜索应用程序",
- "gotoAnything.actions.searchApplicationsDesc": "搜索应用",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "搜索知识库",
- "gotoAnything.actions.searchPluginsDesc": "搜索集成",
- "gotoAnything.actions.searchWorkflowNodesDesc": "搜索工作流节点",
"gotoAnything.actions.slashDesc": "执行命令(输入 / 查看所有可用命令)",
"gotoAnything.actions.slashTitle": "命令",
"gotoAnything.actions.themeCategoryDesc": "切换主题",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "使用浅色外观",
"gotoAnything.actions.themeSystem": "系统主题",
"gotoAnything.actions.themeSystemDesc": "跟随系统外观",
- "gotoAnything.activate": "选择",
- "gotoAnything.allCommands": "查看全部命令",
+ "gotoAnything.contextTokenHint": "输入框为空时,按 Backspace 移除当前筛选或返回上一层。",
"gotoAnything.emptyState.noAppsFound": "未找到应用",
"gotoAnything.emptyState.noKnowledgeBasesFound": "未找到知识库",
"gotoAnything.emptyState.noPluginsFound": "未找到集成",
"gotoAnything.emptyState.noWorkflowNodesFound": "未找到工作流节点",
"gotoAnything.emptyState.tryDifferentTerm": "尝试不同的搜索词",
- "gotoAnything.emptyState.trySpecificSearch": "尝试使用 {{shortcuts}} 进行特定搜索",
"gotoAnything.groups.apps": "应用程序",
"gotoAnything.groups.commands": "命令",
"gotoAnything.groups.knowledgeBases": "知识库",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} 个结果",
"gotoAnything.resultCount_other": "{{count}} 个结果",
"gotoAnything.searchFailed": "搜索失败",
- "gotoAnything.searchHint": "搜索资源或操作。输入 / 查看命令,输入 @ 限定搜索范围。 使用方向键选择,按 Enter 打开选中项。",
+ "gotoAnything.searchHint": "搜索资源或操作。使用方向键选择,按 Enter 打开选中项。",
+ "gotoAnything.searchInScopePlaceholder": "在{{scope}}中搜索…",
+ "gotoAnything.searchOrFilterPlaceholder": "搜索资源或操作,输入 @ 按类型筛选…",
"gotoAnything.searchPlaceholder": "搜索资源或操作…",
"gotoAnything.searchTemporarilyUnavailable": "搜索暂时不可用",
"gotoAnything.searchTitle": "搜索任何内容",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "选择搜索内容",
"gotoAnything.servicesUnavailableMessage": "某些搜索服务可能遇到问题,请稍后再试。",
"gotoAnything.someServicesUnavailable": "某些搜索服务不可用",
- "gotoAnything.tryDifferentSearch": "请尝试不同的搜索词",
"iconPicker.cancel": "取消",
"iconPicker.chooseStyle": "选择样式",
"iconPicker.clearSearch": "清空搜索",
diff --git a/web/i18n/locales/zh-Hant/app.json b/web/i18n/locales/zh-Hant/app.json
index 28097cb7f64..84e8e694b15 100644
--- a/web/i18n/locales/zh-Hant/app.json
+++ b/web/i18n/locales/zh-Hant/app.json
@@ -68,10 +68,6 @@
"gotoAnything.actions.refineDesc": "描述適用於當前草案的更改",
"gotoAnything.actions.refineTitle": "細化當前圖表",
"gotoAnything.actions.searchApplications": "搜索應用程式",
- "gotoAnything.actions.searchApplicationsDesc": "搜尋應用程式",
- "gotoAnything.actions.searchKnowledgeBasesDesc": "搜尋知識庫",
- "gotoAnything.actions.searchPluginsDesc": "搜尋整合",
- "gotoAnything.actions.searchWorkflowNodesDesc": "搜尋工作流程節點",
"gotoAnything.actions.slashDesc": "執行命令如 /theme, /lang",
"gotoAnything.actions.slashTitle": "指令",
"gotoAnything.actions.themeCategoryDesc": "切換主題",
@@ -81,14 +77,12 @@
"gotoAnything.actions.themeLightDesc": "使用輕盈的外觀",
"gotoAnything.actions.themeSystem": "系統主題",
"gotoAnything.actions.themeSystemDesc": "遵循你的操作系統外觀",
- "gotoAnything.activate": "選擇",
- "gotoAnything.allCommands": "查看所有命令",
+ "gotoAnything.contextTokenHint": "輸入框為空時,按 Backspace 移除目前篩選或返回上一層。",
"gotoAnything.emptyState.noAppsFound": "未找到應用",
"gotoAnything.emptyState.noKnowledgeBasesFound": "未找到知識庫",
"gotoAnything.emptyState.noPluginsFound": "未找到集成",
"gotoAnything.emptyState.noWorkflowNodesFound": "未找到工作流節點",
"gotoAnything.emptyState.tryDifferentTerm": "嘗試不同的搜索詞",
- "gotoAnything.emptyState.trySpecificSearch": "嘗試使用 {{shortcuts}} 進行特定搜索",
"gotoAnything.groups.apps": "應用程式",
"gotoAnything.groups.commands": "指令",
"gotoAnything.groups.knowledgeBases": "知識庫",
@@ -100,7 +94,9 @@
"gotoAnything.resultCount": "{{count}} 個結果",
"gotoAnything.resultCount_other": "{{count}} 個結果",
"gotoAnything.searchFailed": "搜索失敗",
- "gotoAnything.searchHint": "搜尋資源或操作。輸入 / 查看命令,輸入 @ 限定搜尋範圍。 使用方向鍵選擇,按 Enter 開啟選取的項目。",
+ "gotoAnything.searchHint": "搜尋資源或操作。使用方向鍵選擇,按 Enter 開啟選取的項目。",
+ "gotoAnything.searchInScopePlaceholder": "在{{scope}}中搜尋…",
+ "gotoAnything.searchOrFilterPlaceholder": "搜尋資源或操作,輸入 @ 依類型篩選…",
"gotoAnything.searchPlaceholder": "搜尋資源或操作…",
"gotoAnything.searchTemporarilyUnavailable": "搜索暫時不可用",
"gotoAnything.searchTitle": "搜索任何內容",
@@ -108,7 +104,6 @@
"gotoAnything.selectSearchType": "選擇要搜索的內容",
"gotoAnything.servicesUnavailableMessage": "某些搜索服務可能遇到問題。稍後再試一次。",
"gotoAnything.someServicesUnavailable": "某些搜索服務不可用",
- "gotoAnything.tryDifferentSearch": "嘗試其他搜尋字詞",
"iconPicker.cancel": "取消",
"iconPicker.chooseStyle": "選擇樣式",
"iconPicker.clearSearch": "清除搜尋",
diff --git a/web/i18n/resources.generated.d.ts b/web/i18n/resources.generated.d.ts
index 32ed243cec1..43f3c551473 100644
--- a/web/i18n/resources.generated.d.ts
+++ b/web/i18n/resources.generated.d.ts
@@ -608,10 +608,6 @@ export default interface Resources {
'gotoAnything.actions.refineDesc': 'Describe a change to apply to the current draft'
'gotoAnything.actions.refineTitle': 'Refine current graph'
'gotoAnything.actions.searchApplications': 'Search Applications'
- 'gotoAnything.actions.searchApplicationsDesc': 'Search apps'
- 'gotoAnything.actions.searchKnowledgeBasesDesc': 'Search knowledge bases'
- 'gotoAnything.actions.searchPluginsDesc': 'Search integrations'
- 'gotoAnything.actions.searchWorkflowNodesDesc': 'Search workflow nodes'
'gotoAnything.actions.slashDesc': 'Execute commands (type / to see all available commands)'
'gotoAnything.actions.slashTitle': 'Commands'
'gotoAnything.actions.themeCategoryDesc': 'Switch theme'
@@ -621,14 +617,12 @@ export default interface Resources {
'gotoAnything.actions.themeLightDesc': 'Use light appearance'
'gotoAnything.actions.themeSystem': 'System Theme'
'gotoAnything.actions.themeSystemDesc': 'Follow your OS appearance'
- 'gotoAnything.activate': 'Select'
- 'gotoAnything.allCommands': 'View all commands'
+ 'gotoAnything.contextTokenHint': 'In an empty field, Backspace removes the current filter or page.'
'gotoAnything.emptyState.noAppsFound': 'No apps found'
'gotoAnything.emptyState.noKnowledgeBasesFound': 'No knowledge bases found'
'gotoAnything.emptyState.noPluginsFound': 'No integrations found'
'gotoAnything.emptyState.noWorkflowNodesFound': 'No workflow nodes found'
'gotoAnything.emptyState.tryDifferentTerm': 'Try a different search term'
- 'gotoAnything.emptyState.trySpecificSearch': 'Try {{shortcuts}} for specific searches'
'gotoAnything.groups.apps': 'Apps'
'gotoAnything.groups.commands': 'Commands'
'gotoAnything.groups.knowledgeBases': 'Knowledge Bases'
@@ -639,7 +633,9 @@ export default interface Resources {
'gotoAnything.quickAction': 'Quick action'
'gotoAnything.resultCount': '{{count}} result' | '{{count}} results'
'gotoAnything.searchFailed': 'Search failed'
- 'gotoAnything.searchHint': 'Search resources or actions. Type / for commands or @ to narrow your search. Use arrow keys to choose an item and Enter to open it.'
+ 'gotoAnything.searchHint': 'Search resources or actions. Use arrow keys to choose an item and Enter to open it.'
+ 'gotoAnything.searchInScopePlaceholder': 'Search {{scope}}…'
+ 'gotoAnything.searchOrFilterPlaceholder': 'Search resources or actions, or type @ to filter…'
'gotoAnything.searchPlaceholder': 'Search resources or actions…'
'gotoAnything.searchTemporarilyUnavailable': 'Search temporarily unavailable'
'gotoAnything.searchTitle': 'Search for anything'
@@ -647,7 +643,6 @@ export default interface Resources {
'gotoAnything.selectSearchType': 'Choose what to search for'
'gotoAnything.servicesUnavailableMessage': 'Some search services may be experiencing issues. Try again in a moment.'
'gotoAnything.someServicesUnavailable': 'Some search services unavailable'
- 'gotoAnything.tryDifferentSearch': 'Try a different search term'
'iconPicker.cancel': 'Cancel'
'iconPicker.chooseStyle': 'Choose Style'
'iconPicker.clearSearch': 'Clear search'