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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(web): remove copy action from error toasts (#45110)
yyhc82867521de7
diff --git a/packages/dify-ui/src/toast/index.tsx b/packages/dify-ui/src/toast/index.tsxindex fb17d52f650..1217d41bc8b 100644--- a/packages/dify-ui/src/toast/index.tsx+++ b/packages/dify-ui/src/toast/index.tsx@@ -53,21 +53,12 @@ type ToastPromiseOptions<Value> = {error: ToastPromiseResultOption<unknown>}-type ToastCardProps = {- toast: ToastObject<ToastData>- /** Additional content composed inside the card. */- children?: React.ReactNode-}-type ToasterOffset = Pick<React.CSSProperties, 'top' | 'right'>-// `children` fills the viewport and defaults to a `ToastCard` per toast; compose `useToasts` to-// customize it.-type ToasterProps = Pick<BaseToast.Provider.Props, 'timeout' | 'limit'> &- Pick<BaseToast.Viewport.Props, 'children'> & {- toastManager: ToastManager- offset?: ToasterOffset- }+type ToasterProps = Pick<BaseToast.Provider.Props, 'timeout' | 'limit'> & {+ toastManager: ToastManager+ offset?: ToasterOffset+}type ToastDismiss = (toastId?: string) => voidtype ToastCall = (title: React.ReactNode, options: ToastOptions) => string@@ -150,7 +141,7 @@ function createToastManager(): ToastManager {return BaseToast.createToastManager<ToastData>()}-function ToastCard({ toast: toastItem, children }: ToastCardProps) {+function ToastCard({ toast: toastItem }: { toast: ToastObject<ToastData> }) {return (<BaseToast.Roottoast={toastItem}@@ -202,7 +193,6 @@ function ToastCard({ toast: toastItem, children }: ToastCardProps) {<BaseToast.Description className="mt-1 min-w-0 system-xs-regular wrap-break-word text-text-secondary" /><BaseToast.Action render={<Button />} className="mt-2" /></div>- {children}<div className="flex shrink-0 items-center justify-center rounded-md p-0.5"><BaseToast.Closearia-label={toastCloseLabel}@@ -220,22 +210,12 @@ function ToastCard({ toast: toastItem, children }: ToastCardProps) {)}-function useToasts(): ToastObject<ToastData>[] {- return BaseToast.useToastManager<ToastData>().toasts-}-function ToastCards() {- const toasts = useToasts()+ const { toasts } = BaseToast.useToastManager<ToastData>()return toasts.map((item) => <ToastCard key={item.id} toast={item} />)}-function Toaster({- toastManager,- timeout,- limit,- offset,- children = <ToastCards />,-}: ToasterProps) {+function Toaster({ toastManager, timeout, limit, offset }: ToasterProps) {return (<BaseToast.Provider toastManager={toastManager} timeout={timeout} limit={limit}><BaseToast.Portal>@@ -247,13 +227,13 @@ function Toaster({}style={offset}>- {children}+ <ToastCards /></BaseToast.Viewport></BaseToast.Portal></BaseToast.Provider>)}-export { createToast, createToastManager, ToastCard, Toaster, useToasts }+export { createToast, createToastManager, Toaster }-export type { ToastApi, ToastCardProps, ToasterProps, ToastManager, ToastType }+export type { ToastApi, ToasterProps, ToastManager, ToastType }diff --git a/web/.storybook/main.ts b/web/.storybook/main.tsindex d493da8194b..e5bf0ee65e4 100644--- a/web/.storybook/main.ts+++ b/web/.storybook/main.ts@@ -4,7 +4,6 @@ const config: StorybookConfig = {stories: ['../app/components/**/*.stories.@(js|jsx|mjs|ts|tsx)','../features/**/*.stories.@(js|jsx|mjs|ts|tsx)',- '../app/notifications/**/*.stories.@(js|jsx|mjs|ts|tsx)',],addons: [// Not working with Storybook Vite frameworkdiff --git a/web/app/notifications/__tests__/copy.browser.spec.tsx b/web/app/notifications/__tests__/copy.browser.spec.tsxdeleted file mode 100644index 97a9e803f8f..00000000000--- a/web/app/notifications/__tests__/copy.browser.spec.tsx+++ /dev/null@@ -1,84 +0,0 @@-import { createToast, createToastManager } from '@langgenius/dify-ui/toast'-import { page, userEvent } from 'vite-plus/test/browser'-import { render } from 'vitest-browser-react'-import { AppToaster } from '../app-toaster'--// Real CSS and pointer hit testing prove the hidden floating action can be discovered-// and clicked without overflowing the card or starting swipe-to-dismiss.-it('reveals a contained copy action on hover at 360px and keeps the card open after copying', async () => {- await page.viewport(360, 800)- const writeText = vi.spyOn(navigator.clipboard, 'writeText').mockResolvedValue(undefined)- const manager = createToastManager()- const toast = createToast(manager)- try {- const screen = await render(- <>- <button type="button" style={{ position: 'fixed', bottom: 16, left: 16 }}>- Outside notifications- </button>- <AppToaster manager={manager} timeout={0} />- </>,- )- const outside = screen.getByRole('button', { name: 'Outside notifications' })- await userEvent.hover(outside)- toast.error('Upload failed', {- description: 'Storage connection refused. Please retry the request.',- })- const card = screen.getByRole('dialog', { name: 'Upload failed' })- const copy = screen.getByRole('button', { name: 'common.operation.copyErrorDetails' })- await expect.element(copy).toHaveStyle({ opacity: '0' })- await userEvent.hover(card)- await expect.element(copy).toHaveStyle({ opacity: '1' })- const cardBounds = card.element().getBoundingClientRect()- const buttonBounds = copy.element().getBoundingClientRect()- expect(buttonBounds.left).toBeGreaterThanOrEqual(cardBounds.left)- expect(buttonBounds.right).toBeLessThanOrEqual(cardBounds.right)- expect(buttonBounds.top).toBeGreaterThanOrEqual(cardBounds.top)- expect(buttonBounds.bottom).toBeLessThanOrEqual(cardBounds.bottom)- await userEvent.click(copy)- await expect- .element(screen.getByRole('button', { name: 'common.operation.copied' }))- .toHaveStyle({ opacity: '1' })- expect(writeText).toHaveBeenCalledExactlyOnceWith(- 'Upload failed\nStorage connection refused. Please retry the request.',- )- await expect.element(card).toBeInTheDocument()- await userEvent.hover(outside)- await expect- .element(screen.getByRole('button', { name: 'common.operation.copied' }))- .toHaveStyle({ opacity: '0' })- await userEvent.hover(card)- await userEvent.click(screen.getByRole('button', { name: 'Close notification' }))- await expect.element(card).not.toBeInTheDocument()- } finally {- toast.dismiss()- writeText.mockRestore()- await page.viewport(1280, 720)- }-})--it('reveals the action for keyboard focus and supports reverse tabbing', async () => {- const manager = createToastManager()- const toast = createToast(manager)- try {- const screen = await render(<AppToaster manager={manager} timeout={0} />)- toast.error('Keyboard error')- const card = screen.getByRole('dialog', { name: 'Keyboard error' })- const copy = screen.getByRole('button', { name: 'common.operation.copyErrorDetails' })- await expect.element(copy).toHaveStyle({ opacity: '0' })- await userEvent.keyboard('{F6}')- await expect.element(screen.getByRole('region', { name: 'Notifications' })).toHaveFocus()- await userEvent.keyboard('{Tab}')- await expect.element(card).toHaveFocus()- await expect.element(copy).toHaveStyle({ opacity: '1' })- await userEvent.keyboard('{Tab}')- await expect.element(copy).toHaveFocus()- await expect.element(copy).toHaveStyle({ opacity: '1' })- await userEvent.keyboard('{Tab}')- await expect.element(screen.getByRole('button', { name: 'Close notification' })).toHaveFocus()- await userEvent.keyboard('{Shift>}{Tab}{/Shift}')- await expect.element(copy).toHaveFocus()- } finally {- toast.dismiss()- }-})diff --git a/web/app/notifications/__tests__/toast.spec.tsx b/web/app/notifications/__tests__/toast.spec.tsxdeleted file mode 100644index 18ee7f2ff6f..00000000000--- a/web/app/notifications/__tests__/toast.spec.tsx+++ /dev/null@@ -1,217 +0,0 @@-import { createToast, createToastManager } from '@langgenius/dify-ui/toast'-import { act, render, screen, waitFor, within } from '@testing-library/react'-import userEvent from '@testing-library/user-event'-import { AppToaster } from '../app-toaster'--const copy = vi.fn()-const clipboardDescriptor = Object.getOwnPropertyDescriptor(navigator, 'clipboard')-const execCommandDescriptor = Object.getOwnPropertyDescriptor(document, 'execCommand')--beforeEach(() => {- vi.clearAllMocks()- Object.defineProperty(document, 'execCommand', { configurable: true, value: vi.fn(() => false) })- vi.mocked(copy).mockResolvedValue(undefined)-})--function setup() {- const manager = createToastManager()- const toast = createToast(manager)- render(<AppToaster manager={manager} timeout={0} />)- const user = userEvent.setup()- Object.defineProperty(navigator, 'clipboard', { configurable: true, value: { writeText: copy } })- return { toast, user }-}--afterEach(() => {- if (clipboardDescriptor) Object.defineProperty(navigator, 'clipboard', clipboardDescriptor)- else Reflect.deleteProperty(navigator, 'clipboard')- if (execCommandDescriptor) Object.defineProperty(document, 'execCommand', execCommandDescriptor)- else Reflect.deleteProperty(document, 'execCommand')-})--it('copies the complete error text and shows feedback in the existing action', async () => {- const { toast, user } = setup()- act(() => {- toast.error('Upload failed', { description: 'Storage unavailable' })- })- await user.click(await screen.findByRole('button', { name: 'common.operation.copyErrorDetails' }))- expect(copy).toHaveBeenCalledExactlyOnceWith('Upload failed\nStorage unavailable')- expect(await screen.findByRole('button', { name: 'common.operation.copied' })).toBeInTheDocument()- expect(screen.getAllByRole('dialog')).toHaveLength(1)-})--it('preserves caller actions and does not extract rich content', async () => {- const { toast, user } = setup()- const retry = vi.fn()- act(() => {- toast.error('Retryable', { actionProps: { children: 'Retry', onClick: retry } })- toast.error(<strong>Rich error</strong>)- })- await user.click(screen.getByRole('button', { name: 'Retry' }))- expect(retry).toHaveBeenCalledOnce()- await user.click(screen.getByRole('button', { name: 'common.operation.copyErrorDetails' }))- expect(copy).toHaveBeenCalledWith('Retryable')- expect(- within(screen.getByRole('dialog', { name: 'Rich error' })).queryByRole('button', {- name: 'common.operation.copyErrorDetails',- }),- ).not.toBeInTheDocument()-})--it('updates copy content and removes generated actions when the tone changes', async () => {- const { toast, user } = setup()- let id = ''- act(() => {- id = toast('First error', { type: 'error' })- })- await user.click(screen.getByRole('button', { name: 'common.operation.copyErrorDetails' }))- act(() => {- toast.update(id, { title: 'Updated error' })- })- // Updating the card must not remount the focused copy action.- const action = screen.getByRole('button', { name: 'common.operation.copyErrorDetails' })- expect(action).toHaveFocus()- await user.click(action)- expect(copy).toHaveBeenLastCalledWith('Updated error')- act(() => {- toast.update(id, { type: 'success', title: 'Recovered' })- })- expect(screen.queryByRole('button', { name: 'common.operation.copied' })).not.toBeInTheDocument()-})--it('does not let an old clipboard result change an upserted error', async () => {- let finish!: () => void- vi.mocked(copy).mockReturnValueOnce(- new Promise<void>((resolve) => {- finish = resolve- }),- )- const { toast, user } = setup()- act(() => {- toast.error('Old error', { id: 'request' })- })- await user.click(screen.getByRole('button', { name: 'common.operation.copyErrorDetails' }))- act(() => {- toast.error('New error', { id: 'request' })- })- await act(async () => {- finish()- })- expect(screen.queryByRole('button', { name: 'common.operation.copied' })).not.toBeInTheDocument()- await user.click(screen.getByRole('button', { name: 'common.operation.copyErrorDetails' }))- expect(copy).toHaveBeenLastCalledWith('New error')-})--it('allows retrying a rejected clipboard operation without another toast', async () => {- vi.mocked(copy).mockRejectedValueOnce(new Error('Denied'))- const { toast, user } = setup()- act(() => {- toast.error('Network error')- })- await user.click(screen.getByRole('button', { name: 'common.operation.copyErrorDetails' }))- await user.click(await screen.findByRole('button', { name: 'common.operation.copyErrorFailed' }))- expect(await screen.findByRole('button', { name: 'common.operation.copied' })).toBeInTheDocument()- expect(screen.getAllByRole('dialog')).toHaveLength(1)-})--it('decorates a rejected promise and preserves the original rejection', async () => {- const { toast, user } = setup()- const error = new Error('Export failed')- await act(async () => {- await expect(- toast.promise(Promise.reject(error), {- loading: 'Exporting',- success: 'Exported',- error: (reason) => ({ title: (reason as Error).message, description: 'Try again later' }),- }),- ).rejects.toBe(error)- })- await user.click(screen.getByRole('button', { name: 'common.operation.copyErrorDetails' }))- expect(copy).toHaveBeenCalledWith('Export failed\nTry again later')-})--it('keeps scoped managers isolated from each other', async () => {- const first = createToastManager()- const second = createToastManager()- const firstToast = createToast(first)- const secondToast = createToast(second)- render(- <>- <AppToaster manager={first} timeout={0} />- <AppToaster manager={second} timeout={0} />- </>,- )- act(() => {- firstToast.error('First')- secondToast.error('Second')- })- const regions = screen.getAllByRole('region', { name: 'Notifications' })- expect(within(regions[0]!).getByRole('dialog', { name: 'First' })).toBeInTheDocument()- expect(within(regions[0]!).queryByText('Second')).not.toBeInTheDocument()- act(() => {- firstToast.dismiss()- })- await waitFor(() =>- expect(screen.queryByRole('dialog', { name: 'First' })).not.toBeInTheDocument(),- )- expect(screen.getByRole('dialog', { name: 'Second' })).toBeInTheDocument()-})--it('copies the retained description after a same-id title-only upsert', async () => {- const { toast, user } = setup()- act(() => {- toast.error('First', { id: 'request', description: 'Diagnostic details' })- })- act(() => {- toast.error('Second', { id: 'request' })- })- await user.click(screen.getByRole('button', { name: 'common.operation.copyErrorDetails' }))- expect(copy).toHaveBeenCalledWith('Second\nDiagnostic details')-})--it('retains a caller action across upserts and promise failure', async () => {- const { toast, user } = setup()- const retry = vi.fn()- const actionProps = { children: 'Retry', onClick: retry }- act(() => {- toast.error('First', { id: 'request', actionProps })- })- act(() => {- toast.error('Second', { id: 'request' })- })- await user.click(screen.getByRole('button', { name: 'Retry' }))- expect(retry).toHaveBeenCalledOnce()- await act(async () => {- await toast- .promise(Promise.reject(new Error('Failed')), {- loading: { title: 'Loading', actionProps: { children: 'Details', onClick: retry } },- success: 'Done',- error: 'Failed',- })- .catch(() => {})- })- const failedToast = screen.getByRole('dialog', { name: 'Failed' })- await user.click(- within(failedToast).getByRole('button', { name: 'common.operation.copyErrorDetails' }),- )- expect(copy).toHaveBeenCalledWith('Failed')- await user.click(screen.getByRole('button', { name: 'Details' }))- expect(retry).toHaveBeenCalledTimes(2)-})--it('copies the resolved string title without retaining loading text', async () => {- const { toast, user } = setup()- await act(async () => {- await toast- .promise(Promise.reject(new Error('Failed')), {- loading: 'Loading',- success: 'Done',- error: () => 'Failed',- })- .catch(() => {})- })- expect(screen.queryByText('Loading')).not.toBeInTheDocument()- expect(screen.getByRole('heading', { name: 'Failed' })).toBeInTheDocument()- await user.click(screen.getByRole('button', { name: 'common.operation.copyErrorDetails' }))- expect(copy).toHaveBeenCalledWith('Failed')-})diff --git a/web/app/notifications/app-toaster.tsx b/web/app/notifications/app-toaster.tsxindex c572cadb170..95e27cb5925 100644--- a/web/app/notifications/app-toaster.tsx+++ b/web/app/notifications/app-toaster.tsx@@ -1,9 +1,8 @@'use client'import type { ToasterProps, ToastManager } from '@langgenius/dify-ui/toast'-import { ToastCard, Toaster, useToasts } from '@langgenius/dify-ui/toast'+import { Toaster } from '@langgenius/dify-ui/toast'import { manager } from '.'-import { CopyErrorAction } from './copy-error-action'export type AppToasterProps = {manager?: ToastManager@@ -12,30 +11,11 @@ export type AppToasterProps = {offset?: ToasterProps['offset']}-function Notifications() {- const toasts = useToasts()- return toasts.map((item) => {- const parts = [item.title, item.description]- const text = parts.every((part) => part == null || typeof part === 'string')- ? parts.filter(Boolean).join('\n')- : ''- return (- <ToastCard key={item.id} toast={item}>- {item.type === 'error' && text && <CopyErrorAction text={text} />}- </ToastCard>- )- })-}-export function AppToaster({manager: toastManager = manager,timeout = 5000,limit = 3,offset,}: AppToasterProps) {- return (- <Toaster toastManager={toastManager} timeout={timeout} limit={limit} offset={offset}>- <Notifications />- </Toaster>- )+ return <Toaster toastManager={toastManager} timeout={timeout} limit={limit} offset={offset} />}diff --git a/web/app/notifications/copy-error-action.tsx b/web/app/notifications/copy-error-action.tsxdeleted file mode 100644index b397768cbb9..00000000000--- a/web/app/notifications/copy-error-action.tsx+++ /dev/null@@ -1,50 +0,0 @@-'use client'--import { IconButton } from '@langgenius/dify-ui/icon-button'-import { useClipboard } from 'foxact/use-clipboard'-import { useEffect, useState } from 'react'-import { useTranslation } from 'react-i18next'--export function CopyErrorAction({ text }: { text: string }) {- const { t } = useTranslation(['common'])- const { copy, copied, error, reset } = useClipboard({ timeout: 2000 })- useEffect(() => reset, [reset])- const [feedbackText, setFeedbackText] = useState<string | null>(null)- const showCopied = feedbackText === text && copied- const showError = feedbackText === text && error- const label = showCopied- ? t(($) => $['operation.copied'], { ns: 'common' })- : showError- ? t(($) => $['operation.copyErrorFailed'], { ns: 'common' })- : t(($) => $['operation.copyErrorDetails'], { ns: 'common' })-- return (- <>- <IconButton- aria-label={label}- title={label}- variant="secondary"- className="absolute top-1 left-1/2 z-10 -translate-x-1/2 group-focus-visible/toast:opacity-100 group-has-focus-visible/toast:opacity-100 focus-visible:opacity-100 [@media(hover:hover)]:opacity-0 [@media(hover:hover)]:group-hover/toast:opacity-100"- onClick={() => {- reset()- setFeedbackText(null)- void copy(text).then(() => setFeedbackText(text))- }}- >- <span- aria-hidden="true"- className={- showCopied- ? 'i-ri-check-line size-4'- : showError- ? 'i-ri-error-warning-line size-4'- : 'i-ri-file-copy-line size-4'- }- />- </IconButton>- <span className="sr-only" aria-live="polite">- {showCopied || showError ? label : ''}- </span>- </>- )-}diff --git a/web/app/notifications/notifications.stories.tsx b/web/app/notifications/notifications.stories.tsxdeleted file mode 100644index 2d1bd2f4ccf..00000000000--- a/web/app/notifications/notifications.stories.tsx+++ /dev/null@@ -1,563 +0,0 @@-import type { ToastApi } from '@langgenius/dify-ui/toast'-import type { Meta, StoryObj } from '@storybook/nextjs-vite'-import { createToast, createToastManager, Toaster } from '@langgenius/dify-ui/toast'-import { useState } from 'react'-import { expect, spyOn, userEvent, within } from 'storybook/test'-import { toast as globalToast } from '.'-import { AppToaster } from './app-toaster'--type Scenario = { label: string; run: (toast: ToastApi) => void }-type PlaygroundProps = {- description: string- scenarios: Scenario[]- primitive?: boolean- timeout?: number- limit?: number-}--const diagnostic =- 'Failed to install plugin langgenius/openai:0.2.7: failed to remap assets and persist provider icon because the object storage service rejected the upload after all retry attempts.'-const details = [- 'operation error S3: PutObject, exceeded maximum number of attempts, 3, StatusCode: 0, RequestID: req-78bb251e-ec45-4974-b8a8-2c70bd8b9e12, HostID: storage-internal-03.',- 'PUT "https://storage.example.com/plugin-assets/1bd032bb73218a5d141b80cab7111/providers/openai/icon-large-en_US.svg?x-id=PutObject": dial tcp 192.168.0.200:19000: connect: connection refused.',- 'Unable to store asset icon_large_en_US. The plugin package was downloaded and validated, but installation could not complete because the configured S3 endpoint is unreachable from the plugin daemon.',- 'Check the storage endpoint, bucket permissions, service credentials, and network routing before retrying. This diagnostic intentionally includes enough detail to reproduce the original installation failure.',-].join('\n')-const buttonClassName =- 'rounded-lg border border-divider-regular bg-components-button-secondary-bg px-3 py-2 text-sm text-text-primary hover:bg-state-base-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-state-accent-solid'--function Playground({- description,- scenarios,- primitive = false,- timeout = 0,- limit = 3,-}: PlaygroundProps) {- const [{ manager, toast }] = useState(() => {- const manager = createToastManager()- return { manager, toast: createToast(manager) }- })- return (- <main className="min-h-screen space-y-5 bg-background-body p-6">- <p className="max-w-2xl text-sm text-text-secondary">{description}</p>- <p className="max-w-2xl text-xs text-text-tertiary">- F6 enters notifications. Tab reaches the card, action, and close button. Use Enter or Space- to activate. Clear notifications between cases. Switch the theme or resize the preview to- inspect layout.- </p>- <div className="flex max-w-2xl flex-wrap gap-3">- {scenarios.map(({ label, run }) => (- <button key={label} type="button" className={buttonClassName} onClick={() => run(toast)}>- {label}- </button>- ))}- <button type="button" className={buttonClassName} onClick={() => toast.dismiss()}>- Clear notifications- </button>- </div>- <label className="flex max-w-2xl flex-col gap-2 text-sm text-text-primary">- Focus return target- <input- className="rounded-lg border border-divider-regular bg-components-panel-bg p-2"- placeholder="Keep typing after dismissal"- />- </label>- {primitive ? (- <Toaster toastManager={manager} timeout={timeout} limit={limit} />- ) : (- <AppToaster manager={manager} timeout={timeout} limit={limit} />- )}- </main>- )-}--const meta = {- title: 'Application/Notifications',- component: Playground,- parameters: { layout: 'fullscreen' },- argTypes: { scenarios: { control: false, table: { disable: true } } },- args: { description: '', scenarios: [] },- tags: ['!autodocs'],-} satisfies Meta<typeof Playground>-export default meta-type Story = StoryObj<typeof meta>--export const Tones: Story = {- args: {- description:- 'Only error notifications gain an automatic copy action. Success, warning, and info retain the primitive appearance.',- scenarios: [- {- label: 'Success',- run: (toast) => toast.success('Saved', { description: 'Your changes are available.' }),- },- { label: 'Warning', run: (toast) => toast.warning('Storage almost full') },- { label: 'Info', run: (toast) => toast.info('Invitation sent') },- { label: 'Error', run: (toast) => toast.error('Upload failed', { description: details }) },- {- label: 'Error via callable API',- run: (toast) => toast('Connection failed', { type: 'error' }),- },- ],- },-}--export const PrimitiveParity: Story = {- args: {- primitive: true,- description:- 'Direct Dify UI factory: an error still has only its close control. Actions remain caller-owned and do not dismiss automatically.',- scenarios: [- {- label: 'Primitive error',- run: (toast) => toast.error(diagnostic, { description: details }),- },- {- label: 'Primitive action',- run: (toast) =>- toast.info('Review available', {- actionProps: { children: 'Review', onClick: () => toast.success('Review opened') },- }),- },- ],- },- play: async ({ canvasElement }) => {- const canvas = within(canvasElement)- await userEvent.click(canvas.getByRole('button', { name: /^Primitive error$/ }))- const body = within(canvasElement.ownerDocument.body)- await expect(await body.findByRole('dialog', { name: diagnostic })).toBeVisible()- await expect(body.queryByRole('button', { name: 'Copy error details' })).not.toBeInTheDocument()- },-}--export const ErrorContent: Story = {- args: {- description:- 'Copy preserves the full plain-text title and description, separated by a newline. Empty content and React nodes do not generate a misleading copy action.',- scenarios: [- { label: 'Title only', run: (toast) => toast.error('Connection failed') },- { label: 'Description only', run: (toast) => toast.error(null, { description: details }) },- {- label: 'Empty title',- run: (toast) => toast.error('', { description: 'Useful error detail' }),- },- { label: 'Empty content', run: (toast) => toast.error('') },- {- label: 'Unicode and multiline',- run: (toast) =>- toast.error('上传失败 / فشل التحميل / 🚫', {- description: '第一行\nSecond line\n<not html> & "quoted"',- }),- },- {- label: 'Rich title',- run: (toast) =>- toast.error(<strong>Permission denied</strong>, {- description: 'Ask your workspace administrator.',- }),- },- {- label: 'Rich description',- run: (toast) =>- toast.error('Access denied', {- description: <a href="#permission-help">View permission help</a>,- }),- },- { label: 'Numeric content', run: (toast) => toast.error(503) },- ],- },-}--export const LongContent: Story = {- args: {- description:- 'Inspect long diagnostics, unbroken tokens, and many lines at narrow widths and both themes. There is intentionally no new maximum-height policy; very long cards expose the existing primitive layout limit.',- scenarios: [- {- label: 'Realistic diagnostic',- run: (toast) => toast.error(diagnostic, { description: details }),- },- {- label: 'Unbroken token',- run: (toast) =>- toast.error('Invalid response', { description: '0123456789abcdef'.repeat(30) }),- },- { label: 'Very long title', run: (toast) => toast.error(diagnostic.repeat(8)) },- {- label: 'Many lines',- run: (toast) =>- toast.error('Validation errors', {- description: Array.from(- { length: 30 },- (_, i) => `Field ${i + 1}: required value is missing`,- ).join('\n'),- }),- },- ],- },-}--export const CallerActions: Story = {- args: {- description:- 'Caller actions remain available alongside copying for text errors, including repeated IDs and updates. Rich content retains its caller action without extracting text.',- scenarios: [- {- label: 'Custom retry',- run: (toast) =>- toast.error('Retryable failure', {- id: 'custom',- actionProps: {- children: 'Retry request',- onClick: () =>- toast.update('custom', {- title: 'Recovered',- type: 'success',- actionProps: undefined,- }),- },- }),- },- {- label: 'Update custom title',- run: (toast) => toast.error('Still unavailable', { id: 'custom' }),- },- {- label: 'Remove custom action',- run: (toast) => toast.update('custom', { actionProps: undefined }),- },- {- label: 'Rich error with explicit action',- run: (toast) =>- toast.error(<strong>Session expired</strong>, {- actionProps: {- children: 'Sign in again',- onClick: () => toast.success('Sign-in action invoked'),- },- }),- },- ],- },-}--export const UpdatesAndRepeatedIds: Story = {- args: {- description:- 'Run these controls in sequence. A repeated ID remains one card and retains omitted description fields. Copy must follow the effective content; success removes the generated action.',- scenarios: [- {- label: '1. Create error',- run: (toast) =>- toast.error('Original title', { id: 'upsert', description: 'Retained description' }),- },- {- label: '2. Replace title via same ID',- run: (toast) => toast.error('Updated title', { id: 'upsert' }),- },- {- label: '3. Replace description',- run: (toast) => toast.update('upsert', { description: 'New description' }),- },- {- label: '4. Clear description',- run: (toast) => toast.update('upsert', { description: null }),- },- {- label: '5. Recover',- run: (toast) => toast.update('upsert', { title: 'Recovered', type: 'success' }),- },- {- label: '6. Fail again',- run: (toast) => toast.update('upsert', { title: 'Failed again', type: 'error' }),- },- { label: 'Dismiss one', run: (toast) => toast.dismiss('upsert') },- {- label: 'Update absent ID',- run: (toast) =>- toast.update('does-not-exist', { title: 'Should not appear', type: 'error' }),- },- ],- },-}--export const PromiseResults: Story = {- args: {- description:- 'A loading toast transitions in place. Error callbacks and string errors get copy actions; caller actions and inherited loading descriptions remain intact. Rejections are handled by these demo triggers.',- scenarios: [- {- label: 'Resolve',- run: (toast) => {- void toast.promise(- new Promise<string>((resolve) => setTimeout(() => resolve('Upload'), 1200)),- {- loading: 'Uploading…',- success: (value) => `${value} complete`,- error: 'Upload failed',- },- )- },- },- {- label: 'Reject string',- run: (toast) => {- void toast- .promise(- new Promise((_, reject) =>- setTimeout(() => reject(new Error('Network failed')), 1200),- ),- { loading: 'Connecting…', success: 'Connected', error: 'Connection failed' },- )- .catch(() => {})- },- },- {- label: 'Reject with details',- run: (toast) => {- void toast- .promise(Promise.reject(new Error('Connection refused')), {- loading: 'Uploading…',- success: 'Uploaded',- error: (error) => ({ title: 'Upload failed', description: String(error) }),- })- .catch(() => {})- },- },- {- label: 'Retain loading description',- run: (toast) => {- void toast- .promise(Promise.reject(new Error('Denied')), {- loading: { title: 'Uploading…', description: 'File: document.pdf' },- success: 'Uploaded',- error: 'Permission denied',- })- .catch(() => {})- },- },- {- label: 'Explicit promise action',- run: (toast) => {- void toast- .promise(Promise.reject(new Error('Denied')), {- loading: 'Checking…',- success: 'Ready',- error: {- title: 'Access denied',- actionProps: {- children: 'Request access',- onClick: () => toast.info('Access requested'),- },- },- })- .catch(() => {})- },- },- ],- },-}--export const StackAndDismissal: Story = {- args: {- description:- 'Limit three visible cards. Hover or focus expands the stack. Close individual cards, dismiss all, or swipe upward/right; a downward gesture should not dismiss this top-anchored stack.',- scenarios: [- {- label: 'Burst of six',- run: (toast) => {- for (let i = 1; i <= 6; i++)- toast.error(`Failure ${i}`, { description: `Diagnostic ${i}` })- },- },- {- label: 'Mixed stack',- run: (toast) => {- toast.success('Saved')- toast.warning('Quota low')- toast.error('Sync failed', { description: details })- },- },- {- label: 'Persistent error',- run: (toast) => toast.error('Still needs attention', { timeout: 0 }),- },- ],- },-}--export const AutoDismissAndPause: Story = {- args: {- timeout: 3000,- description:- 'Default timeout is three seconds in this story. Hovering or keyboard focus pauses dismissal. Copy feedback must not extend the timeout or dismiss the card. Persistent errors remain until closed.',- scenarios: [- { label: 'Timed error', run: (toast) => toast.error('Expires after three seconds') },- {- label: 'Persistent error',- run: (toast) => toast.error('Persistent error', { timeout: 0 }),- },- { label: 'Short success', run: (toast) => toast.success('Saved briefly', { timeout: 1000 }) },- ],- },-}--export const CopyFeedback: Story = {- args: {- description:- 'Real clipboard integration: copy, paste into the field, and compare all lines. The action shows Copied for two seconds and remains focused. Repeated copying stays within the same toast.',- scenarios: [- {- label: 'Show copyable error',- run: (toast) => toast.error(diagnostic, { description: details }),- },- ],- },-}--export const ClipboardFailure: Story = {- ...CopyFeedback,- args: {- ...CopyFeedback.args,- description:- 'Simulated clipboard and fallback rejection. Copy reports failure in the same action; retry remains available and no secondary error toast appears.',- },- beforeEach: () => {- const clipboard = spyOn(navigator.clipboard, 'writeText').mockRejectedValue(- new Error('Permission denied'),- )- const fallback = spyOn(document, 'execCommand').mockReturnValue(false)- return () => {- clipboard.mockRestore()- fallback.mockRestore()- }- },-}--export const ClipboardFallback: Story = {- ...CopyFeedback,- args: {- ...CopyFeedback.args,- description:- 'Simulated Clipboard API rejection. The real foxact selection-based fallback runs with execCommand success simulated. Check that the copy button retains keyboard focus.',- },- beforeEach: () => {- const clipboard = spyOn(navigator.clipboard, 'writeText').mockRejectedValue(- new Error('Permission denied'),- )- const fallback = spyOn(document, 'execCommand').mockReturnValue(true)- return () => {- clipboard.mockRestore()- fallback.mockRestore()- }- },-}--export const PendingCopyAndReplacement: Story = {- args: {- description:- 'Clipboard completion is delayed two seconds. Click copy repeatedly, then replace or dismiss the card while pending. The new card must not show stale Copied feedback.',- scenarios: [- {- label: 'Original error',- run: (toast) => toast.error('Original diagnostic', { id: 'pending' }),- },- {- label: 'Replace while copying',- run: (toast) => toast.error('Replacement diagnostic', { id: 'pending' }),- },- { label: 'Dismiss while copying', run: (toast) => toast.dismiss('pending') },- ],- },- beforeEach: () => {- const clipboard = spyOn(navigator.clipboard, 'writeText').mockImplementation(- () => new Promise((resolve) => setTimeout(resolve, 2000)),- )- return () => clipboard.mockRestore()- },-}--function IsolatedHosts() {- const [{ left, right }] = useState(() => {- const make = () => {- const manager = createToastManager()- return { manager, toast: createToast(manager) }- }- return { left: make(), right: make() }- })- return (- <main className="min-h-screen space-y-4 bg-background-body p-6">- <p className="max-w-2xl text-sm text-text-secondary">- Two independently owned managers reuse the same ID. Updating or dismissing one must leave- the other intact. The second viewport uses the configuration host's 60px top offset.- </p>- <div className="flex max-w-2xl flex-wrap gap-3">- <button- type="button"- className={buttonClassName}- onClick={() => {- left.toast.error('Left error', { id: 'shared' })- right.toast.error('Right error', { id: 'shared' })- }}- >- Show both- </button>- <button- type="button"- className={buttonClassName}- onClick={() => left.toast.update('shared', { title: 'Left updated' })}- >- Update left- </button>- <button type="button" className={buttonClassName} onClick={() => left.toast.dismiss()}>- Dismiss left- </button>- <button type="button" className={buttonClassName} onClick={() => right.toast.dismiss()}>- Dismiss right- </button>- </div>- <AppToaster manager={left.manager} timeout={0} offset={{ top: 180, right: '52%' }} />- <AppToaster manager={right.manager} timeout={0} offset={{ top: 60 }} />- </main>- )-}-export const ScopedHostIsolation: Story = { render: () => <IsolatedHosts /> }--export const GlobalWebInstance: Story = {- args: {- description:- 'Uses the actual web singleton and the AppToaster already mounted by the Storybook decorator. Copy, typed calls, and dismissals use the same entrypoint as application callers.',- scenarios: [- {- label: 'Global error',- run: () => globalToast.error('Global request failed', { description: details, timeout: 0 }),- },- { label: 'Global success', run: () => globalToast.success('Global save complete') },- { label: 'Dismiss global notifications', run: () => globalToast.dismiss() },- ],- },- beforeEach: () => {- globalToast.dismiss()- return () => globalToast.dismiss()- },-}--export const DarkTheme: Story = {- ...CopyFeedback,- globals: { theme: 'dark' },-}--export const NarrowViewport: Story = {- ...LongContent,- globals: { viewport: { value: 'toastMobile', isRotated: false } },- parameters: {- viewport: {- options: {- toastMobile: {- name: 'Mobile 360px',- styles: { width: '360px', height: '740px' },- type: 'mobile',- },- },- },- },-}diff --git a/web/i18n/locales/ar-TN/common.json b/web/i18n/locales/ar-TN/common.jsonindex eb2189f6e97..84d4846674d 100644--- a/web/i18n/locales/ar-TN/common.json+++ b/web/i18n/locales/ar-TN/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "يرجى تأكيد الإجراء الخاص بك.","operation.copied": "تم النسخ","operation.copy": "نسخ",- "operation.copyErrorDetails": "نسخ تفاصيل الخطأ",- "operation.copyErrorFailed": "فشل النسخ. أعد المحاولة","operation.copyImage": "نسخ الصورة","operation.create": "إنشاء","operation.deSelectAll": "إلغاء تحديد الكل",diff --git a/web/i18n/locales/az-AZ/common.json b/web/i18n/locales/az-AZ/common.jsonindex 3cacd6aef6b..d207cfda449 100644--- a/web/i18n/locales/az-AZ/common.json+++ b/web/i18n/locales/az-AZ/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Əməliyyatını təsdiqlə.","operation.copied": "Kopyalandı","operation.copy": "Kopyala",- "operation.copyErrorDetails": "Xəta təfərrüatlarını kopyala",- "operation.copyErrorFailed": "Kopyalama alınmadı. Yenidən cəhd et","operation.copyImage": "Şəkli kopyala","operation.create": "Yarat","operation.deSelectAll": "Bütün seçimləri ləğv et",diff --git a/web/i18n/locales/de-DE/common.json b/web/i18n/locales/de-DE/common.jsonindex 819d3ad91e3..94080fa7a32 100644--- a/web/i18n/locales/de-DE/common.json+++ b/web/i18n/locales/de-DE/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Bitte bestätigen Sie Ihre Aktion.","operation.copied": "Kopiert","operation.copy": "Kopieren",- "operation.copyErrorDetails": "Fehlerdetails kopieren",- "operation.copyErrorFailed": "Kopieren fehlgeschlagen. Erneut versuchen","operation.copyImage": "Bild kopieren","operation.create": "Erstellen","operation.deSelectAll": "Alle abwählen",diff --git a/web/i18n/locales/en-US/common.json b/web/i18n/locales/en-US/common.jsonindex 25b286cec82..42bee5d3ded 100644--- a/web/i18n/locales/en-US/common.json+++ b/web/i18n/locales/en-US/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Please confirm your action.","operation.copied": "Copied","operation.copy": "Copy",- "operation.copyErrorDetails": "Copy error details",- "operation.copyErrorFailed": "Copy failed. Retry","operation.copyImage": "Copy Image","operation.create": "Create","operation.deSelectAll": "Deselect All",diff --git a/web/i18n/locales/es-ES/common.json b/web/i18n/locales/es-ES/common.jsonindex d5a95e2399c..fb12ec0dc81 100644--- a/web/i18n/locales/es-ES/common.json+++ b/web/i18n/locales/es-ES/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Por favor, confirme su acción.","operation.copied": "Copiado","operation.copy": "Copiar",- "operation.copyErrorDetails": "Copiar detalles del error",- "operation.copyErrorFailed": "Error al copiar. Reintentar","operation.copyImage": "Copiar imagen","operation.create": "Crear","operation.deSelectAll": "Deseleccionar todo",diff --git a/web/i18n/locales/fa-IR/common.json b/web/i18n/locales/fa-IR/common.jsonindex 209255024b6..e47e970a2fc 100644--- a/web/i18n/locales/fa-IR/common.json+++ b/web/i18n/locales/fa-IR/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "لطفاً اقدام خود را تأیید کنید.","operation.copied": "کپی","operation.copy": "کپی",- "operation.copyErrorDetails": "کپی جزئیات خطا",- "operation.copyErrorFailed": "کپی ناموفق بود. تلاش مجدد","operation.copyImage": "کپی تصویر","operation.create": "ایجاد","operation.deSelectAll": "همه را انتخاب نکنید",diff --git a/web/i18n/locales/fr-FR/common.json b/web/i18n/locales/fr-FR/common.jsonindex 64cfae227a5..7373c836d6b 100644--- a/web/i18n/locales/fr-FR/common.json+++ b/web/i18n/locales/fr-FR/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Veuillez confirmer votre action.","operation.copied": "Copied","operation.copy": "Copier",- "operation.copyErrorDetails": "Copier les détails de l’erreur",- "operation.copyErrorFailed": "Échec de la copie. Réessayer","operation.copyImage": "Copier l’image","operation.create": "Créer","operation.deSelectAll": "Désélectionner tout",diff --git a/web/i18n/locales/hi-IN/common.json b/web/i18n/locales/hi-IN/common.jsonindex 7464b20b7d3..e6ff97487a2 100644--- a/web/i18n/locales/hi-IN/common.json+++ b/web/i18n/locales/hi-IN/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "कृपया अपनी क्रिया की पुष्टि करें।","operation.copied": "कॉपी किया गया","operation.copy": "कॉपी करें",- "operation.copyErrorDetails": "त्रुटि का विवरण कॉपी करें",- "operation.copyErrorFailed": "कॉपी नहीं हुआ। फिर कोशिश करें","operation.copyImage": "छवि कॉपी करें","operation.create": "बनाएं","operation.deSelectAll": "सभी चयन हटाएँ",diff --git a/web/i18n/locales/id-ID/common.json b/web/i18n/locales/id-ID/common.jsonindex 705d5495006..480ce1053b7 100644--- a/web/i18n/locales/id-ID/common.json+++ b/web/i18n/locales/id-ID/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Silakan konfirmasi tindakan Anda.","operation.copied": "Disalin","operation.copy": "Menyalin",- "operation.copyErrorDetails": "Salin detail kesalahan",- "operation.copyErrorFailed": "Gagal menyalin. Coba lagi","operation.copyImage": "Salin Gambar","operation.create": "Menciptakan","operation.deSelectAll": "Batalkan pilihan Semua",diff --git a/web/i18n/locales/it-IT/common.json b/web/i18n/locales/it-IT/common.jsonindex 44ad3a5cecc..fb8a3760dcb 100644--- a/web/i18n/locales/it-IT/common.json+++ b/web/i18n/locales/it-IT/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Per favore conferma la tua azione.","operation.copied": "Copiato","operation.copy": "Copia",- "operation.copyErrorDetails": "Copia dettagli errore",- "operation.copyErrorFailed": "Copia non riuscita. Riprova","operation.copyImage": "Copia immagine","operation.create": "Crea","operation.deSelectAll": "Deseleziona tutto",diff --git a/web/i18n/locales/ja-JP/common.json b/web/i18n/locales/ja-JP/common.jsonindex ff010484d13..dbbf8e39d69 100644--- a/web/i18n/locales/ja-JP/common.json+++ b/web/i18n/locales/ja-JP/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "操作を確認してください。","operation.copied": "コピーしました","operation.copy": "コピー",- "operation.copyErrorDetails": "エラーの詳細をコピー",- "operation.copyErrorFailed": "コピーに失敗しました。再試行","operation.copyImage": "画像をコピー","operation.create": "作成","operation.deSelectAll": "すべて選択解除",diff --git a/web/i18n/locales/ko-KR/common.json b/web/i18n/locales/ko-KR/common.jsonindex d48fd939aef..b69d3dc0928 100644--- a/web/i18n/locales/ko-KR/common.json+++ b/web/i18n/locales/ko-KR/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "귀하의 행동을 확인해 주세요.","operation.copied": "복사","operation.copy": "복사",- "operation.copyErrorDetails": "오류 세부 정보 복사",- "operation.copyErrorFailed": "복사 실패. 다시 시도","operation.copyImage": "이미지 복사","operation.create": "생성","operation.deSelectAll": "모두 선택 해제",diff --git a/web/i18n/locales/lo-LA/common.json b/web/i18n/locales/lo-LA/common.jsonindex 16cda4a097a..96133028e30 100644--- a/web/i18n/locales/lo-LA/common.json+++ b/web/i18n/locales/lo-LA/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "ກະລຸນາຢືນຢັນການດຳເນີນການຂອງທ່ານ.","operation.copied": "ຄັດລອກແລ້ວ","operation.copy": "ຄັດລອກ",- "operation.copyErrorDetails": "ສຳເນົາລາຍລະອຽດຂໍ້ຜິດພາດ",- "operation.copyErrorFailed": "ສຳເນົາບໍ່ສຳເລັດ. ລອງໃໝ່","operation.copyImage": "ຄັດລອກຮູບພາບ","operation.create": "ສ້າງ","operation.deSelectAll": "ຍົກເລີກການເລືອກທັງໝົດ",diff --git a/web/i18n/locales/nl-NL/common.json b/web/i18n/locales/nl-NL/common.jsonindex e51bc0a9e63..6ca41f779e0 100644--- a/web/i18n/locales/nl-NL/common.json+++ b/web/i18n/locales/nl-NL/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Please confirm your action.","operation.copied": "Copied","operation.copy": "Copy",- "operation.copyErrorDetails": "Foutdetails kopiëren",- "operation.copyErrorFailed": "Kopiëren mislukt. Opnieuw proberen","operation.copyImage": "Copy Image","operation.create": "Create","operation.deSelectAll": "Deselect All",diff --git a/web/i18n/locales/pl-PL/common.json b/web/i18n/locales/pl-PL/common.jsonindex 4c5335f864f..f550f4701c6 100644--- a/web/i18n/locales/pl-PL/common.json+++ b/web/i18n/locales/pl-PL/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Proszę potwierdzić swoją akcję.","operation.copied": "Kopiowane","operation.copy": "Kopiuj",- "operation.copyErrorDetails": "Kopiuj szczegóły błędu",- "operation.copyErrorFailed": "Kopiowanie nie powiodło się. Spróbuj ponownie","operation.copyImage": "Kopiuj obraz","operation.create": "Utwórz","operation.deSelectAll": "Odznacz wszystkie",diff --git a/web/i18n/locales/pt-BR/common.json b/web/i18n/locales/pt-BR/common.jsonindex 21046e8c04d..23532a0d335 100644--- a/web/i18n/locales/pt-BR/common.json+++ b/web/i18n/locales/pt-BR/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Por favor, confirme sua ação.","operation.copied": "Copiado","operation.copy": "Copiar",- "operation.copyErrorDetails": "Copiar detalhes do erro",- "operation.copyErrorFailed": "Falha ao copiar. Tentar novamente","operation.copyImage": "Copiar imagem","operation.create": "Criar","operation.deSelectAll": "Desmarcar tudo",diff --git a/web/i18n/locales/ro-RO/common.json b/web/i18n/locales/ro-RO/common.jsonindex 19919249f48..34274aec4e9 100644--- a/web/i18n/locales/ro-RO/common.json+++ b/web/i18n/locales/ro-RO/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Vă rugăm să confirmați acțiunea dumneavoastră.","operation.copied": "Copiat","operation.copy": "Copiază",- "operation.copyErrorDetails": "Copiază detaliile erorii",- "operation.copyErrorFailed": "Copierea a eșuat. Reîncearcă","operation.copyImage": "Copiere imagine","operation.create": "Creează","operation.deSelectAll": "Deselectați tot",diff --git a/web/i18n/locales/ru-RU/common.json b/web/i18n/locales/ru-RU/common.jsonindex a0468bdf084..d541b80cf03 100644--- a/web/i18n/locales/ru-RU/common.json+++ b/web/i18n/locales/ru-RU/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Пожалуйста, подтвердите ваше действие.","operation.copied": "Скопированы","operation.copy": "Копировать",- "operation.copyErrorDetails": "Копировать сведения об ошибке",- "operation.copyErrorFailed": "Не удалось скопировать. Повторить","operation.copyImage": "Скопировать изображение","operation.create": "Создать","operation.deSelectAll": "Снять выделение со всех",diff --git a/web/i18n/locales/sl-SI/common.json b/web/i18n/locales/sl-SI/common.jsonindex e9db504616b..5159038f293 100644--- a/web/i18n/locales/sl-SI/common.json+++ b/web/i18n/locales/sl-SI/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Prosimo, potrdite svoje dejanje.","operation.copied": "Kopirati","operation.copy": "Kopiraj",- "operation.copyErrorDetails": "Kopiraj podrobnosti napake",- "operation.copyErrorFailed": "Kopiranje ni uspelo. Poskusi znova","operation.copyImage": "Kopiraj sliko","operation.create": "Ustvari","operation.deSelectAll": "Odberi vse",diff --git a/web/i18n/locales/th-TH/common.json b/web/i18n/locales/th-TH/common.jsonindex acdb798aee2..0cda7b60173 100644--- a/web/i18n/locales/th-TH/common.json+++ b/web/i18n/locales/th-TH/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "กรุณายืนยันการกระทำของคุณ","operation.copied": "คัด ลอก","operation.copy": "ลอก",- "operation.copyErrorDetails": "คัดลอกรายละเอียดข้อผิดพลาด",- "operation.copyErrorFailed": "คัดลอกไม่สำเร็จ ลองอีกครั้ง","operation.copyImage": "คัดลอกรูปภาพ","operation.create": "สร้าง","operation.deSelectAll": "ยกเลิกการเลือกทั้งหมด",diff --git a/web/i18n/locales/tr-TR/common.json b/web/i18n/locales/tr-TR/common.jsonindex db209d45990..42ea31ed49f 100644--- a/web/i18n/locales/tr-TR/common.json+++ b/web/i18n/locales/tr-TR/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Lütfen işleminizi onaylayın.","operation.copied": "Kopyalandı","operation.copy": "Kopyala",- "operation.copyErrorDetails": "Hata ayrıntılarını kopyala",- "operation.copyErrorFailed": "Kopyalama başarısız. Yeniden dene","operation.copyImage": "Resmi Kopyala","operation.create": "Oluştur","operation.deSelectAll": "Hepsini Seçme",diff --git a/web/i18n/locales/uk-UA/common.json b/web/i18n/locales/uk-UA/common.jsonindex 271a0b055e8..dc9441593d6 100644--- a/web/i18n/locales/uk-UA/common.json+++ b/web/i18n/locales/uk-UA/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Будь ласка, підтвердіть свої дії.","operation.copied": "Скопійовані","operation.copy": "Копіювати",- "operation.copyErrorDetails": "Копіювати відомості про помилку",- "operation.copyErrorFailed": "Не вдалося скопіювати. Повторити","operation.copyImage": "Скопіювати зображення","operation.create": "Створити","operation.deSelectAll": "Вимкнути все",diff --git a/web/i18n/locales/vi-VN/common.json b/web/i18n/locales/vi-VN/common.jsonindex 70efd0ee94c..16e7841d7bc 100644--- a/web/i18n/locales/vi-VN/common.json+++ b/web/i18n/locales/vi-VN/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "Vui lòng xác nhận hành động của bạn.","operation.copied": "Sao chép","operation.copy": "Sao chép",- "operation.copyErrorDetails": "Sao chép chi tiết lỗi",- "operation.copyErrorFailed": "Sao chép thất bại. Thử lại","operation.copyImage": "Sao chép hình ảnh","operation.create": "Tạo mới","operation.deSelectAll": "Bỏ chọn tất cả",diff --git a/web/i18n/locales/zh-Hans/common.json b/web/i18n/locales/zh-Hans/common.jsonindex b5e8a9d3862..ba3dca7d629 100644--- a/web/i18n/locales/zh-Hans/common.json+++ b/web/i18n/locales/zh-Hans/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "请确认您的操作。","operation.copied": " 已复制","operation.copy": "复制",- "operation.copyErrorDetails": "复制错误详情",- "operation.copyErrorFailed": "复制失败,重试","operation.copyImage": "复制图片","operation.create": "创建","operation.deSelectAll": "取消全选",diff --git a/web/i18n/locales/zh-Hant/common.json b/web/i18n/locales/zh-Hant/common.jsonindex aec4215a2e7..2e34e383682 100644--- a/web/i18n/locales/zh-Hant/common.json+++ b/web/i18n/locales/zh-Hant/common.json@@ -161,8 +161,6 @@"operation.confirmAction": "請確認您的操作。","operation.copied": "複製","operation.copy": "複製",- "operation.copyErrorDetails": "複製錯誤詳細資訊",- "operation.copyErrorFailed": "複製失敗,重試","operation.copyImage": "複製圖像","operation.create": "建立","operation.deSelectAll": "全不選",diff --git a/web/i18n/resources.generated.d.ts b/web/i18n/resources.generated.d.tsindex ff29b908f2c..cbbe2b75614 100644--- a/web/i18n/resources.generated.d.ts+++ b/web/i18n/resources.generated.d.ts@@ -1811,8 +1811,6 @@ export default interface Resources {'operation.confirmAction': 'Please confirm your action.''operation.copied': 'Copied''operation.copy': 'Copy'- 'operation.copyErrorDetails': 'Copy error details'- 'operation.copyErrorFailed': 'Copy failed. Retry''operation.copyImage': 'Copy Image''operation.create': 'Create''operation.deSelectAll': 'Deselect All'