$.deleteAppConfirmInputPlaceholder, { ns: 'app' })}
- value={confirmDeleteInput}
- onValueChange={setConfirmDeleteInput}
- className="border-components-input-border-hover bg-components-input-bg-normal focus:border-components-input-border-active focus:bg-components-input-bg-active"
- />
+
+ $.deleteAppConfirmInputPlaceholder, { ns: 'app' })}
+ value={confirmDeleteInput}
+ onValueChange={setConfirmDeleteInput}
+ className="border-components-input-border-hover bg-components-input-bg-normal pr-20 focus:border-components-input-border-active focus:bg-components-input-bg-active"
+ />
+
+
diff --git a/web/app/components/goto-anything/__tests__/index.spec.tsx b/web/app/components/goto-anything/__tests__/index.spec.tsx
index 55258a96cb5..573795cabbd 100644
--- a/web/app/components/goto-anything/__tests__/index.spec.tsx
+++ b/web/app/components/goto-anything/__tests__/index.spec.tsx
@@ -443,6 +443,23 @@ describe('GotoAnything', () => {
expect(input).toHaveValue('test query')
})
+ it('should show the localized description for the knowledge scope', async () => {
+ const user = userEvent.setup()
+ renderGotoAnything()
+ triggerSearchShortcut()
+ const input = await screen.findByRole('combobox', {
+ name: 'app.gotoAnything.searchTitle',
+ })
+
+ await user.type(input, '@')
+
+ expect(
+ screen.getByRole('option', {
+ name: /@kb app\.gotoAnything\.actions\.searchKnowledgeBasesDesc/,
+ }),
+ ).toBeInTheDocument()
+ })
+
it('should not search providers with a stale scope prefix', async () => {
const user = userEvent.setup()
matchActionMock.mockImplementation((query: string) =>
diff --git a/web/app/components/goto-anything/index.tsx b/web/app/components/goto-anything/index.tsx
index d8284805fea..9d233a81f11 100644
--- a/web/app/components/goto-anything/index.tsx
+++ b/web/app/components/goto-anything/index.tsx
@@ -79,7 +79,7 @@ const slashCommandDescriptionKeys = {
const actionDescriptionKeys = {
'@app': 'gotoAnything.actions.searchApplicationsDesc',
'@plugin': 'gotoAnything.actions.searchPluginsDesc',
- '@knowledge': 'gotoAnything.actions.searchKnowledgeBasesDesc',
+ '@kb': 'gotoAnything.actions.searchKnowledgeBasesDesc',
'@node': 'gotoAnything.actions.searchWorkflowNodesDesc',
} as const