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.

fix: improve sort control accessibility and type safety (#44564)

yyh9f75925578ec
diff --git a/web/app/components/app/log/__tests__/filter.spec.tsx b/web/app/components/app/log/__tests__/filter.spec.tsx
index 8d7fee6b9c8..7fc617b0882 100644
--- a/web/app/components/app/log/__tests__/filter.spec.tsx
+++ b/web/app/components/app/log/__tests__/filter.spec.tsx
@@ -152,9 +152,9 @@ it('combines text search, sort field and direction, then clears only the keyword
const user = userEvent.setup()
render(<ControlledFilter />)
await user.type(screen.getByRole('searchbox'), 'failure')
- await user.click(screen.getByRole('button', { name: /filter.sortBy/ }))
+ await user.click(screen.getByRole('button', { name: /sorting.sortBy/ }))
await user.click(await screen.findByRole('menuitemradio', { name: /header.updatedTime/ }))
- await user.click(screen.getByRole('button', { name: /filter.descending/ }))
+ await user.click(screen.getByRole('button', { name: /sorting.descending/ }))
expect(onChange).toHaveBeenLastCalledWith({
...initialQuery,
keyword: 'failure',
@@ -166,7 +166,7 @@ it('combines text search, sort field and direction, then clears only the keyword
it('omits chat sorting for completion logs', () => {
render(<ControlledFilter isChatMode={false} />)
- expect(screen.queryByRole('button', { name: /filter.sortBy/ })).not.toBeInTheDocument()
+ expect(screen.queryByRole('button', { name: /sorting.sortBy/ })).not.toBeInTheDocument()
})
it.each(['loading', 'unavailable'] as const)(
diff --git a/web/app/components/app/log/filter.tsx b/web/app/components/app/log/filter.tsx
index 7e207b07df6..d07e03da134 100644
--- a/web/app/components/app/log/filter.tsx
+++ b/web/app/components/app/log/filter.tsx
@@ -10,7 +10,7 @@ import * as React from 'react'
import { useTranslation } from 'react-i18next'
import Chip from '@/app/components/base/chip'
import { SearchInput } from '@/app/components/base/search-input'
-import Sort from '@/app/components/base/sort'
+import { Sort } from '@/app/components/base/sort'
import { consoleQuery } from '@/service/console'
import {
CLOUD_SANDBOX_CLEARED_TIME_PERIOD,
@@ -124,8 +124,10 @@ const Filter: FC<IFilterProps> = ({
<>
<div className="h-3.5 w-px bg-divider-regular"></div>
<Sort
- order={queryParams.sort_by?.startsWith('-') ? '-' : ''}
- value={queryParams.sort_by?.replace('-', '') || 'created_at'}
+ value={{
+ field: queryParams.sort_by?.endsWith('updated_at') ? 'updated_at' : 'created_at',
+ order: queryParams.sort_by?.startsWith('-') ? 'desc' : 'asc',
+ }}
items={[
{ value: 'created_at', name: t(($) => $['table.header.time'], { ns: 'appLog' }) },
{
@@ -133,8 +135,8 @@ const Filter: FC<IFilterProps> = ({
name: t(($) => $['table.header.updatedTime'], { ns: 'appLog' }),
},
]}
- onSelect={(value) => {
- setQueryParams({ ...queryParams, sort_by: value as QueryParam['sort_by'] })
+ onValueChange={({ field, order }) => {
+ setQueryParams({ ...queryParams, sort_by: order === 'desc' ? `-${field}` : field })
}}
/>
</>
diff --git a/web/app/components/base/sort/__tests__/index.browser.spec.tsx b/web/app/components/base/sort/__tests__/index.browser.spec.tsx
new file mode 100644
index 00000000000..ba9201e966d
--- /dev/null
+++ b/web/app/components/base/sort/__tests__/index.browser.spec.tsx
@@ -0,0 +1,53 @@
+import { page } from 'vite-plus/test/browser'
+import { render } from 'vitest-browser-react'
+import { Sort } from '../index'
+
+vi.mock('react-i18next', async () => {
+ const { createReactI18nextMock } = await import('@/test/i18n-mock')
+ return createReactI18nextMock({
+ 'common.sorting.sortBy': 'Sort by:',
+ 'common.sorting.ascending': 'Sort ascending',
+ 'common.sorting.descending': 'Sort descending',
+ })
+})
+
+it('keeps long field names readable and the direction action reachable in a narrow RTL layout', async () => {
+ await page.viewport(320, 600)
+ const label = 'Zeitpunkt der letzten Aktualisierung des Dokuments'
+ const onValueChange = vi.fn()
+ const screen = await render(
+ <div dir="rtl" style={{ display: 'flex', flexDirection: 'column', width: 240 }}>
+ <Sort
+ items={[{ value: 'updated_at', name: label }]}
+ value={{ field: 'updated_at', order: 'desc' }}
+ onValueChange={onValueChange}
+ />
+ </div>,
+ )
+ const trigger = screen.getByRole('button', { name: `Sort by: ${label}` })
+ const direction = screen.getByRole('button', { name: 'Sort ascending' })
+ await expect.element(trigger).toBeVisible()
+ await expect.element(direction).toBeVisible()
+ const triggerBounds = trigger.element().getBoundingClientRect()
+ const directionBounds = direction.element().getBoundingClientRect()
+ expect(directionBounds.right).toBeLessThanOrEqual(triggerBounds.left)
+ expect(triggerBounds.right - directionBounds.left).toBeLessThanOrEqual(240)
+
+ await trigger.click()
+ const option = page.getByRole('menuitemradio', { name: label })
+ await expect.element(option).toBeVisible()
+ const text = page.getByRole('menu').getByText(label, { exact: true }).element()
+ const range = document.createRange()
+ range.selectNodeContents(text)
+ const optionBounds = option.element().getBoundingClientRect()
+ for (const line of range.getClientRects()) {
+ expect(line.left).toBeGreaterThanOrEqual(optionBounds.left)
+ expect(line.right).toBeLessThanOrEqual(optionBounds.right)
+ expect(line.top).toBeGreaterThanOrEqual(optionBounds.top)
+ expect(line.bottom).toBeLessThanOrEqual(optionBounds.bottom)
+ }
+ await option.click()
+ await expect.element(page.getByRole('menu')).not.toBeInTheDocument()
+ await direction.click()
+ expect(onValueChange).toHaveBeenLastCalledWith({ field: 'updated_at', order: 'asc' })
+})
diff --git a/web/app/components/base/sort/__tests__/index.spec.tsx b/web/app/components/base/sort/__tests__/index.spec.tsx
index 6c21ff9f557..5bcfec9b36d 100644
--- a/web/app/components/base/sort/__tests__/index.spec.tsx
+++ b/web/app/components/base/sort/__tests__/index.spec.tsx
@@ -1,41 +1,56 @@
+import type { SortValue } from '../index'
import { render, screen, waitFor } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { useState } from 'react'
-import Sort from '../index'
+import { Sort } from '../index'
const items = [
{ value: 'created_at', name: 'Date Created' },
{ value: 'name', name: 'Name' },
-]
+] as const
-it('selects a valid ascending sort key when no direction is supplied', async () => {
+it('requests a new field without changing the controlled value or its direction', async () => {
const user = userEvent.setup()
- const onSelect = vi.fn()
- render(<Sort items={items} value="created_at" onSelect={onSelect} />)
- await user.click(screen.getByRole('button', { name: /appLog.filter.sortBy/ }))
+ const onValueChange = vi.fn()
+ render(
+ <Sort
+ items={items}
+ value={{ field: 'created_at', order: 'asc' }}
+ onValueChange={onValueChange}
+ />,
+ )
+ await user.click(screen.getByRole('button', { name: /common.sorting.sortBy/ }))
await user.click(screen.getByRole('menuitemradio', { name: 'Name' }))
- expect(onSelect).toHaveBeenCalledExactlyOnceWith('name')
+ expect(onValueChange).toHaveBeenCalledExactlyOnceWith({ field: 'name', order: 'asc' })
+ expect(screen.getByRole('button', { name: /common.sorting.sortBy/ })).toHaveTextContent(
+ 'Date Created',
+ )
+ await user.click(screen.getByRole('button', { name: 'common.sorting.descending' }))
+ expect(onValueChange).toHaveBeenLastCalledWith({ field: 'created_at', order: 'desc' })
+ expect(screen.getByRole('button', { name: 'common.sorting.descending' })).toBeInTheDocument()
})
it('preserves direction when choosing a field and toggles it without losing the field', async () => {
const user = userEvent.setup()
- const onSelect = vi.fn()
+ const onValueChange = vi.fn()
function Harness() {
- const [sort, setSort] = useState('-created_at')
+ const [sort, setSort] = useState<SortValue<(typeof items)[number]['value']>>({
+ field: 'created_at',
+ order: 'desc',
+ })
return (
<Sort
items={items}
- value={sort.replace(/^-/, '')}
- order={sort.startsWith('-') ? '-' : ''}
- onSelect={(next) => {
- onSelect(next)
+ value={sort}
+ onValueChange={(next) => {
+ onValueChange(next)
setSort(next)
}}
/>
)
}
render(<Harness />)
- const trigger = screen.getByRole('button', { name: /appLog.filter.sortBy/ })
+ const trigger = screen.getByRole('button', { name: /common.sorting.sortBy/ })
await user.click(trigger)
expect(screen.getByRole('menuitemradio', { name: 'Date Created' })).toHaveAttribute(
'aria-checked',
@@ -46,11 +61,37 @@ it('preserves direction when choosing a field and toggles it without losing the
'false',
)
await user.click(screen.getByRole('menuitemradio', { name: 'Name' }))
- expect(onSelect).toHaveBeenLastCalledWith('-name')
+ expect(onValueChange).toHaveBeenLastCalledWith({ field: 'name', order: 'desc' })
await waitFor(() => expect(screen.queryByRole('menu')).not.toBeInTheDocument())
expect(trigger).toHaveTextContent('Name')
- await user.click(screen.getByRole('button', { name: 'appLog.filter.ascending' }))
- expect(onSelect).toHaveBeenLastCalledWith('name')
- await user.click(screen.getByRole('button', { name: 'appLog.filter.descending' }))
- expect(onSelect).toHaveBeenLastCalledWith('-name')
+ const directionButton = screen.getByRole('button', { name: 'common.sorting.ascending' })
+ expect(directionButton).not.toHaveAttribute('aria-pressed')
+ await user.hover(directionButton)
+ expect(await screen.findByText('common.sorting.ascending')).toBeVisible()
+ await user.click(directionButton)
+ expect(onValueChange).toHaveBeenLastCalledWith({ field: 'name', order: 'asc' })
+ await waitFor(() =>
+ expect(screen.queryByText('common.sorting.descending')).not.toBeInTheDocument(),
+ )
+ await user.click(screen.getByRole('button', { name: 'common.sorting.descending' }))
+ expect(onValueChange).toHaveBeenLastCalledWith({ field: 'name', order: 'desc' })
+})
+it('preserves numeric field identifiers when selecting a field or changing direction', async () => {
+ const user = userEvent.setup()
+ const onValueChange = vi.fn()
+ render(
+ <Sort
+ items={[
+ { value: 0, name: 'First field' },
+ { value: 1, name: 'Second field' },
+ ]}
+ value={{ field: 0, order: 'desc' }}
+ onValueChange={onValueChange}
+ />,
+ )
+ await user.click(screen.getByRole('button', { name: 'common.sorting.ascending' }))
+ expect(onValueChange).toHaveBeenLastCalledWith({ field: 0, order: 'asc' })
+ await user.click(screen.getByRole('button', { name: /common.sorting.sortBy/ }))
+ await user.click(screen.getByRole('menuitemradio', { name: 'Second field' }))
+ expect(onValueChange).toHaveBeenLastCalledWith({ field: 1, order: 'desc' })
})
diff --git a/web/app/components/base/sort/__tests__/types.test-d.tsx b/web/app/components/base/sort/__tests__/types.test-d.tsx
new file mode 100644
index 00000000000..8f84573fcd9
--- /dev/null
+++ b/web/app/components/base/sort/__tests__/types.test-d.tsx
@@ -0,0 +1,70 @@
+import type { SortValue } from '../index'
+import { expectTypeOf } from 'vite-plus/test'
+import { Sort } from '../index'
+
+const items = [
+ { value: 'created_at', name: 'Created time' },
+ { value: 'updated_at', name: 'Updated time' },
+] as const
+
+export function sortValueTypeContract() {
+ return (
+ <Sort
+ items={items}
+ value={{ field: 'created_at', order: 'asc' }}
+ onValueChange={(value) => {
+ expectTypeOf(value.field).toEqualTypeOf<'created_at' | 'updated_at'>()
+ expectTypeOf(value.order).toEqualTypeOf<'asc' | 'desc'>()
+ }}
+ />
+ )
+}
+
+export function invalidSortFieldTypeContract() {
+ const onValueChange = (_value: SortValue<string>) => {}
+ return (
+ <Sort
+ items={items}
+ // @ts-expect-error Neither the value nor a broad callback can widen the fields from items.
+ value={{ field: 'unknown', order: 'asc' }}
+ onValueChange={onValueChange}
+ />
+ )
+}
+
+export function narrowSortCallbackTypeContract() {
+ return (
+ <Sort
+ items={items}
+ value={{ field: 'created_at', order: 'asc' }}
+ // @ts-expect-error The callback must handle every field in items.
+ onValueChange={(_value: SortValue<'created_at'>) => {}}
+ />
+ )
+}
+
+export function numericSortFieldTypeContract() {
+ return (
+ <Sort
+ items={[
+ { value: 0, name: 'First field' },
+ { value: 1, name: 'Second field' },
+ ]}
+ value={{ field: 0, order: 'desc' }}
+ onValueChange={(value) => {
+ expectTypeOf(value.field).toEqualTypeOf<0 | 1>()
+ }}
+ />
+ )
+}
+
+export function invalidSortOrderTypeContract() {
+ return (
+ <Sort
+ items={items}
+ // @ts-expect-error Transport prefixes are not sort directions.
+ value={{ field: 'created_at', order: '-' }}
+ onValueChange={() => {}}
+ />
+ )
+}
diff --git a/web/app/components/base/sort/index.stories.tsx b/web/app/components/base/sort/index.stories.tsx
index 9105b4f6b62..1b8f860f8f5 100644
--- a/web/app/components/base/sort/index.stories.tsx
+++ b/web/app/components/base/sort/index.stories.tsx
@@ -1,41 +1,29 @@
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
-import { useMemo, useState } from 'react'
-import Sort from '.'
+import type { SortValue } from '.'
+import { useState } from 'react'
+import { Sort } from '.'
const SORT_ITEMS = [
{ value: 'created_at', name: 'Created time' },
{ value: 'updated_at', name: 'Updated time' },
{ value: 'latency', name: 'Latency' },
-]
+] as const
const SortPlayground = () => {
- const [sortBy, setSortBy] = useState('-created_at')
-
- const { order, value } = useMemo(() => {
- const isDesc = sortBy.startsWith('-')
- return {
- order: isDesc ? '-' : '',
- value: sortBy.replace('-', '') || 'created_at',
- }
- }, [sortBy])
+ const [value, setValue] = useState<SortValue<(typeof SORT_ITEMS)[number]['value']>>({
+ field: 'created_at',
+ order: 'desc',
+ })
return (
<div className="flex w-full max-w-xl flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
<div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Sort control</span>
<code className="rounded-md bg-background-default px-2 py-1 text-[11px] text-text-tertiary">
- sort_by="
- {sortBy}"
+ {JSON.stringify(value)}
</code>
</div>
- <Sort
- order={order}
- value={value}
- items={SORT_ITEMS}
- onSelect={(next) => {
- setSortBy(next)
- }}
- />
+ <Sort value={value} items={SORT_ITEMS} onValueChange={setValue} />
</div>
)
}
diff --git a/web/app/components/base/sort/index.tsx b/web/app/components/base/sort/index.tsx
index 30f9c9a9dc4..23164a8e9cc 100644
--- a/web/app/components/base/sort/index.tsx
+++ b/web/app/components/base/sort/index.tsx
@@ -1,4 +1,3 @@
-import { cn } from '@langgenius/dify-ui/cn'
import {
DropdownMenu,
DropdownMenuContent,
@@ -7,49 +6,55 @@ import {
DropdownMenuRadioItemIndicator,
DropdownMenuTrigger,
} from '@langgenius/dify-ui/dropdown-menu'
-import { useMemo } from 'react'
+import { IconButton } from '@langgenius/dify-ui/icon-button'
+import { Tooltip, TooltipContent, TooltipTrigger } from '@langgenius/dify-ui/tooltip'
import { useTranslation } from 'react-i18next'
-type Item = {
- value: number | string
+type SortItem<Field extends string | number> = {
+ value: Field
name: string
-} & Record<string, unknown>
+}
-type Props = Readonly<{
- order?: string
- value: number | string
- items: Item[]
- onSelect: (value: string) => void
-}>
+export type SortValue<Field extends string | number> = {
+ field: Field
+ order: 'asc' | 'desc'
+}
-function Sort({ order = '', value, items, onSelect }: Props) {
- const { t } = useTranslation(['appLog'])
+type SortProps<Field extends string | number> = Readonly<{
+ value: SortValue<NoInfer<Field>>
+ items: readonly SortItem<Field>[]
+ onValueChange: (value: SortValue<NoInfer<Field>>) => void
+}>
- const triggerContent = useMemo(() => {
- return items.find((item) => item.value === value)?.name || ''
- }, [items, value])
+export function Sort<const Field extends string | number>({
+ value,
+ items,
+ onValueChange,
+}: SortProps<Field>) {
+ const { t } = useTranslation(['common'])
+ const nextOrder = value.order === 'desc' ? 'asc' : 'desc'
+ const nextOrderLabel =
+ nextOrder === 'asc'
+ ? t(($) => $['sorting.ascending'], { ns: 'common' })
+ : t(($) => $['sorting.descending'], { ns: 'common' })
+ const triggerContent = items.find((item) => item.value === value.field)?.name ?? ''
return (
- <div className="inline-flex max-w-full min-w-0 items-center gap-px">
+ <div className="inline-flex w-fit max-w-full min-w-0 items-center gap-px">
<DropdownMenu>
<div className="relative min-w-0 flex-1">
- <DropdownMenuTrigger className="flex min-h-8 min-w-0 cursor-pointer items-center rounded-l-lg border-none bg-components-input-bg-normal px-2 py-1 hover:bg-state-base-hover-alt data-popup-open:bg-state-base-hover-alt! data-popup-open:hover:bg-state-base-hover-alt">
- <div className="flex min-w-0 items-center gap-0.5 px-1">
- <div className="system-sm-regular text-text-tertiary">
- {t(($) => $['filter.sortBy'], { ns: 'appLog' })}
- </div>
- <div
- className={cn(
- 'min-w-0 system-sm-regular break-words text-text-tertiary',
- !!value && 'text-text-secondary',
- )}
- >
+ <DropdownMenuTrigger className="flex min-h-8 w-full min-w-0 items-center rounded-s-lg border-none bg-components-input-bg-normal px-2 py-1 hover:bg-state-base-hover-alt data-popup-open:bg-state-base-hover-alt! data-popup-open:hover:bg-state-base-hover-alt">
+ <span className="flex min-w-0 items-center gap-0.5 px-1">
+ <span className="system-sm-regular text-text-secondary">
+ {t(($) => $['sorting.sortBy'], { ns: 'common' })}
+ </span>
+ <span className="min-w-0 system-sm-regular wrap-anywhere text-text-secondary">
{triggerContent}
- </div>
- </div>
+ </span>
+ </span>
<span
aria-hidden
- className="i-ri-arrow-down-s-line size-4 shrink-0 text-text-tertiary"
+ className="i-ri-arrow-down-s-line size-4 shrink-0 text-text-tertiary forced-colors:text-[ButtonText] forced-colors:forced-color-adjust-none"
/>
</DropdownMenuTrigger>
<DropdownMenuContent
@@ -57,9 +62,9 @@ function Sort({ order = '', value, items, onSelect }: Props) {
sideOffset={4}
className="relative w-60 p-0"
>
- <DropdownMenuRadioGroup
- value={value}
- onValueChange={(nextValue) => onSelect(`${order}${nextValue}`)}
+ <DropdownMenuRadioGroup<Field>
+ value={value.field}
+ onValueChange={(field) => onValueChange({ field, order: value.order })}
className="max-h-72 overflow-auto p-1"
>
{items.map((item) => (
@@ -67,39 +72,41 @@ function Sort({ order = '', value, items, onSelect }: Props) {
key={item.value}
value={item.value}
closeOnClick
- className="mx-0 gap-2 py-1.5"
+ className="mx-0 h-auto min-h-8 gap-2 py-1.5"
>
- <div
- title={item.name}
- className="grow truncate system-sm-medium text-text-secondary"
- >
+ <div className="min-w-0 grow system-sm-medium wrap-anywhere text-text-secondary">
{item.name}
</div>
- <DropdownMenuRadioItemIndicator className="text-util-colors-blue-light-blue-light-600" />
+ <DropdownMenuRadioItemIndicator className="text-util-colors-blue-light-blue-light-600 forced-colors:text-[CanvasText] forced-colors:forced-color-adjust-none" />
</DropdownMenuRadioItem>
))}
</DropdownMenuRadioGroup>
</DropdownMenuContent>
</div>
</DropdownMenu>
- <button
- type="button"
- aria-label={t(($) => $[`filter.${order ? 'ascending' : 'descending'}`], { ns: 'appLog' })}
- className="shrink-0 cursor-pointer rounded-r-lg border-none bg-components-button-tertiary-bg p-2 outline-hidden hover:bg-components-button-tertiary-bg-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid"
- onClick={() => onSelect(`${order ? '' : '-'}${value}`)}
- >
- {!order && (
- <span aria-hidden className="i-ri-sort-asc size-4 text-components-button-tertiary-text" />
- )}
- {order && (
- <span
- aria-hidden
- className="i-ri-sort-desc size-4 text-components-button-tertiary-text"
- />
- )}
- </button>
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <IconButton
+ aria-label={nextOrderLabel}
+ data-order={value.order}
+ variant="tertiary"
+ size="lg"
+ className="group/sort-order shrink-0 rounded-s-none"
+ onClick={() => onValueChange({ field: value.field, order: nextOrder })}
+ >
+ <span
+ aria-hidden
+ className="grid size-4 forced-colors:text-[ButtonText] forced-colors:forced-color-adjust-none"
+ >
+ <span className="col-start-1 row-start-1 i-ri-sort-asc size-4 scale-95 opacity-0 transition-[opacity,scale] duration-150 ease-out group-data-[order=asc]/sort-order:scale-100 group-data-[order=asc]/sort-order:opacity-100 motion-reduce:transition-none" />
+ <span className="col-start-1 row-start-1 i-ri-sort-desc size-4 scale-95 opacity-0 transition-[opacity,scale] duration-150 ease-out group-data-[order=desc]/sort-order:scale-100 group-data-[order=desc]/sort-order:opacity-100 motion-reduce:transition-none" />
+ </span>
+ </IconButton>
+ }
+ />
+ <TooltipContent>{nextOrderLabel}</TooltipContent>
+ </Tooltip>
</div>
)
}
-
-export default Sort
diff --git a/web/app/components/datasets/documents/components/document-list/hooks/use-document-sort.ts b/web/app/components/datasets/documents/components/document-list/hooks/use-document-sort.ts
index 8d642fa3492..a63be1e0a2f 100644
--- a/web/app/components/datasets/documents/components/document-list/hooks/use-document-sort.ts
+++ b/web/app/components/datasets/documents/components/document-list/hooks/use-document-sort.ts
@@ -1,14 +1,14 @@
-import { useCallback, useMemo } from 'react'
+import type { SortType } from '@/service/datasets'
+import { useCallback } from 'react'
type RemoteSortField = 'hit_count' | 'created_at'
-const REMOTE_SORT_FIELDS = new Set<RemoteSortField>(['hit_count', 'created_at'])
export type SortField = RemoteSortField | null
export type SortOrder = 'asc' | 'desc'
type UseDocumentSortOptions = {
remoteSortValue: string
- onRemoteSortChange: (nextSortValue: string) => void
+ onRemoteSortChange: (nextSortValue: SortType) => void
}
export const useDocumentSort = ({
@@ -18,9 +18,7 @@ export const useDocumentSort = ({
const sortOrder: SortOrder = remoteSortValue.startsWith('-') ? 'desc' : 'asc'
const sortKey = remoteSortValue.startsWith('-') ? remoteSortValue.slice(1) : remoteSortValue
- const sortField = useMemo<SortField>(() => {
- return REMOTE_SORT_FIELDS.has(sortKey as RemoteSortField) ? (sortKey as RemoteSortField) : null
- }, [sortKey])
+ const sortField: SortField = sortKey === 'hit_count' || sortKey === 'created_at' ? sortKey : null
const handleSort = useCallback(
(field: SortField) => {
diff --git a/web/app/components/datasets/documents/components/documents-header.tsx b/web/app/components/datasets/documents/components/documents-header.tsx
index 905447dd645..8a2d986692f 100644
--- a/web/app/components/datasets/documents/components/documents-header.tsx
+++ b/web/app/components/datasets/documents/components/documents-header.tsx
@@ -10,7 +10,7 @@ import { useId, useMemo } from 'react'
import { useTranslation } from 'react-i18next'
import Chip from '@/app/components/base/chip'
import { SearchInput } from '@/app/components/base/search-input'
-import Sort from '@/app/components/base/sort'
+import { Sort } from '@/app/components/base/sort'
import AutoDisabledDocument from '@/app/components/datasets/common/document-status-with-action/auto-disabled-document'
import IndexFailed from '@/app/components/datasets/common/document-status-with-action/index-failed'
import StatusWithAction from '@/app/components/datasets/common/document-status-with-action/status-with-action'
@@ -39,7 +39,7 @@ type DocumentsHeaderProps = {
inputValue: string
onStatusFilterChange: (value: string) => void
onStatusFilterClear: () => void
- onSortChange: (value: string) => void
+ onSortChange: (value: SortType) => void
onInputChange: (value: string) => void
// Metadata modal
@@ -108,17 +108,18 @@ const DocumentsHeader: FC<DocumentsHeaderProps> = ({
[DOC_INDEX_STATUS_MAP, t],
)
- const sortItems: SelectOption[] = useMemo(
- () => [
- {
- value: 'created_at',
- name: t(($) => $['list.sort.uploadTime'], { ns: 'datasetDocuments' }) as string,
- },
- {
- value: 'hit_count',
- name: t(($) => $['list.sort.hitCount'], { ns: 'datasetDocuments' }) as string,
- },
- ],
+ const sortItems = useMemo(
+ () =>
+ [
+ {
+ value: 'created_at',
+ name: t(($) => $['list.sort.uploadTime'], { ns: 'datasetDocuments' }) as string,
+ },
+ {
+ value: 'hit_count',
+ name: t(($) => $['list.sort.hitCount'], { ns: 'datasetDocuments' }) as string,
+ },
+ ] as const,
[t],
)
@@ -174,10 +175,14 @@ const DocumentsHeader: FC<DocumentsHeaderProps> = ({
<SearchInput className="w-50!" value={inputValue} onValueChange={onInputChange} />
<div className="h-3.5 w-px bg-divider-regular"></div>
<Sort
- order={sortValue.startsWith('-') ? '-' : ''}
- value={sortValue.replace('-', '')}
+ value={{
+ field: sortValue.endsWith('hit_count') ? 'hit_count' : 'created_at',
+ order: sortValue.startsWith('-') ? 'desc' : 'asc',
+ }}
items={sortItems}
- onSelect={(value) => onSortChange(String(value))}
+ onValueChange={({ field, order }) =>
+ onSortChange(order === 'desc' ? `-${field}` : field)
+ }
/>
</div>
diff --git a/web/app/components/datasets/documents/components/list.tsx b/web/app/components/datasets/documents/components/list.tsx
index 6f39db0b21f..8737f14f7ad 100644
--- a/web/app/components/datasets/documents/components/list.tsx
+++ b/web/app/components/datasets/documents/components/list.tsx
@@ -1,6 +1,7 @@
'use client'
import type { DocumentWithSegmentsResponse } from '@dify/contracts/api/console/datasets/types.gen'
+import type { SortType } from '@/service/datasets'
import { Checkbox } from '@langgenius/dify-ui/checkbox'
import { CheckboxGroup } from '@langgenius/dify-ui/checkbox-group'
import { Pagination } from '@langgenius/dify-ui/pagination'
@@ -43,7 +44,7 @@ type DocumentListProps = {
onUpdate: () => void
onManageMetadata: () => void
remoteSortValue: string
- onSortChange: (value: string) => void
+ onSortChange: (value: SortType) => void
}
/**
diff --git a/web/app/components/datasets/documents/hooks/use-documents-page-state.ts b/web/app/components/datasets/documents/hooks/use-documents-page-state.ts
index 764cb4c20f5..ebd8da4fca9 100644
--- a/web/app/components/datasets/documents/hooks/use-documents-page-state.ts
+++ b/web/app/components/datasets/documents/hooks/use-documents-page-state.ts
@@ -57,10 +57,9 @@ export function useDocumentsPageState() {
}, [statusFilterValue, updateQuery])
const handleSortChange = useCallback(
- (value: string) => {
- const next = value as SortType
- if (next === sortValue) return
- updateQuery({ sort: next, page: 1 })
+ (value: SortType) => {
+ if (value === sortValue) return
+ updateQuery({ sort: value, page: 1 })
},
[sortValue, updateQuery],
)
diff --git a/web/features/agent-v2/agent-detail/logs/__tests__/page.spec.tsx b/web/features/agent-v2/agent-detail/logs/__tests__/page.spec.tsx
index e25adaec88e..805fcce82cf 100644
--- a/web/features/agent-v2/agent-detail/logs/__tests__/page.spec.tsx
+++ b/web/features/agent-v2/agent-detail/logs/__tests__/page.spec.tsx
@@ -296,7 +296,7 @@ describe('AgentLogsPage', () => {
expect(createdHeader).toHaveAttribute('aria-sort', 'descending')
expect(updatedHeader).not.toHaveAttribute('aria-sort')
- await user.click(screen.getByRole('button', { name: /appLog\.filter\.sortBy/ }))
+ await user.click(screen.getByRole('button', { name: /common\.sorting\.sortBy/ }))
await user.click(
await screen.findByRole('menuitemradio', {
name: 'agentV2.agentDetail.logs.filters.sort.lastUpdatedTime',
@@ -315,7 +315,7 @@ describe('AgentLogsPage', () => {
expect(createdHeader).not.toHaveAttribute('aria-sort')
expect(updatedHeader).toHaveAttribute('aria-sort', 'descending')
- await user.click(screen.getByRole('button', { name: 'appLog.filter.ascending' }))
+ await user.click(screen.getByRole('button', { name: 'common.sorting.ascending' }))
await waitFor(() => {
expect(getLatestLogsQueryInput().query).toEqual(
diff --git a/web/features/agent-v2/agent-detail/logs/page.tsx b/web/features/agent-v2/agent-detail/logs/page.tsx
index 08107cdbe19..e13e047196f 100644
--- a/web/features/agent-v2/agent-detail/logs/page.tsx
+++ b/web/features/agent-v2/agent-detail/logs/page.tsx
@@ -27,7 +27,7 @@ import { useState } from 'react'
import { useTranslation } from 'react-i18next'
import Chip from '@/app/components/base/chip'
import { SearchInput } from '@/app/components/base/search-input'
-import Sort from '@/app/components/base/sort'
+import { Sort } from '@/app/components/base/sort'
import { useDocLink } from '@/context/i18n'
import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
import { consoleQuery } from '@/service/console'
@@ -66,16 +66,6 @@ const getPeriodQuery = (period: PeriodKey) => {
}
}
-const parseSortValue = (value: string): AgentLogsSort => {
- const isDescending = value.startsWith('-')
- const field = isDescending ? value.slice(1) : value
-
- return {
- field: field === 'updated_at' ? 'updated_at' : 'created_at',
- order: isDescending ? 'desc' : 'asc',
- }
-}
-
export function AgentLogsPage({ agentId }: AgentLogsPageProps) {
const { t } = useTranslation(['agentV2'])
const { t: tCommon } = useTranslation(['common'])
@@ -201,8 +191,7 @@ export function AgentLogsPage({ agentId }: AgentLogsPageProps) {
<div className="ml-auto max-w-full">
<Sort
- order={sort.order === 'desc' ? '-' : ''}
- value={sort.field}
+ value={sort}
items={[
{
value: 'created_at',
@@ -213,9 +202,9 @@ export function AgentLogsPage({ agentId }: AgentLogsPageProps) {
name: t(($) => $['agentDetail.logs.filters.sort.lastUpdatedTime']),
},
]}
- onSelect={(nextSortValue) => {
+ onValueChange={(nextSortValue) => {
setPage(1)
- setSort(parseSortValue(nextSortValue))
+ setSort(nextSortValue)
}}
/>
</div>
diff --git a/web/i18n/locales/ar-TN/app-log.json b/web/i18n/locales/ar-TN/app-log.json
index ab52e22fec8..031c2d29e43 100644
--- a/web/i18n/locales/ar-TN/app-log.json
+++ b/web/i18n/locales/ar-TN/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "الكل",
"filter.annotation.annotated": "تحسينات موصوفة ({{count}})",
"filter.annotation.not_annotated": "غير موصوفة",
- "filter.ascending": "تصاعدي",
- "filter.descending": "تنازلي",
"filter.period.allTime": "كل الوقت",
"filter.period.custom": "مخصص",
"filter.period.last12months": "آخر 12 شهرًا",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "الربع حتى الآن",
"filter.period.today": "اليوم",
"filter.period.yearToDate": "السنة حتى الآن",
- "filter.sortBy": "رتب حسب:",
"monitoring.description": "يسجل الرصد حالة تشغيل التطبيق، بما في ذلك الأداء ونشاط المستخدمين والتكاليف.",
"retention.upgradeTip.description": "قم بالترقية للاحتفاظ بجميع السجلات التي يتم إنشاؤها بعد الترقية دون حد زمني؛ لا يمكن استعادة السجلات التي انتهت مدة الاحتفاظ بها قبل الترقية.",
"runDetail.fileListDetail": "تفاصيل",
diff --git a/web/i18n/locales/ar-TN/common.json b/web/i18n/locales/ar-TN/common.json
index 7a1e0a60093..a9475839e41 100644
--- a/web/i18n/locales/ar-TN/common.json
+++ b/web/i18n/locales/ar-TN/common.json
@@ -306,6 +306,9 @@
"sort.item": "العنصر {{position}}",
"sort.moved": "تم نقل {{item}} إلى الموضع {{position}} من {{count}}.",
"sort.started": "تم اختيار {{item}}، في الموضع {{position}} من {{count}}.",
+ "sorting.ascending": "ترتيب تصاعدي",
+ "sorting.descending": "ترتيب تنازلي",
+ "sorting.sortBy": "رتب حسب:",
"svgRenderer.generatingImage": "جارٍ إنشاء الصورة...",
"swaggerAPIAsToolPage.description": "استورد أي API كأداة باستخدام مواصفات OpenAPI/Swagger. اضبطها مرة واحدة وأعد استخدامها عبر workflows.",
"tag.addNew": "إضافة علامة جديدة",
diff --git a/web/i18n/locales/az-AZ/app-log.json b/web/i18n/locales/az-AZ/app-log.json
index d97c258a1a7..259417d143b 100644
--- a/web/i18n/locales/az-AZ/app-log.json
+++ b/web/i18n/locales/az-AZ/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Hamısı",
"filter.annotation.annotated": "Qeydlə işarələnmiş təkmilləşdirmələr ({{count}} element)",
"filter.annotation.not_annotated": "Qeyd edilməyib",
- "filter.ascending": "Artan sıra ilə",
- "filter.descending": "Azalan sıra ilə",
"filter.period.allTime": "Bütün vaxtlar",
"filter.period.custom": "Fərdi",
"filter.period.last12months": "Son 12 ay",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Rübün əvvəlindən bu günədək",
"filter.period.today": "Bu gün",
"filter.period.yearToDate": "İlin əvvəlindən bu günədək",
- "filter.sortBy": "Sıralama meyarı:",
"monitoring.description": "Monitorinq məhsuldarlıq, istifadəçi fəaliyyəti və xərclər daxil olmaqla tətbiqin işləmə vəziyyətini qeydə alır.",
"retention.upgradeTip.description": "Daha yüksək plana keçdikdən sonra yaradılan bütün jurnalları müddətsiz saxlamaq üçün planınızı yüksəldin. Əvvəllər saxlanma müddəti bitmiş jurnallar bərpa edilə bilməz.",
"runDetail.fileListDetail": "Təfərrüatlar",
diff --git a/web/i18n/locales/az-AZ/common.json b/web/i18n/locales/az-AZ/common.json
index 97587279eef..e705926b500 100644
--- a/web/i18n/locales/az-AZ/common.json
+++ b/web/i18n/locales/az-AZ/common.json
@@ -306,6 +306,9 @@
"sort.item": "{{position}} nömrəli element",
"sort.moved": "{{item}} elementi {{count}} mövqe arasında {{position}} nömrəli mövqeyə köçürüldü.",
"sort.started": "{{item}} elementi götürüldü, {{count}} mövqe arasında {{position}} nömrəli mövqedədir.",
+ "sorting.ascending": "Artan sıra ilə sırala",
+ "sorting.descending": "Azalan sıra ilə sırala",
+ "sorting.sortBy": "Sıralama meyarı:",
"svgRenderer.generatingImage": "Şəkil yaradılır…",
"swaggerAPIAsToolPage.description": "OpenAPI/Swagger spesifikasiyalarından istifadə edərək istənilən API-ni alət kimi idxal edin. Bir dəfə konfiqurasiya edin və iş axınlarınızda təkrar istifadə edin.",
"tag.addNew": "Yeni etiket əlavə et",
diff --git a/web/i18n/locales/de-DE/app-log.json b/web/i18n/locales/de-DE/app-log.json
index 74e4e891b0c..bc61923046a 100644
--- a/web/i18n/locales/de-DE/app-log.json
+++ b/web/i18n/locales/de-DE/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Alle",
"filter.annotation.annotated": "Markierte Verbesserungen ({{count}} Elemente)",
"filter.annotation.not_annotated": "Nicht annotiert",
- "filter.ascending": "aufsteigend",
- "filter.descending": "absteigend",
"filter.period.allTime": "Gesamte Zeit",
"filter.period.custom": "Benutzerdefiniert",
"filter.period.last12months": "Letzte 12 Monate",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Quartal bis heute",
"filter.period.today": "Heute",
"filter.period.yearToDate": "Jahr bis heute",
- "filter.sortBy": "Sortieren nach:",
"monitoring.description": "Das Monitoring zeichnet den Betriebsstatus der Anwendung auf, einschließlich Leistung, Nutzeraktivität und Kosten.",
"retention.upgradeTip.description": "Führen Sie ein Upgrade Ihres Plans durch, um alle danach erstellten Protokolle unbegrenzt aufzubewahren. Protokolle, deren Aufbewahrungsfrist vor dem Upgrade abgelaufen ist, können nicht wiederhergestellt werden.",
"runDetail.fileListDetail": "Detail",
diff --git a/web/i18n/locales/de-DE/common.json b/web/i18n/locales/de-DE/common.json
index cc6ea4a1fc8..b1a74b2392d 100644
--- a/web/i18n/locales/de-DE/common.json
+++ b/web/i18n/locales/de-DE/common.json
@@ -306,6 +306,9 @@
"sort.item": "Element {{position}}",
"sort.moved": "{{item}} auf Position {{position}} von {{count}} verschoben.",
"sort.started": "{{item}} aufgenommen, Position {{position}} von {{count}}.",
+ "sorting.ascending": "Aufsteigend sortieren",
+ "sorting.descending": "Absteigend sortieren",
+ "sorting.sortBy": "Sortieren nach:",
"svgRenderer.generatingImage": "Das Bild wird erstellt…",
"swaggerAPIAsToolPage.description": "Importiere jede API mithilfe von OpenAPI/Swagger-Spezifikationen als Tool. Einmal konfigurieren und in Workflows wiederverwenden.",
"tag.addNew": "Neues Tag hinzufügen",
diff --git a/web/i18n/locales/en-US/app-log.json b/web/i18n/locales/en-US/app-log.json
index 33f9c164c3b..61e21cbc517 100644
--- a/web/i18n/locales/en-US/app-log.json
+++ b/web/i18n/locales/en-US/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "All",
"filter.annotation.annotated": "Annotated Improvements ({{count}} items)",
"filter.annotation.not_annotated": "Not Annotated",
- "filter.ascending": "ascending",
- "filter.descending": "descending",
"filter.period.allTime": "All time",
"filter.period.custom": "Custom",
"filter.period.last12months": "Last 12 months",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Quarter to date",
"filter.period.today": "Today",
"filter.period.yearToDate": "Year to date",
- "filter.sortBy": "Sort by:",
"monitoring.description": "Monitoring records the running status of the application, including performance, user activity, and costs.",
"retention.upgradeTip.description": "Upgrade to retain all logs generated after upgrading with no time limit; previously expired logs can’t be recovered.",
"runDetail.fileListDetail": "Detail",
diff --git a/web/i18n/locales/en-US/common.json b/web/i18n/locales/en-US/common.json
index 3ae49eeb486..0590b473770 100644
--- a/web/i18n/locales/en-US/common.json
+++ b/web/i18n/locales/en-US/common.json
@@ -306,6 +306,9 @@
"sort.item": "Item {{position}}",
"sort.moved": "Moved {{item}} to position {{position}} of {{count}}.",
"sort.started": "Picked up {{item}}, position {{position}} of {{count}}.",
+ "sorting.ascending": "Sort ascending",
+ "sorting.descending": "Sort descending",
+ "sorting.sortBy": "Sort by:",
"svgRenderer.generatingImage": "Generating the image…",
"swaggerAPIAsToolPage.description": "Import any API as a tool using OpenAPI/Swagger specs. Configure once and reuse it across your workflows.",
"tag.addNew": "Add new tag",
diff --git a/web/i18n/locales/es-ES/app-log.json b/web/i18n/locales/es-ES/app-log.json
index f6fabe47ba1..b8d912a11af 100644
--- a/web/i18n/locales/es-ES/app-log.json
+++ b/web/i18n/locales/es-ES/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Todos",
"filter.annotation.annotated": "Mejoras Anotadas ({{count}} elementos)",
"filter.annotation.not_annotated": "No Anotadas",
- "filter.ascending": "ascendente",
- "filter.descending": "descendente",
"filter.period.allTime": "Todo el tiempo",
"filter.period.custom": "Personalizado",
"filter.period.last12months": "Últimos 12 meses",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Trimestre hasta la fecha",
"filter.period.today": "Hoy",
"filter.period.yearToDate": "Año hasta la fecha",
- "filter.sortBy": "Ordenar por:",
"monitoring.description": "La monitorización registra el estado de ejecución de la aplicación, incluyendo rendimiento, actividad de los usuarios y costes.",
"retention.upgradeTip.description": "Mejora tu plan para conservar indefinidamente todos los registros que se generen después de la mejora. Los registros que hayan caducado antes de la mejora no se pueden recuperar.",
"runDetail.fileListDetail": "Detalle",
diff --git a/web/i18n/locales/es-ES/common.json b/web/i18n/locales/es-ES/common.json
index bcb39bc00e1..3cab87b3a6e 100644
--- a/web/i18n/locales/es-ES/common.json
+++ b/web/i18n/locales/es-ES/common.json
@@ -306,6 +306,9 @@
"sort.item": "Elemento {{position}}",
"sort.moved": "{{item}} movido a la posición {{position}} de {{count}}.",
"sort.started": "{{item}} seleccionado, posición {{position}} de {{count}}.",
+ "sorting.ascending": "Ordenar de forma ascendente",
+ "sorting.descending": "Ordenar de forma descendente",
+ "sorting.sortBy": "Ordenar por:",
"svgRenderer.generatingImage": "Generando la imagen…",
"swaggerAPIAsToolPage.description": "Importa cualquier API como herramienta usando especificaciones OpenAPI/Swagger. Configúrala una vez y reutilízala en tus workflows.",
"tag.addNew": "Agregar nueva etiqueta",
diff --git a/web/i18n/locales/fa-IR/app-log.json b/web/i18n/locales/fa-IR/app-log.json
index 2e7263e882c..a6730dbd86c 100644
--- a/web/i18n/locales/fa-IR/app-log.json
+++ b/web/i18n/locales/fa-IR/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "همه",
"filter.annotation.annotated": "بهبودهای حاشیه‌نویسی شده ({{count}} آیتم)",
"filter.annotation.not_annotated": "حاشیه‌نویسی نشده",
- "filter.ascending": "صعودی",
- "filter.descending": "نزولی",
"filter.period.allTime": "همه زمان‌ها",
"filter.period.custom": "سفارشی",
"filter.period.last12months": "12 ماه گذشته",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "از ابتدای فصل تاکنون",
"filter.period.today": "امروز",
"filter.period.yearToDate": "از ابتدای سال تاکنون",
- "filter.sortBy": "مرتب‌سازی بر اساس:",
"monitoring.description": "مانیتورینگ وضعیت اجرای برنامه را ثبت می‌کند، از جمله عملکرد، فعالیت کاربران و هزینه‌ها.",
"retention.upgradeTip.description": "طرح خود را ارتقا دهید تا همه لاگ‌های ایجادشده پس از ارتقا بدون محدودیت زمانی نگهداری شوند؛ لاگ‌هایی که پیش از ارتقا منقضی شده‌اند قابل بازیابی نیستند.",
"runDetail.fileListDetail": "جزئیات",
diff --git a/web/i18n/locales/fa-IR/common.json b/web/i18n/locales/fa-IR/common.json
index 26339daa2ec..e2d5e60a60b 100644
--- a/web/i18n/locales/fa-IR/common.json
+++ b/web/i18n/locales/fa-IR/common.json
@@ -306,6 +306,9 @@
"sort.item": "مورد {{position}}",
"sort.moved": "{{item}} به جایگاه {{position}} از {{count}} منتقل شد.",
"sort.started": "{{item}} انتخاب شد، جایگاه {{position}} از {{count}}.",
+ "sorting.ascending": "مرتب‌سازی صعودی",
+ "sorting.descending": "مرتب‌سازی نزولی",
+ "sorting.sortBy": "مرتب‌سازی بر اساس:",
"svgRenderer.generatingImage": "در حال تولید تصویر…",
"swaggerAPIAsToolPage.description": "هر API را با مشخصات OpenAPI/Swagger به‌عنوان ابزار وارد کنید. یک‌بار پیکربندی کنید و در workflowها دوباره استفاده کنید.",
"tag.addNew": "افزودن برچسب جدید",
diff --git a/web/i18n/locales/fr-FR/app-log.json b/web/i18n/locales/fr-FR/app-log.json
index 45f91f2df79..ed6d85de7fd 100644
--- a/web/i18n/locales/fr-FR/app-log.json
+++ b/web/i18n/locales/fr-FR/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Tous",
"filter.annotation.annotated": "Améliorations annotées ({{count}} éléments)",
"filter.annotation.not_annotated": "Non annoté",
- "filter.ascending": "croissant",
- "filter.descending": "décroissant",
"filter.period.allTime": "Tout le temps",
"filter.period.custom": "Personnalisé",
"filter.period.last12months": "12 derniers mois",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Trimestre à ce jour",
"filter.period.today": "Aujourd'hui",
"filter.period.yearToDate": "Année à ce jour",
- "filter.sortBy": "Trier par :",
"monitoring.description": "Le monitoring enregistre l’état de fonctionnement de l’application, notamment les performances, l’activité des utilisateurs et les coûts.",
"retention.upgradeTip.description": "Passez à une offre supérieure pour conserver sans limite de durée tous les journaux générés après la mise à niveau. Les journaux dont la durée de conservation a expiré avant la mise à niveau ne peuvent pas être récupérés.",
"runDetail.fileListDetail": "Détail",
diff --git a/web/i18n/locales/fr-FR/common.json b/web/i18n/locales/fr-FR/common.json
index 573482e181f..8cebadd7c45 100644
--- a/web/i18n/locales/fr-FR/common.json
+++ b/web/i18n/locales/fr-FR/common.json
@@ -306,6 +306,9 @@
"sort.item": "Élément {{position}}",
"sort.moved": "{{item}} déplacé à la position {{position}} sur {{count}}.",
"sort.started": "{{item}} sélectionné, position {{position}} sur {{count}}.",
+ "sorting.ascending": "Trier par ordre croissant",
+ "sorting.descending": "Trier par ordre décroissant",
+ "sorting.sortBy": "Trier par :",
"svgRenderer.generatingImage": "Génération de l’image…",
"swaggerAPIAsToolPage.description": "Importez n’importe quelle API comme outil avec des spécifications OpenAPI/Swagger. Configurez-la une fois et réutilisez-la dans vos workflows.",
"tag.addNew": "Ajouter une nouvelle balise",
diff --git a/web/i18n/locales/hi-IN/app-log.json b/web/i18n/locales/hi-IN/app-log.json
index 5669df57648..f0733ee1e05 100644
--- a/web/i18n/locales/hi-IN/app-log.json
+++ b/web/i18n/locales/hi-IN/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "सभी",
"filter.annotation.annotated": "एनोटेट किए गए सुधार ({{count}} आइटम)",
"filter.annotation.not_annotated": "एनोटेट नहीं किया गया",
- "filter.ascending": "आरोही",
- "filter.descending": "अवरोही",
"filter.period.allTime": "सभी समय",
"filter.period.custom": "कस्टम",
"filter.period.last12months": "पिछले 12 महीने",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "तिमाही तक तिथि",
"filter.period.today": "आज",
"filter.period.yearToDate": "वर्ष तक तिथि",
- "filter.sortBy": "इसके अनुसार क्रमबद्ध करें:",
"monitoring.description": "मॉनिटरिंग एप्लिकेशन की रनिंग स्थिति रिकॉर्ड करती है, जिसमें प्रदर्शन, उपयोगकर्ता गतिविधि और लागतें शामिल हैं।",
"retention.upgradeTip.description": "अपग्रेड करें और उसके बाद जनरेट किए गए सभी लॉग बिना किसी समय सीमा के सुरक्षित रखें; अपग्रेड से पहले समाप्त हो चुके लॉग पुनर्प्राप्त नहीं किए जा सकते।",
"runDetail.fileListDetail": "विस्तार",
diff --git a/web/i18n/locales/hi-IN/common.json b/web/i18n/locales/hi-IN/common.json
index 26a8f0f9c22..f4c4fc5a371 100644
--- a/web/i18n/locales/hi-IN/common.json
+++ b/web/i18n/locales/hi-IN/common.json
@@ -306,6 +306,9 @@
"sort.item": "आइटम {{position}}",
"sort.moved": "{{item}} को {{count}} में से स्थान {{position}} पर ले जाया गया।",
"sort.started": "{{item}} चुना गया, {{count}} में से स्थान {{position}}।",
+ "sorting.ascending": "आरोही क्रम में क्रमबद्ध करें",
+ "sorting.descending": "अवरोही क्रम में क्रमबद्ध करें",
+ "sorting.sortBy": "इसके अनुसार क्रमबद्ध करें:",
"svgRenderer.generatingImage": "इमेज बनाई जा रही है…",
"swaggerAPIAsToolPage.description": "OpenAPI/Swagger स्पेक्स का उपयोग करके किसी भी API को टूल के रूप में आयात करें। एक बार कॉन्फ़िगर करें और workflows में पुनः उपयोग करें।",
"tag.addNew": "नया टैग जोड़ें",
diff --git a/web/i18n/locales/id-ID/app-log.json b/web/i18n/locales/id-ID/app-log.json
index 9384daa9f34..d9419a699d2 100644
--- a/web/i18n/locales/id-ID/app-log.json
+++ b/web/i18n/locales/id-ID/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Semua",
"filter.annotation.annotated": "Peningkatan yang Diberi Catatan ({{count}} item)",
"filter.annotation.not_annotated": "Tidak Beranotasi",
- "filter.ascending": "Naik",
- "filter.descending": "Turun",
"filter.period.allTime": "Sepanjang masa",
"filter.period.custom": "Kustom",
"filter.period.last12months": "12 bulan terakhir",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Kuartal hingga saat ini",
"filter.period.today": "Hari Ini",
"filter.period.yearToDate": "Tahun hingga saat ini",
- "filter.sortBy": "Urutkan berdasarkan",
"monitoring.description": "Monitoring mencatat status berjalan aplikasi, termasuk performa, aktivitas pengguna, dan biaya.",
"retention.upgradeTip.description": "Tingkatkan paket untuk menyimpan semua log yang dibuat setelah upgrade tanpa batas waktu; log yang kedaluwarsa sebelum upgrade tidak dapat dipulihkan.",
"runDetail.fileListDetail": "Detail",
diff --git a/web/i18n/locales/id-ID/common.json b/web/i18n/locales/id-ID/common.json
index d638150cdab..2434a26ecc2 100644
--- a/web/i18n/locales/id-ID/common.json
+++ b/web/i18n/locales/id-ID/common.json
@@ -306,6 +306,9 @@
"sort.item": "Item {{position}}",
"sort.moved": "{{item}} dipindahkan ke posisi {{position}} dari {{count}}.",
"sort.started": "{{item}} dipilih, posisi {{position}} dari {{count}}.",
+ "sorting.ascending": "Urutkan secara menaik",
+ "sorting.descending": "Urutkan secara menurun",
+ "sorting.sortBy": "Urutkan berdasarkan",
"svgRenderer.generatingImage": "Sedang membuat gambar…",
"swaggerAPIAsToolPage.description": "Impor API apa pun sebagai alat menggunakan spesifikasi OpenAPI/Swagger. Konfigurasikan sekali dan gunakan kembali di workflow Anda.",
"tag.addNew": "Tambahkan tag baru",
diff --git a/web/i18n/locales/it-IT/app-log.json b/web/i18n/locales/it-IT/app-log.json
index 9f3564e3d65..9da63b8fe9f 100644
--- a/web/i18n/locales/it-IT/app-log.json
+++ b/web/i18n/locales/it-IT/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Tutti",
"filter.annotation.annotated": "Miglioramenti Annotati ({{count}} elementi)",
"filter.annotation.not_annotated": "Non Annotati",
- "filter.ascending": "crescente",
- "filter.descending": "decrescente",
"filter.period.allTime": "Tutto il tempo",
"filter.period.custom": "Personalizzato",
"filter.period.last12months": "Ultimi 12 mesi",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Trimestre corrente",
"filter.period.today": "Oggi",
"filter.period.yearToDate": "Anno corrente",
- "filter.sortBy": "Ordina per:",
"monitoring.description": "Il monitoraggio registra lo stato di esecuzione dell’applicazione, inclusi prestazioni, attività degli utenti e costi.",
"retention.upgradeTip.description": "Passa a un piano superiore per conservare senza limiti di tempo tutti i log generati dopo l'upgrade. I log scaduti prima dell'upgrade non possono essere recuperati.",
"runDetail.fileListDetail": "Dettaglio",
diff --git a/web/i18n/locales/it-IT/common.json b/web/i18n/locales/it-IT/common.json
index 8255c81bef7..a78f9b0d6b1 100644
--- a/web/i18n/locales/it-IT/common.json
+++ b/web/i18n/locales/it-IT/common.json
@@ -306,6 +306,9 @@
"sort.item": "Elemento {{position}}",
"sort.moved": "{{item}} spostato alla posizione {{position}} di {{count}}.",
"sort.started": "{{item}} selezionato, posizione {{position}} di {{count}}.",
+ "sorting.ascending": "Ordina in modo crescente",
+ "sorting.descending": "Ordina in modo decrescente",
+ "sorting.sortBy": "Ordina per:",
"svgRenderer.generatingImage": "Generazione dell’immagine…",
"swaggerAPIAsToolPage.description": "Importa qualsiasi API come strumento usando specifiche OpenAPI/Swagger. Configurala una volta e riutilizzala nei workflow.",
"tag.addNew": "Aggiungi nuovo tag",
diff --git a/web/i18n/locales/ja-JP/app-log.json b/web/i18n/locales/ja-JP/app-log.json
index 1e5b7c8ea66..e9b9b851566 100644
--- a/web/i18n/locales/ja-JP/app-log.json
+++ b/web/i18n/locales/ja-JP/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "すべて",
"filter.annotation.annotated": "注釈付きの改善 ({{count}} アイテム)",
"filter.annotation.not_annotated": "注釈なし",
- "filter.ascending": "昇順",
- "filter.descending": "降順",
"filter.period.allTime": "すべての期間",
"filter.period.custom": "カスタム",
"filter.period.last12months": "過去 12 ヶ月",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "四半期初から今日まで",
"filter.period.today": "今日",
"filter.period.yearToDate": "年初から今日まで",
- "filter.sortBy": "並べ替え",
"monitoring.description": "モニタリングは、パフォーマンス、ユーザー活動、コストを含むアプリケーションの実行状況を記録します。",
"retention.upgradeTip.description": "アップグレード後に生成されたログを無期限に保存できます。すでに期限切れとなったログは復元できません。",
"runDetail.fileListDetail": "詳細",
diff --git a/web/i18n/locales/ja-JP/common.json b/web/i18n/locales/ja-JP/common.json
index 3ad430ae937..171a5bbc666 100644
--- a/web/i18n/locales/ja-JP/common.json
+++ b/web/i18n/locales/ja-JP/common.json
@@ -306,6 +306,9 @@
"sort.item": "項目 {{position}}",
"sort.moved": "{{item}} を {{count}} 件中 {{position}} 番目に移動しました。",
"sort.started": "{{item}} を選択しました。{{count}} 件中 {{position}} 番目です。",
+ "sorting.ascending": "昇順で並べ替え",
+ "sorting.descending": "降順で並べ替え",
+ "sorting.sortBy": "並べ替え",
"svgRenderer.generatingImage": "画像を生成しています…",
"swaggerAPIAsToolPage.description": "OpenAPI/Swagger 仕様を使って任意の API をツールとして取り込めます。一度設定すれば、複数のワークフローで再利用できます。",
"tag.addNew": "新しいタグを追加",
diff --git a/web/i18n/locales/ko-KR/app-log.json b/web/i18n/locales/ko-KR/app-log.json
index baeaed880ab..9f609dd4d29 100644
--- a/web/i18n/locales/ko-KR/app-log.json
+++ b/web/i18n/locales/ko-KR/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "모두",
"filter.annotation.annotated": "향상 주석 ({{count}} 개 항목)",
"filter.annotation.not_annotated": "주석 없음",
- "filter.ascending": "오름차순",
- "filter.descending": "내림차순",
"filter.period.allTime": "모든 기간",
"filter.period.custom": "사용자 정의",
"filter.period.last12months": "지난 12 개월",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "분기 초부터 오늘까지",
"filter.period.today": "오늘",
"filter.period.yearToDate": "연 초부터 오늘까지",
- "filter.sortBy": "정렬 기준:",
"monitoring.description": "모니터링은 성능, 사용자 활동, 비용을 포함한 애플리케이션 실행 상태를 기록합니다.",
"retention.upgradeTip.description": "업그레이드하면 업그레이드 후 생성된 모든 로그를 기간 제한 없이 보관할 수 있습니다. 업그레이드 전에 만료된 로그는 복구할 수 없습니다.",
"runDetail.fileListDetail": "세부",
diff --git a/web/i18n/locales/ko-KR/common.json b/web/i18n/locales/ko-KR/common.json
index 8dd5f81dc5f..ffd3b57ece6 100644
--- a/web/i18n/locales/ko-KR/common.json
+++ b/web/i18n/locales/ko-KR/common.json
@@ -306,6 +306,9 @@
"sort.item": "항목 {{position}}",
"sort.moved": "{{item}} 항목을 {{count}}개 중 {{position}}번째로 이동했습니다.",
"sort.started": "{{item}} 선택됨. {{count}}개 중 {{position}}번째입니다.",
+ "sorting.ascending": "오름차순 정렬",
+ "sorting.descending": "내림차순 정렬",
+ "sorting.sortBy": "정렬 기준:",
"svgRenderer.generatingImage": "이미지를 생성하고 있습니다…",
"swaggerAPIAsToolPage.description": "OpenAPI/Swagger 사양을 사용해 모든 API를 도구로 가져오세요. 한 번 구성하고 workflow 전반에서 재사용할 수 있습니다.",
"tag.addNew": "새 태그 추가",
diff --git a/web/i18n/locales/lo-LA/app-log.json b/web/i18n/locales/lo-LA/app-log.json
index 1ff3ce7ca1f..109e4063b5e 100644
--- a/web/i18n/locales/lo-LA/app-log.json
+++ b/web/i18n/locales/lo-LA/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "ທັງໝົດ",
"filter.annotation.annotated": "ການປັບປຸງທີ່ໝາຍເຫດໄວ້ ({{count}} ລາຍການ)",
"filter.annotation.not_annotated": "ຍັງບໍ່ໄດ້ໝາຍເຫດ",
- "filter.ascending": "ນ້ອຍຫາຫຼາຍ",
- "filter.descending": "ຫຼາຍຫານ້ອຍ",
"filter.period.allTime": "ທັງໝົດ",
"filter.period.custom": "ກຳນົດເອງ",
"filter.period.last12months": "12 ເດືອນຫຼ້າສຸດ",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "ຕົ້ນໄຕມາດເຖິງປັດຈຸບັນ",
"filter.period.today": "ມື້ນີ້",
"filter.period.yearToDate": "ຕົ້ນປີເຖິງປັດຈຸບັນ",
- "filter.sortBy": "ລຽງລຳດັບໂດຍ:",
"monitoring.description": "ການຕິດຕາມກວດກາບັນທຶກສະຖານະການເຮັດວຽກຂອງແອັບພລິເຄຊັນ, ລວມທັງປະສິດທິພາບ, ກິດຈະກຳຂອງຜູ້ໃຊ້ ແລະ ຄ່າໃຊ້ຈ່າຍ.",
"retention.upgradeTip.description": "ອັບເກຣດເພື່ອຮັກສາບັນທຶກທັງໝົດທີ່ສ້າງຂຶ້ນຫຼັງຈາກການອັບເກຣດໂດຍບໍ່ຈຳກັດເວລາ; ບັນທຶກທີ່ໝົດອາຍຸໃນເມື່ອກ່ອນບໍ່ສາມາດກູ້ຄືນໄດ້.",
"runDetail.fileListDetail": "ລາຍລະອຽດ",
diff --git a/web/i18n/locales/lo-LA/common.json b/web/i18n/locales/lo-LA/common.json
index a0c3882afb6..84862cf2a91 100644
--- a/web/i18n/locales/lo-LA/common.json
+++ b/web/i18n/locales/lo-LA/common.json
@@ -306,6 +306,9 @@
"sort.item": "ລາຍການ {{position}}",
"sort.moved": "ຍ້າຍ {{item}} ໄປລຳດັບ {{position}} ຈາກ {{count}} ແລ້ວ.",
"sort.started": "ເລືອກ {{item}} ແລ້ວ, ລຳດັບ {{position}} ຈາກ {{count}}.",
+ "sorting.ascending": "ລຽງຈາກນ້ອຍຫາຫຼາຍ",
+ "sorting.descending": "ລຽງຈາກຫຼາຍຫານ້ອຍ",
+ "sorting.sortBy": "ລຽງລຳດັບໂດຍ:",
"svgRenderer.generatingImage": "ກຳລັງສ້າງຮູບພາບ…",
"swaggerAPIAsToolPage.description": "ນຳເຂົ້າ API ໃດໆເປັນເຄື່ອງມືໂດຍໃຊ້ OpenAPI/Swagger specs. ຕັ້ງຄ່າຄັ້ງດຽວ ແລະ ນຳໃຊ້ຄືນໃໝ່ໃນ Workflows ຂອງທ່ານ.",
"tag.addNew": "ເພີ່ມແທັກໃໝ່",
diff --git a/web/i18n/locales/nl-NL/app-log.json b/web/i18n/locales/nl-NL/app-log.json
index 53d8e29e05f..4169dade500 100644
--- a/web/i18n/locales/nl-NL/app-log.json
+++ b/web/i18n/locales/nl-NL/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "All",
"filter.annotation.annotated": "Annotated Improvements ({{count}} items)",
"filter.annotation.not_annotated": "Not Annotated",
- "filter.ascending": "ascending",
- "filter.descending": "descending",
"filter.period.allTime": "All time",
"filter.period.custom": "Custom",
"filter.period.last12months": "Last 12 months",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Quarter to date",
"filter.period.today": "Today",
"filter.period.yearToDate": "Year to date",
- "filter.sortBy": "Sort by:",
"monitoring.description": "Monitoring registreert de actieve status van de applicatie, inclusief prestaties, gebruikersactiviteit en kosten.",
"retention.upgradeTip.description": "Upgrade uw abonnement om alle logs die daarna worden gegenereerd onbeperkt te bewaren. Logs waarvan de bewaartermijn vóór de upgrade was verstreken, kunnen niet worden hersteld.",
"runDetail.fileListDetail": "Detail",
diff --git a/web/i18n/locales/nl-NL/common.json b/web/i18n/locales/nl-NL/common.json
index f11c095392c..670eab98578 100644
--- a/web/i18n/locales/nl-NL/common.json
+++ b/web/i18n/locales/nl-NL/common.json
@@ -306,6 +306,9 @@
"sort.item": "Item {{position}}",
"sort.moved": "{{item}} verplaatst naar positie {{position}} van {{count}}.",
"sort.started": "{{item}} opgepakt, positie {{position}} van {{count}}.",
+ "sorting.ascending": "Oplopend sorteren",
+ "sorting.descending": "Aflopend sorteren",
+ "sorting.sortBy": "Sorteren op:",
"svgRenderer.generatingImage": "De afbeelding wordt gegenereerd…",
"swaggerAPIAsToolPage.description": "Importeer elke API als tool met OpenAPI/Swagger-specificaties. Configureer eenmaal en hergebruik in je workflows.",
"tag.addNew": "Add new tag",
diff --git a/web/i18n/locales/pl-PL/app-log.json b/web/i18n/locales/pl-PL/app-log.json
index 022835d57ad..26380e04412 100644
--- a/web/i18n/locales/pl-PL/app-log.json
+++ b/web/i18n/locales/pl-PL/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Wszystkie",
"filter.annotation.annotated": "Zanotowane usprawnienia ({{count}} elementów)",
"filter.annotation.not_annotated": "Nie zanotowane",
- "filter.ascending": "rosnąco",
- "filter.descending": "malejąco",
"filter.period.allTime": "Cały czas",
"filter.period.custom": "Niestandardowy",
"filter.period.last12months": "Ostatnie 12 miesięcy",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Od początku kwartału",
"filter.period.today": "Dzisiaj",
"filter.period.yearToDate": "Od początku roku",
- "filter.sortBy": "Sortuj według:",
"monitoring.description": "Monitoring rejestruje stan działania aplikacji, w tym wydajność, aktywność użytkowników i koszty.",
"retention.upgradeTip.description": "Przejdź na wyższy plan, aby bezterminowo przechowywać wszystkie logi wygenerowane po zmianie planu. Logów, których okres przechowywania upłynął przed zmianą planu, nie można odzyskać.",
"runDetail.fileListDetail": "Detal",
diff --git a/web/i18n/locales/pl-PL/common.json b/web/i18n/locales/pl-PL/common.json
index 17fa1ebe6b0..6f85fa2815e 100644
--- a/web/i18n/locales/pl-PL/common.json
+++ b/web/i18n/locales/pl-PL/common.json
@@ -306,6 +306,9 @@
"sort.item": "Element {{position}}",
"sort.moved": "Przeniesiono {{item}} na pozycję {{position}} z {{count}}.",
"sort.started": "Wybrano {{item}}, pozycja {{position}} z {{count}}.",
+ "sorting.ascending": "Sortuj rosnąco",
+ "sorting.descending": "Sortuj malejąco",
+ "sorting.sortBy": "Sortuj według:",
"svgRenderer.generatingImage": "Generowanie obrazu…",
"swaggerAPIAsToolPage.description": "Importuj dowolne API jako narzędzie przy użyciu specyfikacji OpenAPI/Swagger. Skonfiguruj raz i używaj ponownie w workflowach.",
"tag.addNew": "Dodaj nowy tag",
diff --git a/web/i18n/locales/pt-BR/app-log.json b/web/i18n/locales/pt-BR/app-log.json
index 2b5fe031f74..91cc343680e 100644
--- a/web/i18n/locales/pt-BR/app-log.json
+++ b/web/i18n/locales/pt-BR/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Tudo",
"filter.annotation.annotated": "Melhorias Anotadas ({{count}} itens)",
"filter.annotation.not_annotated": "Não Anotado",
- "filter.ascending": "crescente",
- "filter.descending": "decrescente",
"filter.period.allTime": "Todo o tempo",
"filter.period.custom": "Personalizado",
"filter.period.last12months": "Últimos 12 meses",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Trimestre até hoje",
"filter.period.today": "Hoje",
"filter.period.yearToDate": "Ano até hoje",
- "filter.sortBy": "Ordenar por:",
"monitoring.description": "O monitoramento registra o status de execução do aplicativo, incluindo desempenho, atividade dos usuários e custos.",
"retention.upgradeTip.description": "Faça upgrade do seu plano para armazenar por tempo indeterminado todos os logs gerados após o upgrade. Logs cujo período de retenção expirou antes do upgrade não podem ser recuperados.",
"runDetail.fileListDetail": "Detalhe",
diff --git a/web/i18n/locales/pt-BR/common.json b/web/i18n/locales/pt-BR/common.json
index 03418de4753..243843689f0 100644
--- a/web/i18n/locales/pt-BR/common.json
+++ b/web/i18n/locales/pt-BR/common.json
@@ -306,6 +306,9 @@
"sort.item": "Item {{position}}",
"sort.moved": "{{item}} movido para a posição {{position}} de {{count}}.",
"sort.started": "{{item}} selecionado, posição {{position}} de {{count}}.",
+ "sorting.ascending": "Ordenar em ordem crescente",
+ "sorting.descending": "Ordenar em ordem decrescente",
+ "sorting.sortBy": "Ordenar por:",
"svgRenderer.generatingImage": "Gerando a imagem…",
"swaggerAPIAsToolPage.description": "Importe qualquer API como ferramenta usando especificações OpenAPI/Swagger. Configure uma vez e reutilize nos seus workflows.",
"tag.addNew": "Adicionar nova tag",
diff --git a/web/i18n/locales/ro-RO/app-log.json b/web/i18n/locales/ro-RO/app-log.json
index 71808544672..59eac82303f 100644
--- a/web/i18n/locales/ro-RO/app-log.json
+++ b/web/i18n/locales/ro-RO/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Toate",
"filter.annotation.annotated": "Îmbunătățiri annotate ({{count}} elemente)",
"filter.annotation.not_annotated": "Fără annotări",
- "filter.ascending": "crescător",
- "filter.descending": "descrescător",
"filter.period.allTime": "Tot timpul",
"filter.period.custom": "Personalizat",
"filter.period.last12months": "Ultimele 12 luni",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Trimestrul curent",
"filter.period.today": "Astăzi",
"filter.period.yearToDate": "Anul curent",
- "filter.sortBy": "Sortează după:",
"monitoring.description": "Monitorizarea înregistrează starea de funcționare a aplicației, inclusiv performanța, activitatea utilizatorilor și costurile.",
"retention.upgradeTip.description": "Treci la un plan superior pentru a păstra pe termen nelimitat toate jurnalele generate după upgrade. Jurnalele al căror termen de păstrare a expirat înainte de upgrade nu pot fi recuperate.",
"runDetail.fileListDetail": "Amănunt",
diff --git a/web/i18n/locales/ro-RO/common.json b/web/i18n/locales/ro-RO/common.json
index 906a2dbdd26..75f508d225b 100644
--- a/web/i18n/locales/ro-RO/common.json
+++ b/web/i18n/locales/ro-RO/common.json
@@ -306,6 +306,9 @@
"sort.item": "Elementul {{position}}",
"sort.moved": "{{item}} mutat la poziția {{position}} din {{count}}.",
"sort.started": "{{item}} selectat, poziția {{position}} din {{count}}.",
+ "sorting.ascending": "Sortează crescător",
+ "sorting.descending": "Sortează descrescător",
+ "sorting.sortBy": "Sortează după:",
"svgRenderer.generatingImage": "Se generează imaginea…",
"swaggerAPIAsToolPage.description": "Importă orice API ca instrument folosind specificații OpenAPI/Swagger. Configurează o dată și reutilizează în workflowuri.",
"tag.addNew": "Adăugați o etichetă nouă",
diff --git a/web/i18n/locales/ru-RU/app-log.json b/web/i18n/locales/ru-RU/app-log.json
index 5acb678c065..bc70af8a687 100644
--- a/web/i18n/locales/ru-RU/app-log.json
+++ b/web/i18n/locales/ru-RU/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Все",
"filter.annotation.annotated": "Аннотированные улучшения ({{count}} элементов)",
"filter.annotation.not_annotated": "Не аннотировано",
- "filter.ascending": "по возрастанию",
- "filter.descending": "по убыванию",
"filter.period.allTime": "Все время",
"filter.period.custom": "Кастомный",
"filter.period.last12months": "Последние 12 месяцев",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "С начала квартала",
"filter.period.today": "Сегодня",
"filter.period.yearToDate": "С начала года",
- "filter.sortBy": "Сортировать по:",
"monitoring.description": "Мониторинг записывает состояние работы приложения, включая производительность, активность пользователей и затраты.",
"retention.upgradeTip.description": "Перейдите на более высокий тариф, чтобы бессрочно хранить все логи, созданные после обновления тарифа. Логи, срок хранения которых истёк до обновления тарифа, восстановить нельзя.",
"runDetail.fileListDetail": "Подробность",
diff --git a/web/i18n/locales/ru-RU/common.json b/web/i18n/locales/ru-RU/common.json
index c59d738dfbc..2ebcd836b39 100644
--- a/web/i18n/locales/ru-RU/common.json
+++ b/web/i18n/locales/ru-RU/common.json
@@ -306,6 +306,9 @@
"sort.item": "Элемент {{position}}",
"sort.moved": "{{item}} перемещён на позицию {{position}} из {{count}}.",
"sort.started": "Выбран {{item}}, позиция {{position}} из {{count}}.",
+ "sorting.ascending": "Сортировать по возрастанию",
+ "sorting.descending": "Сортировать по убыванию",
+ "sorting.sortBy": "Сортировать по:",
"svgRenderer.generatingImage": "Изображение создается…",
"swaggerAPIAsToolPage.description": "Импортируйте любой API как инструмент с помощью спецификаций OpenAPI/Swagger. Настройте один раз и повторно используйте в workflow.",
"tag.addNew": "Добавить новый тег",
diff --git a/web/i18n/locales/sl-SI/app-log.json b/web/i18n/locales/sl-SI/app-log.json
index 46f281fc71a..7f12c61f499 100644
--- a/web/i18n/locales/sl-SI/app-log.json
+++ b/web/i18n/locales/sl-SI/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Vse",
"filter.annotation.annotated": "Označene izboljšave ({{count}} elementov)",
"filter.annotation.not_annotated": "Neoznačene",
- "filter.ascending": "naraščajoče",
- "filter.descending": "padajoče",
"filter.period.allTime": "Vse obdobje",
"filter.period.custom": "Po meri",
"filter.period.last12months": "Zadnjih 12 mesecev",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Četrtletje do danes",
"filter.period.today": "Danes",
"filter.period.yearToDate": "Leto do danes",
- "filter.sortBy": "Razvrsti po:",
"monitoring.description": "Spremljanje beleži stanje delovanja aplikacije, vključno z zmogljivostjo, dejavnostjo uporabnikov in stroški.",
"retention.upgradeTip.description": "Nadgradite paket, da se bodo vsi dnevniki, ustvarjeni po nadgradnji, hranili brez časovne omejitve. Dnevnikov, ki jim je pred nadgradnjo potekel rok hrambe, ni mogoče obnoviti.",
"runDetail.fileListDetail": "Podrobnosti",
diff --git a/web/i18n/locales/sl-SI/common.json b/web/i18n/locales/sl-SI/common.json
index c7e6ed6a26a..2b79472b67a 100644
--- a/web/i18n/locales/sl-SI/common.json
+++ b/web/i18n/locales/sl-SI/common.json
@@ -306,6 +306,9 @@
"sort.item": "Element {{position}}",
"sort.moved": "{{item}} premaknjen na položaj {{position}} od {{count}}.",
"sort.started": "{{item}} izbran, položaj {{position}} od {{count}}.",
+ "sorting.ascending": "Razvrsti naraščajoče",
+ "sorting.descending": "Razvrsti padajoče",
+ "sorting.sortBy": "Razvrsti po:",
"svgRenderer.generatingImage": "Ustvarjanje slike…",
"swaggerAPIAsToolPage.description": "Uvozite kateri koli API kot orodje z uporabo specifikacij OpenAPI/Swagger. Nastavite enkrat in ponovno uporabite v workflowih.",
"tag.addNew": "Dodajanje nove oznake",
diff --git a/web/i18n/locales/th-TH/app-log.json b/web/i18n/locales/th-TH/app-log.json
index 6b40dfcd479..b623e3676fd 100644
--- a/web/i18n/locales/th-TH/app-log.json
+++ b/web/i18n/locales/th-TH/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "ทั้งหมด",
"filter.annotation.annotated": "การปรับปรุงที่มีคําอธิบายประกอบ ({{count}} รายการ)",
"filter.annotation.not_annotated": "ไม่มีคําอธิบายประกอบ",
- "filter.ascending": "จากน้อยไปมาก",
- "filter.descending": "จากมากไปหาน้อย",
"filter.period.allTime": "ตลอดเวลา",
"filter.period.custom": "กำหนดเอง",
"filter.period.last12months": "12 เดือนที่ผ่านมา",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "ไตรมาสจนถึงปัจจุบัน",
"filter.period.today": "วันนี้",
"filter.period.yearToDate": "ปีจนถึงปัจจุบัน",
- "filter.sortBy": "เมืองสีดํา:",
"monitoring.description": "การมอนิเตอร์บันทึกสถานะการทำงานของแอปพลิเคชัน รวมถึงประสิทธิภาพ กิจกรรมผู้ใช้ และค่าใช้จ่าย",
"retention.upgradeTip.description": "อัปเกรดเพื่อเก็บบันทึกทั้งหมดที่สร้างขึ้นหลังการอัปเกรดไว้โดยไม่จำกัดเวลา บันทึกที่หมดอายุก่อนการอัปเกรดไม่สามารถกู้คืนได้",
"runDetail.fileListDetail": "รายละเอียด",
diff --git a/web/i18n/locales/th-TH/common.json b/web/i18n/locales/th-TH/common.json
index a65f6f43f65..f9bff65445e 100644
--- a/web/i18n/locales/th-TH/common.json
+++ b/web/i18n/locales/th-TH/common.json
@@ -306,6 +306,9 @@
"sort.item": "รายการที่ {{position}}",
"sort.moved": "ย้าย {{item}} ไปยังตำแหน่ง {{position}} จาก {{count}} แล้ว",
"sort.started": "เลือกรายการ {{item}} แล้ว อยู่ที่ตำแหน่ง {{position}} จาก {{count}}",
+ "sorting.ascending": "เรียงจากน้อยไปมาก",
+ "sorting.descending": "เรียงจากมากไปน้อย",
+ "sorting.sortBy": "จัดเรียงตาม:",
"svgRenderer.generatingImage": "กำลังสร้างรูปภาพ…",
"swaggerAPIAsToolPage.description": "นำเข้า API ใด ๆ เป็นเครื่องมือด้วยสเปก OpenAPI/Swagger กำหนดค่าเพียงครั้งเดียวแล้วนำกลับมาใช้ซ้ำใน workflow ได้",
"tag.addNew": "เพิ่มแท็กใหม่",
diff --git a/web/i18n/locales/tr-TR/app-log.json b/web/i18n/locales/tr-TR/app-log.json
index 3ffbd440900..28bc6cd7d31 100644
--- a/web/i18n/locales/tr-TR/app-log.json
+++ b/web/i18n/locales/tr-TR/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Hepsi",
"filter.annotation.annotated": "Açıklamalı İyileştirmeler ({{count}} öğe)",
"filter.annotation.not_annotated": "Açıklanmamış",
- "filter.ascending": "artan",
- "filter.descending": "azalan",
"filter.period.allTime": "Tüm Zamanlar",
"filter.period.custom": "Özel",
"filter.period.last12months": "Son 12 Ay",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Çeyrek Başlangıcından İtibaren",
"filter.period.today": "Bugün",
"filter.period.yearToDate": "Yıl Başlangıcından İtibaren",
- "filter.sortBy": "Sıralama ölçütü:",
"monitoring.description": "İzleme, performans, kullanıcı etkinliği ve maliyetler dahil olmak üzere uygulamanın çalışma durumunu kaydeder.",
"retention.upgradeTip.description": "Yükseltme sonrasında oluşturulan tüm günlükleri süresiz olarak saklamak için planınızı yükseltin. Yükseltmeden önce süresi dolan günlükler kurtarılamaz.",
"runDetail.fileListDetail": "Ayrıntı",
diff --git a/web/i18n/locales/tr-TR/common.json b/web/i18n/locales/tr-TR/common.json
index ca33f5ed686..35535a20eef 100644
--- a/web/i18n/locales/tr-TR/common.json
+++ b/web/i18n/locales/tr-TR/common.json
@@ -306,6 +306,9 @@
"sort.item": "Öğe {{position}}",
"sort.moved": "{{item}}, {{count}} öğeden {{position}}. sıraya taşındı.",
"sort.started": "{{item}} seçildi, {{count}} öğeden {{position}}. sırada.",
+ "sorting.ascending": "Artan düzende sırala",
+ "sorting.descending": "Azalan düzende sırala",
+ "sorting.sortBy": "Sıralama ölçütü:",
"svgRenderer.generatingImage": "Görsel oluşturuluyor…",
"swaggerAPIAsToolPage.description": "OpenAPI/Swagger özelliklerini kullanarak herhangi bir API’yi araç olarak içe aktarın. Bir kez yapılandırın ve workflowlarda yeniden kullanın.",
"tag.addNew": "Yeni etiket ekle",
diff --git a/web/i18n/locales/uk-UA/app-log.json b/web/i18n/locales/uk-UA/app-log.json
index 6f156bf0357..8fb8b9f6051 100644
--- a/web/i18n/locales/uk-UA/app-log.json
+++ b/web/i18n/locales/uk-UA/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Всі",
"filter.annotation.annotated": "Покращення з Анотацією ({{count}} елементів)",
"filter.annotation.not_annotated": "Без Анотації",
- "filter.ascending": "зростаючий",
- "filter.descending": "спадаючий",
"filter.period.allTime": "За весь час",
"filter.period.custom": "Користувацький",
"filter.period.last12months": "Останні 12 місяців",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Квартал до сьогодні",
"filter.period.today": "Сьогодні",
"filter.period.yearToDate": "Рік до сьогодні",
- "filter.sortBy": "Сортувати за:",
"monitoring.description": "Моніторинг фіксує робочий стан застосунку, зокрема продуктивність, активність користувачів і витрати.",
"retention.upgradeTip.description": "Перейдіть на вищий тариф, щоб безстроково зберігати всі логи, створені після оновлення тарифу. Логи, термін зберігання яких минув до оновлення тарифу, відновити неможливо.",
"runDetail.fileListDetail": "Деталь",
diff --git a/web/i18n/locales/uk-UA/common.json b/web/i18n/locales/uk-UA/common.json
index d3057c7e722..7e2b314a22b 100644
--- a/web/i18n/locales/uk-UA/common.json
+++ b/web/i18n/locales/uk-UA/common.json
@@ -306,6 +306,9 @@
"sort.item": "Елемент {{position}}",
"sort.moved": "{{item}} переміщено на позицію {{position}} з {{count}}.",
"sort.started": "Вибрано {{item}}, позиція {{position}} з {{count}}.",
+ "sorting.ascending": "Сортувати за зростанням",
+ "sorting.descending": "Сортувати за спаданням",
+ "sorting.sortBy": "Сортувати за:",
"svgRenderer.generatingImage": "Зображення створюється…",
"swaggerAPIAsToolPage.description": "Імпортуйте будь-який API як інструмент за допомогою специфікацій OpenAPI/Swagger. Налаштуйте один раз і повторно використовуйте у workflow.",
"tag.addNew": "Додати новий тег",
diff --git a/web/i18n/locales/vi-VN/app-log.json b/web/i18n/locales/vi-VN/app-log.json
index f538f3e73c2..f1e666c4992 100644
--- a/web/i18n/locales/vi-VN/app-log.json
+++ b/web/i18n/locales/vi-VN/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "Tất cả",
"filter.annotation.annotated": "Đã chú thích ({{count}} mục)",
"filter.annotation.not_annotated": "Chưa chú thích",
- "filter.ascending": "tăng dần",
- "filter.descending": "giảm dần",
"filter.period.allTime": "Tất cả thời gian",
"filter.period.custom": "Tùy chỉnh",
"filter.period.last12months": "12 tháng qua",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "Quý hiện tại",
"filter.period.today": "Hôm nay",
"filter.period.yearToDate": "Năm hiện tại",
- "filter.sortBy": "Sắp xếp theo:",
"monitoring.description": "Giám sát ghi lại trạng thái hoạt động của ứng dụng, bao gồm hiệu suất, hoạt động người dùng và chi phí.",
"retention.upgradeTip.description": "Nâng cấp để lưu giữ vô thời hạn tất cả log được tạo sau khi nâng cấp; không thể khôi phục các log đã hết hạn trước khi nâng cấp.",
"runDetail.fileListDetail": "Chi tiết",
diff --git a/web/i18n/locales/vi-VN/common.json b/web/i18n/locales/vi-VN/common.json
index 8a15c1a67e1..69f0e92dd6b 100644
--- a/web/i18n/locales/vi-VN/common.json
+++ b/web/i18n/locales/vi-VN/common.json
@@ -306,6 +306,9 @@
"sort.item": "Mục {{position}}",
"sort.moved": "Đã chuyển {{item}} đến vị trí {{position}} trên {{count}}.",
"sort.started": "Đã chọn {{item}}, vị trí {{position}} trên {{count}}.",
+ "sorting.ascending": "Sắp xếp tăng dần",
+ "sorting.descending": "Sắp xếp giảm dần",
+ "sorting.sortBy": "Sắp xếp theo:",
"svgRenderer.generatingImage": "Đang tạo hình ảnh…",
"swaggerAPIAsToolPage.description": "Nhập bất kỳ API nào làm công cụ bằng đặc tả OpenAPI/Swagger. Cấu hình một lần và tái sử dụng trong các workflow.",
"tag.addNew": "Thêm thẻ mới",
diff --git a/web/i18n/locales/zh-Hans/app-log.json b/web/i18n/locales/zh-Hans/app-log.json
index 49ffbb2a479..3b8dbd20db0 100644
--- a/web/i18n/locales/zh-Hans/app-log.json
+++ b/web/i18n/locales/zh-Hans/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "全部",
"filter.annotation.annotated": "已标注改进({{count}} 项)",
"filter.annotation.not_annotated": "未标注",
- "filter.ascending": "升序",
- "filter.descending": "降序",
"filter.period.allTime": "所有时间",
"filter.period.custom": "自定义",
"filter.period.last12months": "过去 12 月",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "本季度至今",
"filter.period.today": "今天",
"filter.period.yearToDate": "本年至今",
- "filter.sortBy": "排序:",
"monitoring.description": "监控记录应用的运行情况,包括性能、用户活动和成本。",
"retention.upgradeTip.description": "升级即可无限期保留升级后生成的日志;此前已过期的日志无法恢复。",
"runDetail.fileListDetail": "详情",
diff --git a/web/i18n/locales/zh-Hans/common.json b/web/i18n/locales/zh-Hans/common.json
index bac989b13ca..7dc7a891e77 100644
--- a/web/i18n/locales/zh-Hans/common.json
+++ b/web/i18n/locales/zh-Hans/common.json
@@ -306,6 +306,9 @@
"sort.item": "第 {{position}} 项",
"sort.moved": "已将 {{item}} 移至第 {{position}} 项,共 {{count}} 项。",
"sort.started": "已选取 {{item}},当前为第 {{position}} 项,共 {{count}} 项。",
+ "sorting.ascending": "按升序排序",
+ "sorting.descending": "按降序排序",
+ "sorting.sortBy": "排序:",
"svgRenderer.generatingImage": "图片生成中...",
"swaggerAPIAsToolPage.description": "使用 OpenAPI/Swagger 规范将任意 API 导入为工具。一次配置,即可在所有工作流中复用。",
"tag.addNew": "创建新标签",
diff --git a/web/i18n/locales/zh-Hant/app-log.json b/web/i18n/locales/zh-Hant/app-log.json
index 5d60ca534a1..f25674649d0 100644
--- a/web/i18n/locales/zh-Hant/app-log.json
+++ b/web/i18n/locales/zh-Hant/app-log.json
@@ -56,8 +56,6 @@
"filter.annotation.all": "全部",
"filter.annotation.annotated": "已標註改進({{count}} 項)",
"filter.annotation.not_annotated": "未標註",
- "filter.ascending": "升序",
- "filter.descending": "降序",
"filter.period.allTime": "所有時間",
"filter.period.custom": "自訂",
"filter.period.last12months": "過去 12 月",
@@ -69,7 +67,6 @@
"filter.period.quarterToDate": "本季度至今",
"filter.period.today": "今天",
"filter.period.yearToDate": "本年至今",
- "filter.sortBy": "排序:",
"monitoring.description": "監控記錄應用的執行情況,包括效能、使用者活動和成本。",
"retention.upgradeTip.description": "升級即可無限期保留升級後產生的日誌;此前已過期的日誌無法復原。",
"runDetail.fileListDetail": "細節",
diff --git a/web/i18n/locales/zh-Hant/common.json b/web/i18n/locales/zh-Hant/common.json
index 18a1d1b08c9..a20af392932 100644
--- a/web/i18n/locales/zh-Hant/common.json
+++ b/web/i18n/locales/zh-Hant/common.json
@@ -306,6 +306,9 @@
"sort.item": "第 {{position}} 項",
"sort.moved": "已將 {{item}} 移至第 {{position}} 項,共 {{count}} 項。",
"sort.started": "已選取 {{item}},目前為第 {{position}} 項,共 {{count}} 項。",
+ "sorting.ascending": "按升冪排序",
+ "sorting.descending": "按降冪排序",
+ "sorting.sortBy": "排序:",
"svgRenderer.generatingImage": "圖片生成中...",
"swaggerAPIAsToolPage.description": "使用 OpenAPI/Swagger 規格將任意 API 作為工具匯入。設定一次,即可在工作流程中重複使用。",
"tag.addNew": "建立新標籤",
diff --git a/web/i18n/resources.generated.d.ts b/web/i18n/resources.generated.d.ts
index da1f981b528..f156b3574b6 100644
--- a/web/i18n/resources.generated.d.ts
+++ b/web/i18n/resources.generated.d.ts
@@ -1325,8 +1325,6 @@ export default interface Resources {
'filter.annotation.all': 'All'
'filter.annotation.annotated': 'Annotated Improvements ({{count}} items)'
'filter.annotation.not_annotated': 'Not Annotated'
- 'filter.ascending': 'ascending'
- 'filter.descending': 'descending'
'filter.period.allTime': 'All time'
'filter.period.custom': 'Custom'
'filter.period.last12months': 'Last 12 months'
@@ -1338,7 +1336,6 @@ export default interface Resources {
'filter.period.quarterToDate': 'Quarter to date'
'filter.period.today': 'Today'
'filter.period.yearToDate': 'Year to date'
- 'filter.sortBy': 'Sort by:'
'monitoring.description': 'Monitoring records the running status of the application, including performance, user activity, and costs.'
'retention.upgradeTip.description': 'Upgrade to retain all logs generated after upgrading with no time limit; previously expired logs can’t be recovered.'
'runDetail.fileListDetail': 'Detail'
@@ -1937,6 +1934,9 @@ export default interface Resources {
'sort.item': 'Item {{position}}'
'sort.moved': 'Moved {{item}} to position {{position}} of {{count}}.'
'sort.started': 'Picked up {{item}}, position {{position}} of {{count}}.'
+ 'sorting.ascending': 'Sort ascending'
+ 'sorting.descending': 'Sort descending'
+ 'sorting.sortBy': 'Sort by:'
'svgRenderer.generatingImage': 'Generating the image…'
'swaggerAPIAsToolPage.description': 'Import any API as a tool using OpenAPI/Swagger specs. Configure once and reuse it across your workflows.'
'tag.addNew': 'Add new tag'