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.

chore(web): remove unreachable explore sidebar (#40136)

yyha95248778947
diff --git a/web/app/(commonLayout)/explore/apps/page.tsx b/web/app/(commonLayout)/explore/apps/page.tsx
deleted file mode 100644
index cd6065fda34..00000000000
--- a/web/app/(commonLayout)/explore/apps/page.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { redirect } from '@/next/navigation'
-
-type AppsPageProps = {
- searchParams: Promise<Record<string, string | string[] | undefined>>
-}
-
-const Apps = async ({ searchParams }: AppsPageProps) => {
- const resolvedSearchParams = await searchParams
- const urlSearchParams = new URLSearchParams()
- Object.entries(resolvedSearchParams).forEach(([key, value]) => {
- if (value === undefined) return
- if (Array.isArray(value)) {
- value.forEach((item) => urlSearchParams.append(key, item))
- return
- }
- urlSearchParams.set(key, value)
- })
- const queryString = urlSearchParams.toString()
- redirect(queryString ? `/?${queryString}` : '/')
-}
-
-export default Apps
diff --git a/web/app/(commonLayout)/explore/layout.tsx b/web/app/(commonLayout)/explore/layout.tsx
deleted file mode 100644
index 1e0a619c734..00000000000
--- a/web/app/(commonLayout)/explore/layout.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-'use client'
-import type { FC, PropsWithChildren } from 'react'
-import * as React from 'react'
-import { useTranslation } from 'react-i18next'
-import ExploreClient from '@/app/components/explore'
-import useDocumentTitle from '@/hooks/use-document-title'
-
-const ExploreLayout: FC<PropsWithChildren> = ({ children }) => {
- const { t } = useTranslation()
- useDocumentTitle(t(($) => $['menus.explore'], { ns: 'common' }))
- return <ExploreClient>{children}</ExploreClient>
-}
-
-export default React.memo(ExploreLayout)
diff --git a/web/app/components/explore/__tests__/index.spec.tsx b/web/app/components/explore/__tests__/index.spec.tsx
deleted file mode 100644
index e3f9567c56f..00000000000
--- a/web/app/components/explore/__tests__/index.spec.tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-import { render, screen } from '@testing-library/react'
-import { MediaType } from '@/hooks/use-breakpoints'
-import Explore from '../index'
-
-type MediaTypeValue = (typeof MediaType)[keyof typeof MediaType]
-
-let mockMediaType: MediaTypeValue = MediaType.pc
-
-vi.mock('@/hooks/use-breakpoints', () => ({
- default: () => mockMediaType,
- MediaType: {
- mobile: 'mobile',
- tablet: 'tablet',
- pc: 'pc',
- },
-}))
-
-vi.mock('@/app/components/explore/sidebar', () => ({
- default: () => <aside aria-label="explore.sidebar.title" />,
-}))
-
-describe('Explore', () => {
- beforeEach(() => {
- mockMediaType = MediaType.pc
- })
-
- describe('Rendering', () => {
- it('should render children', () => {
- render(
- <Explore>
- <div>child</div>
- </Explore>,
- )
-
- expect(screen.getByText('child')).toBeInTheDocument()
- })
-
- it('should not render the legacy explore sidebar on desktop', () => {
- render(
- <Explore>
- <div>child</div>
- </Explore>,
- )
-
- expect(
- screen.queryByRole('complementary', { name: 'explore.sidebar.title' }),
- ).not.toBeInTheDocument()
- })
-
- it('should keep the legacy explore sidebar on mobile', () => {
- mockMediaType = MediaType.mobile
-
- render(
- <Explore>
- <div>child</div>
- </Explore>,
- )
-
- expect(
- screen.getByRole('complementary', { name: 'explore.sidebar.title' }),
- ).toBeInTheDocument()
- })
- })
-})
diff --git a/web/app/components/explore/index.tsx b/web/app/components/explore/index.tsx
deleted file mode 100644
index 8d786c839df..00000000000
--- a/web/app/components/explore/index.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-'use client'
-import * as React from 'react'
-import Sidebar from '@/app/components/explore/sidebar'
-import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
-
-const Explore = ({ children }: { children: React.ReactNode }) => {
- const media = useBreakpoints()
- const isMobile = media === MediaType.mobile
-
- return (
- <div className="flex h-full overflow-hidden border-t border-divider-regular bg-background-body">
- {isMobile && <Sidebar />}
- <div className="h-full min-h-0 w-0 grow">{children}</div>
- </div>
- )
-}
-export default React.memo(Explore)
diff --git a/web/app/components/explore/installed-app-navigation/__tests__/app-nav-item.spec.tsx b/web/app/components/explore/installed-app-navigation/__tests__/app-nav-item.spec.tsx
index d9b54695c25..cb916c521cd 100644
--- a/web/app/components/explore/installed-app-navigation/__tests__/app-nav-item.spec.tsx
+++ b/web/app/components/explore/installed-app-navigation/__tests__/app-nav-item.spec.tsx
@@ -22,6 +22,7 @@ vi.mock('@/next/link', () => ({
}))
const baseProps = {
+ ariaLabel: 'My App',
app: {
id: 'app-123',
app_owner_tenant_id: 'tenant-1',
@@ -69,11 +70,11 @@ describe('AppNavItem', () => {
expect(link).toHaveAttribute('href', '/installed/app-123')
expect(link).toHaveAttribute('aria-label', 'My App')
expect(link).not.toHaveAttribute('aria-current')
- expect(link).not.toHaveAttribute('data-prefetch')
+ expect(link).toHaveAttribute('data-prefetch', 'false')
})
it('should use a contextual accessible name when ariaLabel is provided', () => {
- render(<AppNavItem {...baseProps} variant="mainNav" ariaLabel="Open My App web app" />)
+ render(<AppNavItem {...baseProps} ariaLabel="Open My App web app" />)
const link = screen.getByRole('link', { name: 'Open My App web app' })
@@ -82,9 +83,9 @@ describe('AppNavItem', () => {
expect(screen.getByText('My App')).toBeInTheDocument()
})
- it('should enable prefetch after pointer intent when requested', async () => {
+ it('should enable prefetch after pointer intent', async () => {
const user = userEvent.setup()
- render(<AppNavItem {...baseProps} prefetchOnIntent />)
+ render(<AppNavItem {...baseProps} />)
const link = screen.getByRole('link', { name: 'My App' })
@@ -95,9 +96,9 @@ describe('AppNavItem', () => {
expect(link).toHaveAttribute('data-prefetch', 'auto')
})
- it('should enable prefetch after keyboard focus when requested', async () => {
+ it('should enable prefetch after keyboard focus', async () => {
const user = userEvent.setup()
- render(<AppNavItem {...baseProps} prefetchOnIntent />)
+ render(<AppNavItem {...baseProps} />)
const link = screen.getByRole('link', { name: 'My App' })
diff --git a/web/app/components/explore/installed-app-navigation/app-nav-item.tsx b/web/app/components/explore/installed-app-navigation/app-nav-item.tsx
index 393c5a9a867..34e52d07f4c 100644
--- a/web/app/components/explore/installed-app-navigation/app-nav-item.tsx
+++ b/web/app/components/explore/installed-app-navigation/app-nav-item.tsx
@@ -1,6 +1,5 @@
'use client'
import type { InstalledAppResponse } from '@dify/contracts/api/console/installed-apps/types.gen'
-import { cn } from '@langgenius/dify-ui/cn'
import { useState } from 'react'
import AppIcon from '@/app/components/base/app-icon'
import { buildInstalledAppPath } from '@/app/components/explore/installed-app/routes'
@@ -8,9 +7,7 @@ import ItemOperation from '@/app/components/explore/item-operation'
import Link from '@/next/link'
type IAppNavItemProps = {
- variant?: 'default' | 'mainNav'
- ariaLabel?: string
- prefetchOnIntent?: boolean
+ ariaLabel: string
app: InstalledAppResponse
isSelected: boolean
onTogglePin: (id: string, isPinned: boolean) => void
@@ -18,9 +15,7 @@ type IAppNavItemProps = {
}
export default function AppNavItem({
- variant = 'default',
ariaLabel,
- prefetchOnIntent = false,
app: installedApp,
isSelected,
onTogglePin,
@@ -34,58 +29,35 @@ export default function AppNavItem({
app: { name, icon_type, icon, icon_background, icon_url },
} = installedApp
const url = buildInstalledAppPath(id)
- const isMainNav = variant === 'mainNav'
return (
<div
key={id}
- className={cn(
- isMainNav
- ? 'group flex h-8 items-center justify-between gap-2 rounded-lg py-0.5 pr-0.5 pl-2 transition-colors not-has-[>a[aria-current=page]]:hover:bg-state-base-hover has-[>a:focus-visible]:inset-ring-2 has-[>a:focus-visible]:inset-ring-state-accent-solid has-[>a[aria-current=page]]:bg-state-base-active'
- : cn(
- 'group flex h-8 items-center rounded-lg system-sm-medium text-sm font-normal text-components-menu-item-text transition-colors not-has-[>a[aria-current=page]]:hover:bg-state-base-hover not-has-[>a[aria-current=page]]:hover:text-components-menu-item-text-hover has-[>a:focus-visible]:inset-ring-2 has-[>a:focus-visible]:inset-ring-state-accent-solid has-[>a[aria-current=page]]:bg-state-base-active has-[>a[aria-current=page]]:text-components-menu-item-text-active',
- 'w-full justify-start px-2 group-data-[folded=true]/sidebar:justify-center group-data-[folded=true]/sidebar:px-1',
- ),
- )}
+ className="group flex h-8 items-center justify-between gap-2 rounded-lg py-0.5 pr-0.5 pl-2 transition-colors not-has-[>a[aria-current=page]]:hover:bg-state-base-hover has-[>a:focus-visible]:inset-ring-2 has-[>a:focus-visible]:inset-ring-state-accent-solid has-[>a[aria-current=page]]:bg-state-base-active"
>
<Link
href={url}
- prefetch={prefetchOnIntent ? (isPrefetchEnabled ? null : false) : undefined}
- onMouseEnter={prefetchOnIntent ? () => setIsPrefetchEnabled(true) : undefined}
- onFocus={prefetchOnIntent ? () => setIsPrefetchEnabled(true) : undefined}
+ prefetch={isPrefetchEnabled ? null : false}
+ onMouseEnter={() => setIsPrefetchEnabled(true)}
+ onFocus={() => setIsPrefetchEnabled(true)}
aria-current={isSelected ? 'page' : undefined}
- aria-label={ariaLabel ?? name}
+ aria-label={ariaLabel}
title={name}
- className={cn(
- isMainNav
- ? 'flex min-w-0 flex-1 items-center gap-2 outline-hidden'
- : 'flex w-0 grow items-center space-x-2 outline-hidden group-data-[folded=true]/sidebar:w-auto group-data-[folded=true]/sidebar:justify-center group-data-[folded=true]/sidebar:space-x-0',
- )}
+ className="flex min-w-0 flex-1 items-center gap-2 outline-hidden"
>
<AppIcon
size="tiny"
- className={cn(isMainNav && 'size-5 rounded-md text-sm')}
+ className="size-5 rounded-md text-sm"
iconType={icon_type}
icon={icon ?? undefined}
background={icon_background}
imageUrl={icon_url}
/>
- <div
- className={cn(
- isMainNav
- ? 'min-w-0 flex-1 truncate py-1 pr-1 system-sm-regular'
- : 'truncate system-sm-regular text-components-menu-item-text group-data-[folded=true]/sidebar:hidden',
- )}
- title={name}
- >
+ <div className="min-w-0 flex-1 truncate py-1 pr-1 system-sm-regular" title={name}>
{name}
</div>
</Link>
- <div
- className={cn(
- isMainNav ? 'h-6 shrink-0' : 'h-6 shrink-0 group-data-[folded=true]/sidebar:hidden',
- )}
- >
+ <div className="h-6 shrink-0">
<ItemOperation
isPinned={isPinned}
togglePin={() => onTogglePin(id, !isPinned)}
diff --git a/web/app/components/explore/sidebar/__tests__/index.spec.tsx b/web/app/components/explore/sidebar/__tests__/index.spec.tsx
deleted file mode 100644
index 4f18f77f878..00000000000
--- a/web/app/components/explore/sidebar/__tests__/index.spec.tsx
+++ /dev/null
@@ -1,197 +0,0 @@
-import type { InstalledAppResponse } from '@dify/contracts/api/console/installed-apps/types.gen'
-import { act, screen, waitFor } from '@testing-library/react'
-import userEvent from '@testing-library/user-event'
-import { renderWithConsoleQuery } from '@/test/console/query-data'
-import SideBar from '../index'
-
-const mocks = vi.hoisted(() => ({
- fetchNextPage: vi.fn(),
- installedApps: [] as InstalledAppResponse[],
- hasNextPage: false,
- uninstall: vi.fn(),
- updatePinStatus: vi.fn(),
- toastSuccess: vi.fn(),
-}))
-
-let intersectionCallback: IntersectionObserverCallback | undefined
-
-vi.mock('@/next/navigation', () => ({
- usePathname: () => '/',
- useSelectedLayoutSegments: () => ['apps'],
-}))
-
-vi.mock('@/service/client', () => ({
- consoleQuery: {
- systemFeatures: {
- get: {
- queryKey: () => ['system-features'],
- queryOptions: () => ({
- queryKey: ['system-features'],
- queryFn: () => new Promise(() => {}),
- }),
- },
- },
- installedApps: {
- get: {
- infiniteOptions: (options: {
- getNextPageParam: (page: {
- has_more: boolean
- next_cursor: string | null
- }) => string | undefined
- initialPageParam: undefined
- input: (pageParam: string | undefined) => unknown
- select?: (data: unknown) => unknown
- }) => ({
- ...options,
- queryKey: ['installed-apps'],
- queryFn: async ({ pageParam }: { pageParam: string | undefined }) => {
- if (pageParam) mocks.fetchNextPage(pageParam)
- return {
- installed_apps: pageParam ? [] : mocks.installedApps,
- has_more: pageParam ? false : mocks.hasNextPage,
- next_cursor: pageParam || !mocks.hasNextPage ? null : 'next-page',
- }
- },
- }),
- },
- byInstalledAppId: {
- delete: {
- mutationOptions: () => ({
- mutationFn: (input: unknown) => mocks.uninstall(input),
- }),
- },
- patch: {
- mutationOptions: () => ({
- mutationFn: (input: unknown) => mocks.updatePinStatus(input),
- }),
- },
- },
- },
- },
-}))
-
-vi.mock('@langgenius/dify-ui/toast', async (importOriginal) => {
- const actual = await importOriginal<typeof import('@langgenius/dify-ui/toast')>()
- return {
- ...actual,
- toast: {
- ...actual.toast,
- success: mocks.toastSuccess,
- },
- }
-})
-
-const createInstalledApp = (
- overrides: Partial<InstalledAppResponse> = {},
-): InstalledAppResponse => ({
- id: overrides.id ?? 'installed-app-1',
- app_owner_tenant_id: overrides.app_owner_tenant_id ?? 'tenant-1',
- editable: overrides.editable ?? true,
- is_pinned: overrides.is_pinned ?? false,
- last_used_at: overrides.last_used_at ?? null,
- uninstallable: overrides.uninstallable ?? false,
- app: {
- id: overrides.app?.id ?? 'app-1',
- name: overrides.app?.name ?? 'My App',
- description: overrides.app?.description ?? 'Description',
- mode: overrides.app?.mode ?? 'chat',
- icon_type: overrides.app?.icon_type ?? 'emoji',
- icon: overrides.app?.icon ?? '🤖',
- icon_background: overrides.app?.icon_background ?? '#FFFFFF',
- icon_url: overrides.app?.icon_url ?? null,
- use_icon_as_answer_icon: overrides.app?.use_icon_as_answer_icon ?? false,
- },
-})
-
-const renderSideBar = () => renderWithConsoleQuery(<SideBar />)
-
-describe('SideBar', () => {
- beforeEach(() => {
- vi.clearAllMocks()
- mocks.installedApps = []
- mocks.hasNextPage = false
- mocks.uninstall.mockResolvedValue(undefined)
- mocks.updatePinStatus.mockResolvedValue({ result: 'success', message: 'updated' })
- intersectionCallback = undefined
- vi.stubGlobal(
- 'IntersectionObserver',
- class MockIntersectionObserver {
- constructor(callback: IntersectionObserverCallback, options?: IntersectionObserverInit) {
- if (options?.root) intersectionCallback = callback
- }
-
- observe() {}
- unobserve() {}
- disconnect() {}
- },
- )
- })
-
- it('renders the empty state after the installed-app query settles', async () => {
- renderSideBar()
-
- expect(await screen.findByText('explore.sidebar.noApps.title')).toBeInTheDocument()
- })
-
- it('renders installed apps and folds to icon-only navigation', async () => {
- const user = userEvent.setup()
- mocks.installedApps = [createInstalledApp()]
- renderSideBar()
-
- expect(await screen.findByRole('link', { name: 'My App' })).toBeInTheDocument()
- await user.click(screen.getByRole('button', { name: 'layout.sidebar.collapseSidebar' }))
-
- expect(screen.getByRole('button', { name: 'layout.sidebar.expandSidebar' })).toBeInTheDocument()
- expect(screen.getByRole('link', { name: 'My App' })).toBeInTheDocument()
- })
-
- it('automatically fetches the next page when the sentinel enters the scroll viewport', async () => {
- mocks.installedApps = [createInstalledApp()]
- mocks.hasNextPage = true
- renderSideBar()
- await screen.findByRole('region', { name: 'explore.sidebar.webApps' })
-
- expect(intersectionCallback).toBeDefined()
- act(() => {
- intersectionCallback?.(
- [{ isIntersecting: true } as IntersectionObserverEntry],
- {} as IntersectionObserver,
- )
- })
-
- await waitFor(() => expect(mocks.fetchNextPage).toHaveBeenCalledWith('next-page'))
- })
-
- it('uninstalls the selected app and closes the confirmation after success', async () => {
- const user = userEvent.setup()
- mocks.installedApps = [createInstalledApp()]
- renderSideBar()
-
- await user.click(await screen.findByRole('button', { name: 'common.operation.more' }))
- await user.click(await screen.findByText('explore.sidebar.action.delete'))
- await user.click(screen.getByText('common.operation.confirm'))
-
- await waitFor(() => {
- expect(mocks.uninstall).toHaveBeenCalledWith({
- params: { installed_app_id: 'installed-app-1' },
- })
- expect(mocks.toastSuccess).toHaveBeenCalledWith('common.api.remove')
- })
- })
-
- it('updates pin state through the generated mutation input', async () => {
- const user = userEvent.setup()
- mocks.installedApps = [createInstalledApp()]
- renderSideBar()
-
- await user.click(await screen.findByRole('button', { name: 'common.operation.more' }))
- await user.click(await screen.findByText('explore.sidebar.action.pin'))
-
- await waitFor(() =>
- expect(mocks.updatePinStatus).toHaveBeenCalledWith({
- params: { installed_app_id: 'installed-app-1' },
- body: { is_pinned: true },
- }),
- )
- })
-})
diff --git a/web/app/components/explore/sidebar/index.tsx b/web/app/components/explore/sidebar/index.tsx
deleted file mode 100644
index 60e6f7862a8..00000000000
--- a/web/app/components/explore/sidebar/index.tsx
+++ /dev/null
@@ -1,300 +0,0 @@
-'use client'
-import type {
- InstalledAppListResponse,
- InstalledAppResponse,
-} from '@dify/contracts/api/console/installed-apps/types.gen'
-import type { InfiniteData } from '@tanstack/react-query'
-import {
- AlertDialog,
- AlertDialogActions,
- AlertDialogCancelButton,
- AlertDialogConfirmButton,
- AlertDialogContent,
- AlertDialogDescription,
- AlertDialogTitle,
-} from '@langgenius/dify-ui/alert-dialog'
-import { cn } from '@langgenius/dify-ui/cn'
-import {
- ScrollArea,
- ScrollAreaContent,
- ScrollAreaScrollbar,
- ScrollAreaThumb,
- ScrollAreaViewport,
-} from '@langgenius/dify-ui/scroll-area'
-import { toast } from '@langgenius/dify-ui/toast'
-import { useInfiniteQuery, useMutation } from '@tanstack/react-query'
-import * as React from 'react'
-import { useState } from 'react'
-import { useTranslation } from 'react-i18next'
-import Divider from '@/app/components/base/divider'
-import AppNavItem from '@/app/components/explore/installed-app-navigation/app-nav-item'
-import { InfiniteScrollSentinel } from '@/app/components/explore/installed-app-navigation/infinite-scroll-sentinel'
-import { InstalledAppPaginationSkeleton } from '@/app/components/explore/installed-app-navigation/pagination-skeleton'
-import Link from '@/next/link'
-import { usePathname, useSelectedLayoutSegments } from '@/next/navigation'
-import { consoleQuery } from '@/service/client'
-import NoApps from './no-apps'
-
-const emptyInstalledApps: InstalledAppResponse[] = []
-
-const selectInstalledApps = (data: InfiniteData<InstalledAppListResponse, string | undefined>) =>
- data.pages.flatMap((page) => page.installed_apps)
-
-const SideBar = () => {
- const { t } = useTranslation()
- const pathname = usePathname()
- const scrollRef = React.useRef<HTMLDivElement>(null)
- const segments = useSelectedLayoutSegments()
- const lastSegment = segments.slice(-1)[0]
- const isDiscoverySelected = pathname === '/' || lastSegment === 'apps'
- const installedAppsQuery = useInfiniteQuery(
- consoleQuery.installedApps.get.infiniteOptions({
- input: (pageParam: string | undefined) => ({
- query: {
- limit: 20,
- ...(typeof pageParam === 'string' ? { cursor: pageParam } : {}),
- },
- }),
- getNextPageParam: (lastPage) =>
- lastPage.has_more && lastPage.next_cursor ? lastPage.next_cursor : undefined,
- initialPageParam: undefined,
- select: selectInstalledApps,
- }),
- )
- const installedApps = installedAppsQuery.data ?? emptyInstalledApps
- const uninstallAppMutation = useMutation(
- consoleQuery.installedApps.byInstalledAppId.delete.mutationOptions(),
- )
- const updatePinStatusMutation = useMutation(
- consoleQuery.installedApps.byInstalledAppId.patch.mutationOptions(),
- )
-
- const [isFold, setIsFold] = useState(false)
-
- const [uninstallDialogAppId, setUninstallDialogAppId] = useState<string | null>(null)
- const handleDelete = () => {
- if (!uninstallDialogAppId) return
-
- uninstallAppMutation.mutate(
- {
- params: { installed_app_id: uninstallDialogAppId },
- },
- {
- onSuccess: () => {
- setUninstallDialogAppId(null)
- toast.success(t(($) => $['api.remove'], { ns: 'common' }))
- },
- },
- )
- }
-
- const handleUpdatePinStatus = (id: string, isPinned: boolean) => {
- updatePinStatusMutation.mutate(
- {
- params: { installed_app_id: id },
- body: { is_pinned: isPinned },
- },
- {
- onSuccess: () => toast.success(t(($) => $['api.success'], { ns: 'common' })),
- },
- )
- }
-
- const pinnedAppsCount = installedApps.filter(({ is_pinned }) => is_pinned).length
- const canLoadMore = Boolean(
- installedAppsQuery.hasNextPage && !installedAppsQuery.isFetching && !installedAppsQuery.error,
- )
- const webAppsLabelId = React.useId()
- const installedAppItems = installedApps.map((installedApp, index) => (
- <React.Fragment key={installedApp.id}>
- <AppNavItem
- app={installedApp}
- isSelected={lastSegment?.toLowerCase() === installedApp.id}
- onTogglePin={handleUpdatePinStatus}
- onDelete={setUninstallDialogAppId}
- />
- {index === pinnedAppsCount - 1 && index !== installedApps.length - 1 && <Divider />}
- </React.Fragment>
- ))
-
- return (
- <div
- data-folded={isFold ? 'true' : undefined}
- className={cn(
- 'group/sidebar flex h-full w-fit shrink-0 cursor-pointer flex-col px-3 pt-6 sm:w-60',
- isFold && 'sm:w-14',
- )}
- >
- <div className={cn(isDiscoverySelected ? 'text-text-accent' : 'text-text-tertiary')}>
- <Link
- href="/"
- aria-label={isFold ? t(($) => $['sidebar.title'], { ns: 'explore' }) : undefined}
- className={cn(
- isDiscoverySelected ? 'bg-state-base-active' : 'hover:bg-state-base-hover',
- 'flex h-8 w-full items-center justify-start gap-2 rounded-lg px-1',
- )}
- >
- <div className="flex size-6 shrink-0 items-center justify-center rounded-md bg-components-icon-bg-blue-solid">
- <span
- aria-hidden="true"
- className="i-ri-apps-fill size-3.5 text-components-avatar-shape-fill-stop-100"
- />
- </div>
- {!isFold && (
- <div
- className={cn(
- 'truncate',
- isDiscoverySelected
- ? 'system-sm-semibold text-components-menu-item-text-active'
- : 'system-sm-regular text-components-menu-item-text',
- )}
- >
- {t(($) => $['sidebar.title'], { ns: 'explore' })}
- </div>
- )}
- </Link>
- </div>
-
- {!installedAppsQuery.isPending &&
- !installedAppsQuery.isError &&
- installedApps.length === 0 &&
- !isFold && (
- <div className="mt-5">
- <NoApps />
- </div>
- )}
-
- {!installedAppsQuery.isPending && installedAppsQuery.isError && !isFold && (
- <div
- className="mt-5 flex flex-col items-start gap-1 px-2 system-xs-regular text-text-tertiary"
- role="alert"
- >
- <span>{t(($) => $['errorBoundary.title'], { ns: 'common' })}</span>
- <button
- type="button"
- className="text-text-accent outline-hidden hover:underline focus-visible:underline"
- onClick={() => {
- if (installedAppsQuery.isFetchNextPageError)
- void installedAppsQuery.fetchNextPage({ cancelRefetch: false })
- else void installedAppsQuery.refetch()
- }}
- >
- {t(($) => $['operation.retry'], { ns: 'common' })}
- </button>
- </div>
- )}
-
- {installedApps.length > 0 && (
- <div className="mt-5 flex min-h-0 flex-1 flex-col">
- {!isFold && (
- <p
- id={webAppsLabelId}
- className="mb-1.5 pl-2 system-xs-medium-uppercase break-all text-text-tertiary uppercase"
- >
- {t(($) => $['sidebar.webApps'], { ns: 'explore' })}
- </p>
- )}
- {!isFold ? (
- <div className="min-h-0 flex-1">
- <ScrollArea className="h-full">
- <ScrollAreaViewport
- ref={scrollRef}
- aria-busy={installedAppsQuery.isFetchingNextPage}
- aria-labelledby={webAppsLabelId}
- className="overscroll-contain"
- role="region"
- >
- <ScrollAreaContent className="space-y-0.5 pr-3">
- {installedAppItems}
- {installedAppsQuery.isFetchingNextPage && <InstalledAppPaginationSkeleton />}
- <InfiniteScrollSentinel
- canLoadMore={canLoadMore}
- fetchNextPage={() =>
- installedAppsQuery.fetchNextPage({
- cancelRefetch: false,
- })
- }
- scrollRootRef={scrollRef}
- />
- </ScrollAreaContent>
- </ScrollAreaViewport>
- <ScrollAreaScrollbar>
- <ScrollAreaThumb />
- </ScrollAreaScrollbar>
- </ScrollArea>
- </div>
- ) : (
- <div
- ref={scrollRef}
- aria-busy={installedAppsQuery.isFetchingNextPage}
- className="h-full min-h-0 flex-1 space-y-0.5 overflow-x-hidden overflow-y-auto"
- >
- {installedAppItems}
- {installedAppsQuery.isFetchingNextPage && <InstalledAppPaginationSkeleton />}
- <InfiniteScrollSentinel
- canLoadMore={canLoadMore}
- fetchNextPage={() =>
- installedAppsQuery.fetchNextPage({
- cancelRefetch: false,
- })
- }
- scrollRootRef={scrollRef}
- />
- </div>
- )}
- </div>
- )}
-
- <div className="mt-auto flex py-3">
- <button
- type="button"
- aria-label={
- isFold
- ? t(($) => $['sidebar.expandSidebar'], { ns: 'layout' })
- : t(($) => $['sidebar.collapseSidebar'], { ns: 'layout' })
- }
- className="flex size-8 items-center justify-center rounded-lg text-text-tertiary transition-colors hover:bg-state-base-hover focus-visible:inset-ring-1 focus-visible:inset-ring-components-input-border-hover focus-visible:outline-hidden"
- onClick={() => setIsFold((value) => !value)}
- >
- {isFold ? (
- <span aria-hidden="true" className="i-ri-expand-right-line" />
- ) : (
- <span aria-hidden="true" className="i-ri-layout-left-2-line" />
- )}
- </button>
- </div>
-
- <AlertDialog
- open={uninstallDialogAppId !== null}
- onOpenChange={(open) => {
- if (!open) setUninstallDialogAppId(null)
- }}
- >
- <AlertDialogContent>
- <div className="flex flex-col items-start gap-2 self-stretch px-6 pt-6 pb-4">
- <AlertDialogTitle className="w-full title-2xl-semi-bold text-text-primary">
- {t(($) => $['sidebar.delete.title'], { ns: 'explore' })}
- </AlertDialogTitle>
- <AlertDialogDescription className="w-full system-md-regular wrap-break-word whitespace-pre-wrap text-text-tertiary">
- {t(($) => $['sidebar.delete.content'], { ns: 'explore' })}
- </AlertDialogDescription>
- </div>
- <AlertDialogActions>
- <AlertDialogCancelButton disabled={uninstallAppMutation.isPending}>
- {t(($) => $['operation.cancel'], { ns: 'common' })}
- </AlertDialogCancelButton>
- <AlertDialogConfirmButton
- loading={uninstallAppMutation.isPending}
- disabled={uninstallAppMutation.isPending}
- onClick={handleDelete}
- >
- {t(($) => $['operation.confirm'], { ns: 'common' })}
- </AlertDialogConfirmButton>
- </AlertDialogActions>
- </AlertDialogContent>
- </AlertDialog>
- </div>
- )
-}
-
-export default React.memo(SideBar)
diff --git a/web/app/components/explore/sidebar/no-apps/__tests__/index.spec.tsx b/web/app/components/explore/sidebar/no-apps/__tests__/index.spec.tsx
deleted file mode 100644
index 0fb99f11540..00000000000
--- a/web/app/components/explore/sidebar/no-apps/__tests__/index.spec.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import { render, screen } from '@testing-library/react'
-import NoApps from '../index'
-
-vi.mock('@/context/i18n', () => ({
- useDocLink: () => (path: string) => `https://docs.dify.ai${path}`,
-}))
-
-describe('NoApps', () => {
- it('links users to the publishing documentation', () => {
- render(<NoApps />)
-
- expect(screen.getByRole('link', { name: 'explore.sidebar.noApps.learnMore' })).toHaveAttribute(
- 'href',
- 'https://docs.dify.ai/use-dify/publish/README',
- )
- })
-})
diff --git a/web/app/components/explore/sidebar/no-apps/index.tsx b/web/app/components/explore/sidebar/no-apps/index.tsx
deleted file mode 100644
index 0d20cc49132..00000000000
--- a/web/app/components/explore/sidebar/no-apps/index.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-'use client'
-import type { FC } from 'react'
-import { cn } from '@langgenius/dify-ui/cn'
-import * as React from 'react'
-import { useTranslation } from 'react-i18next'
-import { useDocLink } from '@/context/i18n'
-import useTheme from '@/hooks/use-theme'
-import { Theme } from '@/types/app'
-import s from './style.module.css'
-
-const i18nPrefix = 'sidebar.noApps'
-
-const NoApps: FC = () => {
- const { t } = useTranslation()
- const { theme } = useTheme()
- const docLink = useDocLink()
- return (
- <div className="rounded-xl bg-background-default-subtle p-4">
- <div
- className={cn(
- 'h-8.75 w-21.5 bg-contain bg-center bg-no-repeat',
- theme === Theme.dark ? s.dark : s.light,
- )}
- ></div>
- <div className="mt-2 system-sm-semibold text-text-secondary">
- {t(($) => $[`${i18nPrefix}.title`], { ns: 'explore' })}
- </div>
- <div className="my-1 system-xs-regular text-text-tertiary">
- {t(($) => $[`${i18nPrefix}.description`], { ns: 'explore' })}
- </div>
- <a
- className="system-xs-regular text-text-accent"
- target="_blank"
- rel="noopener noreferrer"
- href={docLink('/use-dify/publish/README')}
- >
- {t(($) => $[`${i18nPrefix}.learnMore`], { ns: 'explore' })}
- </a>
- </div>
- )
-}
-export default React.memo(NoApps)
diff --git a/web/app/components/explore/sidebar/no-apps/no-web-apps-dark.png b/web/app/components/explore/sidebar/no-apps/no-web-apps-dark.png
deleted file mode 100644
index e153686fcd0..00000000000
Binary files a/web/app/components/explore/sidebar/no-apps/no-web-apps-dark.png and /dev/null differ
diff --git a/web/app/components/explore/sidebar/no-apps/no-web-apps-light.png b/web/app/components/explore/sidebar/no-apps/no-web-apps-light.png
deleted file mode 100644
index 2416b957d28..00000000000
Binary files a/web/app/components/explore/sidebar/no-apps/no-web-apps-light.png and /dev/null differ
diff --git a/web/app/components/explore/sidebar/no-apps/style.module.css b/web/app/components/explore/sidebar/no-apps/style.module.css
deleted file mode 100644
index ad3787ce2bd..00000000000
--- a/web/app/components/explore/sidebar/no-apps/style.module.css
+++ /dev/null
@@ -1,7 +0,0 @@
-.light {
- background-image: url('./no-web-apps-light.png');
-}
-
-.dark {
- background-image: url('./no-web-apps-dark.png');
-}
diff --git a/web/app/components/main-nav/__tests__/index.spec.tsx b/web/app/components/main-nav/__tests__/index.spec.tsx
index b85284a35c1..d8998a1cd74 100644
--- a/web/app/components/main-nav/__tests__/index.spec.tsx
+++ b/web/app/components/main-nav/__tests__/index.spec.tsx
@@ -1369,7 +1369,6 @@ describe('MainNav', () => {
screen.queryByRole('region', { name: 'explore.sidebar.webApps' }),
).not.toBeInTheDocument()
})
- expect(screen.queryByText('explore.sidebar.noApps.title')).not.toBeInTheDocument()
expect(
screen.queryByRole('button', { name: 'common.operation.search' }),
).not.toBeInTheDocument()
diff --git a/web/app/components/main-nav/components/web-apps-section.tsx b/web/app/components/main-nav/components/web-apps-section.tsx
index 2b9421928d6..e22a6fd4a1c 100644
--- a/web/app/components/main-nav/components/web-apps-section.tsx
+++ b/web/app/components/main-nav/components/web-apps-section.tsx
@@ -123,8 +123,6 @@ const WebAppsSectionContent = () => {
const renderAppNavItem = (installedApp: (typeof installedApps)[number]) => (
<AppNavItem
key={installedApp.id}
- variant="mainNav"
- prefetchOnIntent
app={installedApp}
ariaLabel={t(($) => $['mainNav.webApps.openApp'], {
ns: 'common',
diff --git a/web/i18n/ar-TN/common.json b/web/i18n/ar-TN/common.json
index 660e5d034e2..00cf883a506 100644
--- a/web/i18n/ar-TN/common.json
+++ b/web/i18n/ar-TN/common.json
@@ -298,7 +298,6 @@
"menus.apps": "الاستوديو",
"menus.datasets": "المعرفة",
"menus.deployments": "عمليات النشر",
- "menus.explore": "استكشاف",
"menus.exploreMarketplace": "استكشاف السوق",
"menus.plugins": "الإضافات",
"menus.status": "بيتا",
diff --git a/web/i18n/ar-TN/explore.json b/web/i18n/ar-TN/explore.json
index 0a78e69e1bb..25b6ef20616 100644
--- a/web/i18n/ar-TN/explore.json
+++ b/web/i18n/ar-TN/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "دردشة",
"sidebar.delete.content": "هل أنت متأكد أنك تريد حذف هذا التطبيق؟",
"sidebar.delete.title": "حذف التطبيق",
- "sidebar.noApps.description": "ستظهر تطبيقات الويب المنشورة هنا",
- "sidebar.noApps.learnMore": "اعرف المزيد",
- "sidebar.noApps.title": "لا توجد تطبيقات ويب",
- "sidebar.title": "معرض التطبيقات",
"sidebar.webApps": "تطبيقات الويب",
"title": "استكشاف",
"tryApp.category": "الفئة",
diff --git a/web/i18n/de-DE/common.json b/web/i18n/de-DE/common.json
index e6ba8295aa6..64fa7517aa8 100644
--- a/web/i18n/de-DE/common.json
+++ b/web/i18n/de-DE/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Studio",
"menus.datasets": "Wissen",
"menus.deployments": "Bereitstellungen",
- "menus.explore": "Erkunden",
"menus.exploreMarketplace": "Marketplace erkunden",
"menus.plugins": "Integrationen",
"menus.status": "Beta",
diff --git a/web/i18n/de-DE/explore.json b/web/i18n/de-DE/explore.json
index 5a682409374..a30a11c5e79 100644
--- a/web/i18n/de-DE/explore.json
+++ b/web/i18n/de-DE/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Chat",
"sidebar.delete.content": "Sind Sie sicher, dass Sie diese App löschen möchten?",
"sidebar.delete.title": "App löschen",
- "sidebar.noApps.description": "Veröffentlichte Web-Apps werden hier angezeigt",
- "sidebar.noApps.learnMore": "Mehr erfahren",
- "sidebar.noApps.title": "Keine Web-Apps",
- "sidebar.title": "App-Galerie",
"sidebar.webApps": "Web-Apps",
"title": "Entdecken",
"tryApp.category": "Kategorie",
diff --git a/web/i18n/en-US/common.json b/web/i18n/en-US/common.json
index d21b5bd24fb..dd2510038f8 100644
--- a/web/i18n/en-US/common.json
+++ b/web/i18n/en-US/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Studio",
"menus.datasets": "Knowledge",
"menus.deployments": "Deployments",
- "menus.explore": "Explore",
"menus.exploreMarketplace": "Explore Marketplace",
"menus.plugins": "Integrations",
"menus.status": "beta",
diff --git a/web/i18n/en-US/explore.json b/web/i18n/en-US/explore.json
index d4554e3cc91..2c983c13978 100644
--- a/web/i18n/en-US/explore.json
+++ b/web/i18n/en-US/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Chat",
"sidebar.delete.content": "Are you sure you want to delete this app?",
"sidebar.delete.title": "Delete app",
- "sidebar.noApps.description": "Published web apps will appear here",
- "sidebar.noApps.learnMore": "Learn more",
- "sidebar.noApps.title": "No web apps",
- "sidebar.title": "App gallery",
"sidebar.webApps": "Web apps",
"title": "Explore",
"tryApp.category": "Category",
diff --git a/web/i18n/es-ES/common.json b/web/i18n/es-ES/common.json
index 109900dba43..f3449ff4715 100644
--- a/web/i18n/es-ES/common.json
+++ b/web/i18n/es-ES/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Estudio",
"menus.datasets": "Conocimiento",
"menus.deployments": "Despliegues",
- "menus.explore": "Explorar",
"menus.exploreMarketplace": "Explora el mercado",
"menus.plugins": "Integraciones",
"menus.status": "beta",
diff --git a/web/i18n/es-ES/explore.json b/web/i18n/es-ES/explore.json
index 351536e58c0..d81e40595f1 100644
--- a/web/i18n/es-ES/explore.json
+++ b/web/i18n/es-ES/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Chat",
"sidebar.delete.content": "¿Estás seguro de que quieres eliminar esta aplicación?",
"sidebar.delete.title": "Eliminar aplicación",
- "sidebar.noApps.description": "Las aplicaciones web publicadas aparecerán aquí",
- "sidebar.noApps.learnMore": "Más información",
- "sidebar.noApps.title": "Sin aplicaciones web",
- "sidebar.title": "Galería de aplicaciones",
"sidebar.webApps": "Aplicaciones web",
"title": "Explorar",
"tryApp.category": "Categoría",
diff --git a/web/i18n/fa-IR/common.json b/web/i18n/fa-IR/common.json
index 1781d92496f..1dac79de038 100644
--- a/web/i18n/fa-IR/common.json
+++ b/web/i18n/fa-IR/common.json
@@ -299,7 +299,6 @@
"menus.apps": "استودیو",
"menus.datasets": "دانش",
"menus.deployments": "استقرارها",
- "menus.explore": "کاوش",
"menus.exploreMarketplace": "بازار را کاوش کنید",
"menus.plugins": "یکپارچه‌سازی‌ها",
"menus.status": "بتا",
diff --git a/web/i18n/fa-IR/explore.json b/web/i18n/fa-IR/explore.json
index 1732aa06617..fde4b241df9 100644
--- a/web/i18n/fa-IR/explore.json
+++ b/web/i18n/fa-IR/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "چت",
"sidebar.delete.content": "آیا مطمئن هستید که می‌خواهید این برنامه را حذف کنید؟",
"sidebar.delete.title": "حذف برنامه",
- "sidebar.noApps.description": "برنامه‌های وب منتشر شده در اینجا ظاهر می‌شوند",
- "sidebar.noApps.learnMore": "بیشتر بدانید",
- "sidebar.noApps.title": "برنامه‌های وب موجود نیست",
- "sidebar.title": "گالری برنامه",
"sidebar.webApps": "برنامه‌های وب",
"title": "کاوش",
"tryApp.category": "دسته‌بندی",
diff --git a/web/i18n/fr-FR/common.json b/web/i18n/fr-FR/common.json
index ce400480d2e..9abd3723445 100644
--- a/web/i18n/fr-FR/common.json
+++ b/web/i18n/fr-FR/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Studio",
"menus.datasets": "Connaissance",
"menus.deployments": "Déploiements",
- "menus.explore": "Explorer",
"menus.exploreMarketplace": "Explorer Marketplace",
"menus.plugins": "Intégrations",
"menus.status": "bêta",
diff --git a/web/i18n/fr-FR/explore.json b/web/i18n/fr-FR/explore.json
index ceab77134fa..c67209b09b9 100644
--- a/web/i18n/fr-FR/explore.json
+++ b/web/i18n/fr-FR/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Discussion",
"sidebar.delete.content": "Êtes-vous sûr de vouloir supprimer cette application ?",
"sidebar.delete.title": "Supprimer l'application",
- "sidebar.noApps.description": "Les applications web publiées apparaîtront ici",
- "sidebar.noApps.learnMore": "En savoir plus",
- "sidebar.noApps.title": "Aucune application web",
- "sidebar.title": "Galerie d'applications",
"sidebar.webApps": "Applications web",
"title": "Explorer",
"tryApp.category": "Catégorie",
diff --git a/web/i18n/hi-IN/common.json b/web/i18n/hi-IN/common.json
index 63dab20b8e7..59aa41c6281 100644
--- a/web/i18n/hi-IN/common.json
+++ b/web/i18n/hi-IN/common.json
@@ -299,7 +299,6 @@
"menus.apps": "स्टूडियो",
"menus.datasets": "ज्ञान",
"menus.deployments": "डिप्लॉयमेंट",
- "menus.explore": "अन्वेषण करें",
"menus.exploreMarketplace": "मार्केटप्लेस का अन्वेषण करें",
"menus.plugins": "एकीकरण",
"menus.status": "बीटा",
diff --git a/web/i18n/hi-IN/explore.json b/web/i18n/hi-IN/explore.json
index 94a45e0e720..4c47d7a436e 100644
--- a/web/i18n/hi-IN/explore.json
+++ b/web/i18n/hi-IN/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "चैट",
"sidebar.delete.content": "क्या आप वाकई इस ऐप को हटाना चाहते हैं?",
"sidebar.delete.title": "ऐप हटाएं",
- "sidebar.noApps.description": "प्रकाशित वेब ऐप्स यहां दिखाई देंगे",
- "sidebar.noApps.learnMore": "और जानें",
- "sidebar.noApps.title": "कोई वेब ऐप्स नहीं",
- "sidebar.title": "ऐप गैलरी",
"sidebar.webApps": "वेब ऐप्स",
"title": "अन्वेषण करें",
"tryApp.category": "श्रेणी",
diff --git a/web/i18n/id-ID/common.json b/web/i18n/id-ID/common.json
index 31afc7932ad..cff11975da0 100644
--- a/web/i18n/id-ID/common.json
+++ b/web/i18n/id-ID/common.json
@@ -298,7 +298,6 @@
"menus.apps": "Aplikasi",
"menus.datasets": "Pengetahuan",
"menus.deployments": "Penerapan",
- "menus.explore": "Menjelajahi",
"menus.exploreMarketplace": "Jelajahi Marketplace",
"menus.plugins": "Integrasi",
"menus.status": "beta",
diff --git a/web/i18n/id-ID/explore.json b/web/i18n/id-ID/explore.json
index 217ddeae3c0..6f13e6aad80 100644
--- a/web/i18n/id-ID/explore.json
+++ b/web/i18n/id-ID/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Mengobrol",
"sidebar.delete.content": "Apakah Anda yakin ingin menghapus aplikasi ini?",
"sidebar.delete.title": "Hapus aplikasi",
- "sidebar.noApps.description": "Aplikasi web yang dipublikasikan akan muncul di sini",
- "sidebar.noApps.learnMore": "Pelajari lebih lanjut",
- "sidebar.noApps.title": "Tidak ada aplikasi web",
- "sidebar.title": "Galeri aplikasi",
"sidebar.webApps": "Aplikasi web",
"title": "Menjelajahi",
"tryApp.category": "Kategori",
diff --git a/web/i18n/it-IT/common.json b/web/i18n/it-IT/common.json
index 8cde46b8dd3..82639d37e41 100644
--- a/web/i18n/it-IT/common.json
+++ b/web/i18n/it-IT/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Studio",
"menus.datasets": "Conoscenza",
"menus.deployments": "Distribuzioni",
- "menus.explore": "Esplora",
"menus.exploreMarketplace": "Esplora il Marketplace",
"menus.plugins": "Integrazione",
"menus.status": "beta",
diff --git a/web/i18n/it-IT/explore.json b/web/i18n/it-IT/explore.json
index f8f918ab7e8..3f3e94a7fa6 100644
--- a/web/i18n/it-IT/explore.json
+++ b/web/i18n/it-IT/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Chat",
"sidebar.delete.content": "Sei sicuro di voler eliminare questa app?",
"sidebar.delete.title": "Elimina app",
- "sidebar.noApps.description": "Le app web pubblicate appariranno qui",
- "sidebar.noApps.learnMore": "Scopri di più",
- "sidebar.noApps.title": "Nessuna app web",
- "sidebar.title": "Galleria di app",
"sidebar.webApps": "App web",
"title": "Esplora",
"tryApp.category": "Categoria",
diff --git a/web/i18n/ja-JP/common.json b/web/i18n/ja-JP/common.json
index f4f272f1178..285dab047a7 100644
--- a/web/i18n/ja-JP/common.json
+++ b/web/i18n/ja-JP/common.json
@@ -299,7 +299,6 @@
"menus.apps": "スタジオ",
"menus.datasets": "ナレッジ",
"menus.deployments": "デプロイ",
- "menus.explore": "探索",
"menus.exploreMarketplace": "マーケットプレイスを探索する",
"menus.plugins": "インテグレーション",
"menus.status": "ベータ版",
diff --git a/web/i18n/ja-JP/explore.json b/web/i18n/ja-JP/explore.json
index 55934069325..4264cfcfa36 100644
--- a/web/i18n/ja-JP/explore.json
+++ b/web/i18n/ja-JP/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "チャット",
"sidebar.delete.content": "このアプリを削除してもよろしいですか?",
"sidebar.delete.title": "アプリを削除",
- "sidebar.noApps.description": "公開されたWebアプリがここに表示されます",
- "sidebar.noApps.learnMore": "詳細",
- "sidebar.noApps.title": "Webアプリなし",
- "sidebar.title": "アプリギャラリー",
"sidebar.webApps": "Webアプリ",
"title": "探索",
"tryApp.category": "カテゴリー",
diff --git a/web/i18n/ko-KR/common.json b/web/i18n/ko-KR/common.json
index cff56615c01..cb71883adea 100644
--- a/web/i18n/ko-KR/common.json
+++ b/web/i18n/ko-KR/common.json
@@ -299,7 +299,6 @@
"menus.apps": "스튜디오",
"menus.datasets": "지식",
"menus.deployments": "배포",
- "menus.explore": "탐색",
"menus.exploreMarketplace": "Marketplace 둘러보기",
"menus.plugins": "통합",
"menus.status": "베타 버전",
diff --git a/web/i18n/ko-KR/explore.json b/web/i18n/ko-KR/explore.json
index 534a56521bd..881e683f4d2 100644
--- a/web/i18n/ko-KR/explore.json
+++ b/web/i18n/ko-KR/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "채팅",
"sidebar.delete.content": "이 앱을 삭제해도 괜찮습니까?",
"sidebar.delete.title": "앱 삭제",
- "sidebar.noApps.description": "게시된 웹 앱이 여기에 표시됩니다",
- "sidebar.noApps.learnMore": "자세히 알아보기",
- "sidebar.noApps.title": "웹 앱 없음",
- "sidebar.title": "앱 갤러리",
"sidebar.webApps": "웹 앱",
"title": "탐색",
"tryApp.category": "카테고리",
diff --git a/web/i18n/lo-LA/common.json b/web/i18n/lo-LA/common.json
index 53d0dc9457a..8a823d8d330 100644
--- a/web/i18n/lo-LA/common.json
+++ b/web/i18n/lo-LA/common.json
@@ -299,7 +299,6 @@
"menus.apps": "ສະຕູດິໂອ",
"menus.datasets": "ຖານຄວາມຮູ້",
"menus.deployments": "ການຕິດຕັ້ງ",
- "menus.explore": "ສຳຫຼວດ",
"menus.exploreMarketplace": "ສຳຫຼວດຕະຫຼາດແອັບ",
"menus.plugins": "ການເຊື່ອມຕໍ່",
"menus.status": "ເບຕ້າ",
diff --git a/web/i18n/lo-LA/explore.json b/web/i18n/lo-LA/explore.json
index 1e1966cd944..533d6217aec 100644
--- a/web/i18n/lo-LA/explore.json
+++ b/web/i18n/lo-LA/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "ແຊັດ",
"sidebar.delete.content": "ເຈົ້າແນ່ໃຈບໍວ່າຕ້ອງການລຶບແອັບນີ້?",
"sidebar.delete.title": "ລຶບແອັບ",
- "sidebar.noApps.description": "ແອັບເວັບທີ່ເຜີຍແຜ່ແລ້ວຈະສະແດງຢູ່ນີ້",
- "sidebar.noApps.learnMore": "ຮຽນຮູ້ເພີ່ມເຕີມ",
- "sidebar.noApps.title": "ບໍ່ມີແອັບເວັບ",
- "sidebar.title": "ຄັງແອັບ",
"sidebar.webApps": "ແອັບເວັບ",
"title": "ສຳຫຼວດ",
"tryApp.category": "ໝວດໝູ່",
diff --git a/web/i18n/nl-NL/common.json b/web/i18n/nl-NL/common.json
index b3f71ccea92..86168392072 100644
--- a/web/i18n/nl-NL/common.json
+++ b/web/i18n/nl-NL/common.json
@@ -298,7 +298,6 @@
"menus.apps": "Studio",
"menus.datasets": "Knowledge",
"menus.deployments": "Implementaties",
- "menus.explore": "Explore",
"menus.exploreMarketplace": "Explore Marketplace",
"menus.plugins": "Integraties",
"menus.status": "beta",
diff --git a/web/i18n/nl-NL/explore.json b/web/i18n/nl-NL/explore.json
index 0b70d4a17c9..0942273e20f 100644
--- a/web/i18n/nl-NL/explore.json
+++ b/web/i18n/nl-NL/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Chat",
"sidebar.delete.content": "Are you sure you want to delete this app?",
"sidebar.delete.title": "Delete app",
- "sidebar.noApps.description": "Published web apps will appear here",
- "sidebar.noApps.learnMore": "Learn more",
- "sidebar.noApps.title": "No web apps",
- "sidebar.title": "App gallery",
"sidebar.webApps": "Web apps",
"title": "Explore",
"tryApp.category": "Category",
diff --git a/web/i18n/pl-PL/common.json b/web/i18n/pl-PL/common.json
index 65c6c40dc74..f48efc0e816 100644
--- a/web/i18n/pl-PL/common.json
+++ b/web/i18n/pl-PL/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Studio",
"menus.datasets": "Wiedza",
"menus.deployments": "Wdrożenia",
- "menus.explore": "Eksploruj",
"menus.exploreMarketplace": "Zapoznaj się z Marketplace",
"menus.plugins": "Integracjay",
"menus.status": "beta",
diff --git a/web/i18n/pl-PL/explore.json b/web/i18n/pl-PL/explore.json
index 35507b55e61..0a747fce06e 100644
--- a/web/i18n/pl-PL/explore.json
+++ b/web/i18n/pl-PL/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Czat",
"sidebar.delete.content": "Czy na pewno chcesz usunąć tę aplikację?",
"sidebar.delete.title": "Usuń aplikację",
- "sidebar.noApps.description": "Opublikowane aplikacje internetowe pojawią się tutaj",
- "sidebar.noApps.learnMore": "Dowiedz się więcej",
- "sidebar.noApps.title": "Brak aplikacji internetowych",
- "sidebar.title": "Galeria aplikacji",
"sidebar.webApps": "Aplikacje internetowe",
"title": "Odkryj",
"tryApp.category": "Kategoria",
diff --git a/web/i18n/pt-BR/common.json b/web/i18n/pt-BR/common.json
index cac7ec8dfa3..ef7bf59de38 100644
--- a/web/i18n/pt-BR/common.json
+++ b/web/i18n/pt-BR/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Estúdio",
"menus.datasets": "Conhecimento",
"menus.deployments": "Implantações",
- "menus.explore": "Explorar",
"menus.exploreMarketplace": "Explorar Mercado",
"menus.plugins": "Integrações",
"menus.status": "beta",
diff --git a/web/i18n/pt-BR/explore.json b/web/i18n/pt-BR/explore.json
index 530814ba88e..2a895f60071 100644
--- a/web/i18n/pt-BR/explore.json
+++ b/web/i18n/pt-BR/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Chat",
"sidebar.delete.content": "Tem certeza de que deseja excluir este aplicativo?",
"sidebar.delete.title": "Excluir aplicativo",
- "sidebar.noApps.description": "Aplicativos web publicados aparecerão aqui",
- "sidebar.noApps.learnMore": "Saiba mais",
- "sidebar.noApps.title": "Sem aplicativos web",
- "sidebar.title": "Galeria de aplicativos",
"sidebar.webApps": "Aplicativos web",
"title": "Explorar",
"tryApp.category": "Categoria",
diff --git a/web/i18n/ro-RO/common.json b/web/i18n/ro-RO/common.json
index 8ab3891ded5..65649d8ac99 100644
--- a/web/i18n/ro-RO/common.json
+++ b/web/i18n/ro-RO/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Studio",
"menus.datasets": "Cunoștințe",
"menus.deployments": "Implementări",
- "menus.explore": "Explorează",
"menus.exploreMarketplace": "Explorați Marketplace",
"menus.plugins": "Integrare-uri",
"menus.status": "beta",
diff --git a/web/i18n/ro-RO/explore.json b/web/i18n/ro-RO/explore.json
index 5d7817b2400..e7db17b8efd 100644
--- a/web/i18n/ro-RO/explore.json
+++ b/web/i18n/ro-RO/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Chat",
"sidebar.delete.content": "Sunteți sigur că doriți să ștergeți această aplicație?",
"sidebar.delete.title": "Ștergeți aplicația",
- "sidebar.noApps.description": "Aplicațiile web publicate vor apărea aici",
- "sidebar.noApps.learnMore": "Aflați mai multe",
- "sidebar.noApps.title": "Fără aplicații web",
- "sidebar.title": "Galeria de aplicații",
"sidebar.webApps": "Aplicații web",
"title": "Explorați",
"tryApp.category": "Categorie",
diff --git a/web/i18n/ru-RU/common.json b/web/i18n/ru-RU/common.json
index af45890fd53..5dc883b8220 100644
--- a/web/i18n/ru-RU/common.json
+++ b/web/i18n/ru-RU/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Студия",
"menus.datasets": "Знания",
"menus.deployments": "Развертывания",
- "menus.explore": "Исследовать",
"menus.exploreMarketplace": "Подробнее о Marketplace",
"menus.plugins": "Интеграции",
"menus.status": "бета",
diff --git a/web/i18n/ru-RU/explore.json b/web/i18n/ru-RU/explore.json
index 772b1309d75..02f648edbdd 100644
--- a/web/i18n/ru-RU/explore.json
+++ b/web/i18n/ru-RU/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Чат",
"sidebar.delete.content": "Вы уверены, что хотите удалить это приложение?",
"sidebar.delete.title": "Удалить приложение",
- "sidebar.noApps.description": "Опубликованные веб-приложения появятся здесь",
- "sidebar.noApps.learnMore": "Узнать больше",
- "sidebar.noApps.title": "Нет веб-приложений",
- "sidebar.title": "Галерея приложений",
"sidebar.webApps": "Веб-приложения",
"title": "Обзор",
"tryApp.category": "Категория",
diff --git a/web/i18n/sl-SI/common.json b/web/i18n/sl-SI/common.json
index a0e396e3110..250a1999cdb 100644
--- a/web/i18n/sl-SI/common.json
+++ b/web/i18n/sl-SI/common.json
@@ -298,7 +298,6 @@
"menus.apps": "Studio",
"menus.datasets": "Znanje",
"menus.deployments": "Uvedbe",
- "menus.explore": "Raziskuj",
"menus.exploreMarketplace": "Raziščite Marketplace",
"menus.plugins": "Integracije",
"menus.status": "beta",
diff --git a/web/i18n/sl-SI/explore.json b/web/i18n/sl-SI/explore.json
index a6398e39773..b6f9749b4df 100644
--- a/web/i18n/sl-SI/explore.json
+++ b/web/i18n/sl-SI/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Klepet",
"sidebar.delete.content": "Ali ste prepričani, da želite izbrisati to aplikacijo?",
"sidebar.delete.title": "Izbriši aplikacijo",
- "sidebar.noApps.description": "Objavljene spletne aplikacije se bodo prikazale tukaj",
- "sidebar.noApps.learnMore": "Izvedi več",
- "sidebar.noApps.title": "Ni spletnih aplikacij",
- "sidebar.title": "Galerija aplikacij",
"sidebar.webApps": "Spletne aplikacije",
"title": "Razišči",
"tryApp.category": "Kategorija",
diff --git a/web/i18n/th-TH/common.json b/web/i18n/th-TH/common.json
index d2b82bf6151..5db695482b7 100644
--- a/web/i18n/th-TH/common.json
+++ b/web/i18n/th-TH/common.json
@@ -299,7 +299,6 @@
"menus.apps": "สตูดิโอ",
"menus.datasets": "ความรู้",
"menus.deployments": "การปรับใช้",
- "menus.explore": "สํารวจ",
"menus.exploreMarketplace": "สํารวจ Marketplace",
"menus.plugins": "การผสานรวม",
"menus.status": "Beta",
diff --git a/web/i18n/th-TH/explore.json b/web/i18n/th-TH/explore.json
index 471f642036d..f2fe60a3c23 100644
--- a/web/i18n/th-TH/explore.json
+++ b/web/i18n/th-TH/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "สนทนา",
"sidebar.delete.content": "คุณแน่ใจหรือไม่ว่าต้องการลบแอปนี้?",
"sidebar.delete.title": "ลบแอป",
- "sidebar.noApps.description": "แอปเว็บที่เผยแพร่จะปรากฏที่นี่",
- "sidebar.noApps.learnMore": "เรียนรู้เพิ่มเติม",
- "sidebar.noApps.title": "ไม่มีแอปเว็บ",
- "sidebar.title": "แกลเลอรีแอป",
"sidebar.webApps": "แอปเว็บ",
"title": "สํารวจ",
"tryApp.category": "หมวดหมู่",
diff --git a/web/i18n/tr-TR/common.json b/web/i18n/tr-TR/common.json
index ecd40235395..e7e0d5a3d23 100644
--- a/web/i18n/tr-TR/common.json
+++ b/web/i18n/tr-TR/common.json
@@ -298,7 +298,6 @@
"menus.apps": "Studio",
"menus.datasets": "Bilgi",
"menus.deployments": "Dağıtımlar",
- "menus.explore": "Keşfet",
"menus.exploreMarketplace": "Pazar Yeri'ni Keşfedin",
"menus.plugins": "Entegrasyonlar",
"menus.status": "beta",
diff --git a/web/i18n/tr-TR/explore.json b/web/i18n/tr-TR/explore.json
index 149c723c1eb..63be26a25aa 100644
--- a/web/i18n/tr-TR/explore.json
+++ b/web/i18n/tr-TR/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Sohbet",
"sidebar.delete.content": "Bu uygulamayı silmek istediğinizden emin misiniz?",
"sidebar.delete.title": "Uygulamayı sil",
- "sidebar.noApps.description": "Yayınlanan web uygulamaları burada görünecek",
- "sidebar.noApps.learnMore": "Daha fazla bilgi edinin",
- "sidebar.noApps.title": "Web uygulaması yok",
- "sidebar.title": "Uygulama galerisi",
"sidebar.webApps": "Web uygulamaları",
"title": "Keşfet",
"tryApp.category": "Kategori",
diff --git a/web/i18n/uk-UA/common.json b/web/i18n/uk-UA/common.json
index 376e1f225bb..a02f2eb8e60 100644
--- a/web/i18n/uk-UA/common.json
+++ b/web/i18n/uk-UA/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Студія",
"menus.datasets": "Знання",
"menus.deployments": "Розгортання",
- "menus.explore": "Досліджувати",
"menus.exploreMarketplace": "Дізнайтеся більше про Marketplace",
"menus.plugins": "Інтеграції",
"menus.status": "бета",
diff --git a/web/i18n/uk-UA/explore.json b/web/i18n/uk-UA/explore.json
index fd0c123d157..53e9ae6b362 100644
--- a/web/i18n/uk-UA/explore.json
+++ b/web/i18n/uk-UA/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Чат",
"sidebar.delete.content": "Ви впевнені, що хочете видалити цю програму?",
"sidebar.delete.title": "Видалити додаток",
- "sidebar.noApps.description": "Опубліковані веб-додатки з'являться тут",
- "sidebar.noApps.learnMore": "Дізнатися більше",
- "sidebar.noApps.title": "Немає веб-додатків",
- "sidebar.title": "Галерея додатків",
"sidebar.webApps": "Веб-додатки",
"title": "Досліджувати",
"tryApp.category": "Категорія",
diff --git a/web/i18n/vi-VN/common.json b/web/i18n/vi-VN/common.json
index 2130f793f3f..0265fb83c36 100644
--- a/web/i18n/vi-VN/common.json
+++ b/web/i18n/vi-VN/common.json
@@ -299,7 +299,6 @@
"menus.apps": "Studio",
"menus.datasets": "Kiến thức",
"menus.deployments": "Triển khai",
- "menus.explore": "Khám phá",
"menus.exploreMarketplace": "Khám phá Marketplace",
"menus.plugins": "Tích hợp",
"menus.status": "beta",
diff --git a/web/i18n/vi-VN/explore.json b/web/i18n/vi-VN/explore.json
index db8543934bb..853ec952b67 100644
--- a/web/i18n/vi-VN/explore.json
+++ b/web/i18n/vi-VN/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "Trò chuyện",
"sidebar.delete.content": "Bạn có chắc chắn muốn xóa ứng dụng này không?",
"sidebar.delete.title": "Xóa ứng dụng",
- "sidebar.noApps.description": "Các ứng dụng web đã xuất bản sẽ xuất hiện ở đây",
- "sidebar.noApps.learnMore": "Tìm hiểu thêm",
- "sidebar.noApps.title": "Không có ứng dụng web",
- "sidebar.title": "Thư viện ứng dụng",
"sidebar.webApps": "Ứng dụng web",
"title": "Khám phá",
"tryApp.category": "Danh mục",
diff --git a/web/i18n/zh-Hans/common.json b/web/i18n/zh-Hans/common.json
index 215f26d47b5..5ced66f929b 100644
--- a/web/i18n/zh-Hans/common.json
+++ b/web/i18n/zh-Hans/common.json
@@ -299,7 +299,6 @@
"menus.apps": "工作室",
"menus.datasets": "知识库",
"menus.deployments": "部署",
- "menus.explore": "探索",
"menus.exploreMarketplace": "探索 Marketplace",
"menus.plugins": "集成",
"menus.status": "beta",
diff --git a/web/i18n/zh-Hans/explore.json b/web/i18n/zh-Hans/explore.json
index 5c61fe472b8..30704d421bf 100644
--- a/web/i18n/zh-Hans/explore.json
+++ b/web/i18n/zh-Hans/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "智聊",
"sidebar.delete.content": "您确定要删除此程序吗?",
"sidebar.delete.title": "删除程序",
- "sidebar.noApps.description": "已发布的 web apps 将出现在此处",
- "sidebar.noApps.learnMore": "了解更多",
- "sidebar.noApps.title": "没有 web apps",
- "sidebar.title": "应用库",
"sidebar.webApps": "WEB APPS",
"title": "探索",
"tryApp.category": "分类",
diff --git a/web/i18n/zh-Hant/common.json b/web/i18n/zh-Hant/common.json
index 34cb7928e2d..ada8ea8349f 100644
--- a/web/i18n/zh-Hant/common.json
+++ b/web/i18n/zh-Hant/common.json
@@ -299,7 +299,6 @@
"menus.apps": "工作室",
"menus.datasets": "知識庫",
"menus.deployments": "部署",
- "menus.explore": "探索",
"menus.exploreMarketplace": "探索 Marketplace",
"menus.plugins": "集成",
"menus.status": "beta",
diff --git a/web/i18n/zh-Hant/explore.json b/web/i18n/zh-Hant/explore.json
index 82ef6ec1ed9..ce1e2ed667c 100644
--- a/web/i18n/zh-Hant/explore.json
+++ b/web/i18n/zh-Hant/explore.json
@@ -36,10 +36,6 @@
"sidebar.chat": "智聊",
"sidebar.delete.content": "您確定要刪除此程式嗎?",
"sidebar.delete.title": "刪除程式",
- "sidebar.noApps.description": "已發佈的 web apps 將出現在此處",
- "sidebar.noApps.learnMore": "瞭解更多",
- "sidebar.noApps.title": "沒有 web apps",
- "sidebar.title": "應用程式庫",
"sidebar.webApps": "WEB APPS",
"title": "探索",
"tryApp.category": "分類",
diff --git a/web/next/navigation.ts b/web/next/navigation.ts
index 695194f41b0..d45d1646704 100644
--- a/web/next/navigation.ts
+++ b/web/next/navigation.ts
@@ -6,6 +6,5 @@ export {
useRouter,
useSearchParams,
useSelectedLayoutSegment,
- useSelectedLayoutSegments,
} from 'next/navigation'
export type { ReadonlyURLSearchParams } from 'next/navigation'