Skip to content

armgit / dify

Public Imported from GitHub
0

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

chore: address Access Point accessibility issues (#43196)

Joel216151ffa712
diff --git a/web/app/components/app/overview/embedded/__tests__/index.spec.tsx b/web/app/components/app/overview/embedded/__tests__/index.spec.tsx
index de1fa5a0922..eff6e8da9fd 100644
--- a/web/app/components/app/overview/embedded/__tests__/index.spec.tsx
+++ b/web/app/components/app/overview/embedded/__tests__/index.spec.tsx
@@ -1,5 +1,5 @@
import type { SiteInfo } from '@/models/share'
-import { fireEvent, screen, waitFor } from '@testing-library/react'
+import { fireEvent, screen, waitFor, within } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import copy from 'copy-to-clipboard'
import * as React from 'react'
@@ -94,22 +94,62 @@ describe('Embedded', () => {
})
})
- it('opens chrome plugin store link when chrome option selected', async () => {
+ it('links each embed method tab to a panel and supports arrow key selection', async () => {
+ const user = userEvent.setup()
await act(async () => {
render(<Embedded {...baseProps} />)
})
- const optionButtons = document.body.querySelectorAll('[class*="option"]')
- expect(optionButtons.length).toBeGreaterThanOrEqual(3)
- act(() => {
- fireEvent.click(optionButtons[2]!)
+ const iframe = screen.getByRole('tab', {
+ name: 'appOverview.overview.appInfo.embedded.iframe',
+ })
+ const scripts = screen.getByRole('tab', {
+ name: 'appOverview.overview.appInfo.embedded.scripts',
+ })
+ const chromePlugin = screen.getByRole('tab', {
+ name: 'appOverview.overview.appInfo.embedded.chromePlugin',
})
- const [chromeText] = screen.getAllByText('appOverview.overview.appInfo.embedded.chromePlugin')
- act(() => {
- fireEvent.click(chromeText!)
+ expect(screen.getByRole('tablist')).toBeInTheDocument()
+ expect(iframe).toHaveAttribute('aria-selected', 'true')
+ expect(scripts).toHaveAttribute('aria-selected', 'false')
+ expect(chromePlugin).toHaveAttribute('aria-selected', 'false')
+ expect(screen.getByRole('tabpanel')).toHaveAttribute('aria-labelledby', iframe.id)
+ expect(iframe).toHaveAttribute('aria-controls', screen.getByRole('tabpanel').id)
+
+ await user.click(iframe)
+ expect(iframe).toHaveFocus()
+ await user.keyboard('{ArrowRight}')
+
+ expect(scripts).toHaveFocus()
+ expect(iframe).toHaveAttribute('aria-selected', 'true')
+
+ await user.keyboard('{Enter}')
+
+ expect(iframe).toHaveAttribute('aria-selected', 'false')
+ expect(scripts).toHaveAttribute('aria-selected', 'true')
+ expect(chromePlugin).toHaveAttribute('aria-selected', 'false')
+ expect(screen.getByRole('tabpanel')).toHaveAttribute('aria-labelledby', scripts.id)
+ })
+
+ it('opens chrome plugin store link when chrome option selected', async () => {
+ const user = userEvent.setup()
+ await act(async () => {
+ render(<Embedded {...baseProps} />)
})
+ await user.click(
+ screen.getByRole('tab', {
+ name: 'appOverview.overview.appInfo.embedded.chromePlugin',
+ }),
+ )
+
+ await user.click(
+ within(screen.getByRole('tabpanel')).getByRole('button', {
+ name: 'appOverview.overview.appInfo.embedded.chromePlugin',
+ }),
+ )
+
expect(mockWindowOpen).toHaveBeenCalledWith(
'https://chrome.google.com/webstore/detail/dify-chatbot/ceehdapohffmjmkdcifjofadiaoeggaf',
'_blank',
@@ -131,6 +171,7 @@ describe('Embedded', () => {
})
it('keeps hidden inputs collapsed by default and updates iframe and script content when values change', async () => {
+ const user = userEvent.setup()
render(
<Embedded
{...baseProps}
@@ -174,10 +215,11 @@ describe('Embedded', () => {
expect(codeBlock?.textContent ?? '').toContain('/chatbot/token?secret=dG9wLXNlY3JldA%3D%3D')
})
- const optionButtons = document.body.querySelectorAll('[class*="option"]')
- act(() => {
- fireEvent.click(optionButtons[1]!)
- })
+ await user.click(
+ screen.getByRole('tab', {
+ name: 'appOverview.overview.appInfo.embedded.scripts',
+ }),
+ )
await waitFor(() => {
const codeBlock = document.querySelector('pre')
@@ -192,10 +234,11 @@ describe('Embedded', () => {
render(<Embedded {...baseProps} />)
})
- const optionButtons = document.body.querySelectorAll('[class*="option"]')
- act(() => {
- fireEvent.click(optionButtons[1]!)
- })
+ await user.click(
+ screen.getByRole('tab', {
+ name: 'appOverview.overview.appInfo.embedded.scripts',
+ }),
+ )
await waitFor(() => {
const codeBlock = document.querySelector('pre')
@@ -218,10 +261,11 @@ describe('Embedded', () => {
render(<Embedded {...baseProps} />)
})
- const optionButtons = document.body.querySelectorAll('[class*="option"]')
- act(() => {
- fireEvent.click(optionButtons[2]!)
- })
+ await user.click(
+ screen.getByRole('tab', {
+ name: 'appOverview.overview.appInfo.embedded.chromePlugin',
+ }),
+ )
await waitFor(() => {
const codeBlock = document.querySelector('pre')
diff --git a/web/app/components/app/overview/embedded/index.tsx b/web/app/components/app/overview/embedded/index.tsx
index 0ec890fa666..913d3476a97 100644
--- a/web/app/components/app/overview/embedded/index.tsx
+++ b/web/app/components/app/overview/embedded/index.tsx
@@ -8,6 +8,7 @@ import type {
import { cn } from '@langgenius/dify-ui/cn'
import { Dialog, DialogClose, DialogContent, DialogTitle } from '@langgenius/dify-ui/dialog'
import { IconButton } from '@langgenius/dify-ui/icon-button'
+import { Tabs, TabsList, TabsPanel, TabsTab } from '@langgenius/dify-ui/tabs'
import { Tooltip, TooltipContent, TooltipTrigger } from '@langgenius/dify-ui/tooltip'
import { useSuspenseQuery } from '@tanstack/react-query'
import copy from 'copy-to-clipboard'
@@ -182,7 +183,7 @@ const EmbeddedContent = ({
[accessToken, appBaseUrl, hiddenInputValues, isTestEnv, theme.primaryColor, webAppRoute],
)
- const onClickCopy = async () => {
+ const onClickCopy = async (selectedOption: Option) => {
const latestIframeUrl = await buildEmbeddedIframeUrl({
appBaseUrl,
accessToken,
@@ -191,21 +192,16 @@ const EmbeddedContent = ({
values: hiddenInputValues,
})
- if (option === 'chromePlugin') {
+ if (selectedOption === 'chromePlugin') {
const splitUrl = getChromePluginContent(latestIframeUrl).split(': ')
if (splitUrl.length > 1) copy(splitUrl[1]!)
- } else if (option === 'iframe') {
+ } else if (selectedOption === 'iframe') {
copy(getEmbeddedIframeSnippet(latestIframeUrl))
} else {
copy(scriptsContent)
}
- setCopiedOption(option)
+ setCopiedOption(selectedOption)
}
- const previewFallback = latestResolvedIframeUrlRef.current
- ? option === 'chromePlugin'
- ? getChromePluginContent(latestResolvedIframeUrlRef.current)
- : getEmbeddedIframeSnippet(latestResolvedIframeUrlRef.current)
- : ''
const navigateToChromeUrl = () => {
window.open(
@@ -259,93 +255,115 @@ const EmbeddedContent = ({
)}
</div>
)}
- <div className="flex flex-wrap items-center justify-between gap-y-2">
- {OPTION_KEYS.map((v) => {
- return (
- <button
- type="button"
+ <Tabs
+ value={option}
+ onValueChange={(value) => {
+ setOption(value as Option)
+ setCopiedOption(null)
+ }}
+ >
+ <TabsList
+ aria-label={t(($) => $[`${prefixEmbedded}.title`], { ns: 'appOverview' })}
+ className="flex items-center justify-between gap-0"
+ >
+ {OPTION_KEYS.map((v) => (
+ <TabsTab
key={v}
+ value={v}
aria-label={t(($) => $[`${prefixEmbedded}.${v}`], { ns: 'appOverview' }) || v}
- className={cn(style.option, optionIconClassName[v], option === v && style.active)}
- onClick={() => {
- setOption(v)
- setCopiedOption(null)
- }}
- ></button>
- )
- })}
- </div>
- {option === 'chromePlugin' && (
- <div className="mt-6 w-full">
- <button
- type="button"
- className={cn(
- 'inline-flex w-full items-center justify-center gap-2 rounded-lg py-3',
- 'shrink-0 bg-primary-600 text-white hover:bg-primary-600/75 hover:shadow-sm',
- )}
- onClick={navigateToChromeUrl}
- >
- <div className={`relative size-4 ${style.pluginInstallIcon}`}></div>
- <div className="font-['Inter'] text-sm leading-tight font-medium text-white">
- {t(($) => $[`${prefixEmbedded}.chromePlugin`], { ns: 'appOverview' })}
- </div>
- </button>
- </div>
- )}
- <div
- className={cn(
- 'inline-flex w-full flex-col items-start justify-start rounded-lg border-[0.5px] border-components-panel-border bg-background-section',
- 'mt-6',
- )}
- >
- <div className="inline-flex items-center justify-start gap-2 self-stretch rounded-t-lg bg-background-section-burn py-1 pr-1 pl-3">
- <div className="shrink-0 grow system-sm-medium text-text-secondary">
- {t(($) => $[`${prefixEmbedded}.${option}`], { ns: 'appOverview' })}
- </div>
- <Tooltip>
- <TooltipTrigger
- render={
- <IconButton
- aria-label={
- (copiedOption === option
- ? t(($) => $[`${prefixEmbedded}.copied`], { ns: 'appOverview' })
- : t(($) => $[`${prefixEmbedded}.copy`], { ns: 'appOverview' })) || ''
- }
- onClick={() => void onClickCopy()}
- >
- {copiedOption === option ? (
- <span aria-hidden="true" className="i-ri-clipboard-fill size-4" />
- ) : (
- <span aria-hidden="true" className="i-ri-clipboard-line size-4" />
- )}
- </IconButton>
- }
+ className={cn(
+ style.option,
+ optionIconClassName[v],
+ 'border-0! p-0!',
+ option === v && style.active,
+ )}
/>
- <TooltipContent>
- {(copiedOption === option
- ? t(($) => $[`${prefixEmbedded}.copied`], { ns: 'appOverview' })
- : t(($) => $[`${prefixEmbedded}.copy`], { ns: 'appOverview' })) || ''}
- </TooltipContent>
- </Tooltip>
- </div>
- <div className="flex max-h-[clamp(180px,calc(100dvh-320px),360px)] w-full items-start justify-start gap-2 overflow-auto p-3">
- <div className="shrink grow basis-0 font-mono text-[13px] leading-tight text-text-secondary">
- <pre className="select-text">
- {option === 'scripts' ? (
- scriptsContent
- ) : (
- <Suspense fallback={previewFallback}>
- <AsyncEmbeddedOptionContent
- option={option}
- iframeUrlPromise={previewIframeUrlPromise}
- latestResolvedIframeUrlRef={latestResolvedIframeUrlRef}
- />
- </Suspense>
+ ))}
+ </TabsList>
+ {OPTION_KEYS.map((v) => {
+ const previewFallback = latestResolvedIframeUrlRef.current
+ ? v === 'chromePlugin'
+ ? getChromePluginContent(latestResolvedIframeUrlRef.current)
+ : getEmbeddedIframeSnippet(latestResolvedIframeUrlRef.current)
+ : ''
+
+ return (
+ <TabsPanel key={v} value={v} tabIndex={-1}>
+ {v === 'chromePlugin' && (
+ <div className="mt-6 w-full">
+ <button
+ type="button"
+ className={cn(
+ 'inline-flex w-full items-center justify-center gap-2 rounded-lg py-3',
+ 'shrink-0 bg-primary-600 text-white hover:bg-primary-600/75 hover:shadow-sm',
+ )}
+ onClick={navigateToChromeUrl}
+ >
+ <div className={`relative size-4 ${style.pluginInstallIcon}`}></div>
+ <div className="font-['Inter'] text-sm leading-tight font-medium text-white">
+ {t(($) => $[`${prefixEmbedded}.chromePlugin`], { ns: 'appOverview' })}
+ </div>
+ </button>
+ </div>
)}
- </pre>
- </div>
- </div>
- </div>
+ <div
+ className={cn(
+ 'inline-flex w-full flex-col items-start justify-start rounded-lg border-[0.5px] border-components-panel-border bg-background-section',
+ 'mt-6',
+ )}
+ >
+ <div className="inline-flex items-center justify-start gap-2 self-stretch rounded-t-lg bg-background-section-burn py-1 pr-1 pl-3">
+ <div className="shrink-0 grow system-sm-medium text-text-secondary">
+ {t(($) => $[`${prefixEmbedded}.${v}`], { ns: 'appOverview' })}
+ </div>
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <IconButton
+ aria-label={
+ (copiedOption === v
+ ? t(($) => $[`${prefixEmbedded}.copied`], { ns: 'appOverview' })
+ : t(($) => $[`${prefixEmbedded}.copy`], { ns: 'appOverview' })) || ''
+ }
+ onClick={() => void onClickCopy(v)}
+ >
+ {copiedOption === v ? (
+ <span aria-hidden="true" className="i-ri-clipboard-fill size-4" />
+ ) : (
+ <span aria-hidden="true" className="i-ri-clipboard-line size-4" />
+ )}
+ </IconButton>
+ }
+ />
+ <TooltipContent>
+ {(copiedOption === v
+ ? t(($) => $[`${prefixEmbedded}.copied`], { ns: 'appOverview' })
+ : t(($) => $[`${prefixEmbedded}.copy`], { ns: 'appOverview' })) || ''}
+ </TooltipContent>
+ </Tooltip>
+ </div>
+ <div className="flex max-h-[clamp(180px,calc(100dvh-320px),360px)] w-full items-start justify-start gap-2 overflow-auto p-3">
+ <div className="shrink grow basis-0 font-mono text-[13px] leading-tight text-text-secondary">
+ <pre className="select-text">
+ {v === 'scripts' ? (
+ scriptsContent
+ ) : (
+ <Suspense fallback={previewFallback}>
+ <AsyncEmbeddedOptionContent
+ option={v}
+ iframeUrlPromise={previewIframeUrlPromise}
+ latestResolvedIframeUrlRef={latestResolvedIframeUrlRef}
+ />
+ </Suspense>
+ )}
+ </pre>
+ </div>
+ </div>
+ </div>
+ </TabsPanel>
+ )
+ })}
+ </Tabs>
</>
)
}
diff --git a/web/app/components/app/overview/embedded/style.module.css b/web/app/components/app/overview/embedded/style.module.css
index b825fe74eef..f3207d3b463 100644
--- a/web/app/components/app/overview/embedded/style.module.css
+++ b/web/app/components/app/overview/embedded/style.module.css
@@ -2,11 +2,12 @@
.option {
width: 188px;
- height: 128px;
- @apply box-border cursor-pointer rounded-md bg-auto bg-center bg-no-repeat;
+ max-width: calc(100% / 3);
+ aspect-ratio: 188 / 128;
+ @apply box-border min-w-0 cursor-pointer rounded-md bg-contain bg-center bg-no-repeat;
}
.active {
- @apply border-[1.5px] border-[#2970FF];
+ @apply inset-ring-[1.5px] inset-ring-[#2970FF];
}
.iframeIcon {
background-image: url(../assets/iframe-option.svg);
diff --git a/web/app/components/app/overview/settings/__tests__/index.spec.tsx b/web/app/components/app/overview/settings/__tests__/index.spec.tsx
index f3dc21ab1dc..f6c06fd66bc 100644
--- a/web/app/components/app/overview/settings/__tests__/index.spec.tsx
+++ b/web/app/components/app/overview/settings/__tests__/index.spec.tsx
@@ -1,6 +1,7 @@
import type { ReactElement, ReactNode } from 'react'
import type { SettingsAppInfo } from '../index'
import { fireEvent, screen, waitFor } from '@testing-library/react'
+import userEvent from '@testing-library/user-event'
import { NuqsTestingAdapter } from 'nuqs/adapters/testing'
import { consoleQuery } from '@/service/console'
import {
@@ -185,6 +186,20 @@ describe('SettingsModal', () => {
)
})
+ it('names the Inverted switch from its visible label and exposes its state', async () => {
+ const user = userEvent.setup()
+ renderSettingsModal()
+
+ const invertedSwitch = screen.getByRole('switch', {
+ name: 'appOverview.overview.appInfo.settings.chatColorThemeInverted',
+ })
+ expect(invertedSwitch).toBeChecked()
+
+ await user.click(invertedSwitch)
+
+ expect(invertedSwitch).not.toBeChecked()
+ })
+
it('should notify the user when the name is empty', async () => {
renderSettingsModal()
const nameInput = screen.getByPlaceholderText('app.appNamePlaceholder')
diff --git a/web/app/components/app/overview/settings/index.tsx b/web/app/components/app/overview/settings/index.tsx
index 5ff8a7e7e4d..38b83b2b116 100644
--- a/web/app/components/app/overview/settings/index.tsx
+++ b/web/app/components/app/overview/settings/index.tsx
@@ -209,6 +209,7 @@ const SettingsModal: FC<ISettingsModalProps> = ({
const selectedLanguage = LANGUAGE_OPTIONS.find((item) => item.value === language)
const inputPlaceholderLabelId = React.useId()
const inputPlaceholderDescriptionId = React.useId()
+ const invertedThemeLabelId = React.useId()
const inputPlaceholderValue = inputInfo.inputPlaceholder ?? ''
const copyrightSwitchValue = inputInfo.copyrightSwitchValue
const showInputPlaceholderPreview =
@@ -565,12 +566,13 @@ const SettingsModal: FC<ISettingsModalProps> = ({
placeholder="E.g #A020F0"
/>
<div className="flex items-center justify-between gap-2 body-xs-regular text-text-tertiary">
- <span>
+ <span id={invertedThemeLabelId}>
{t(($) => $[`${prefixSettings}.chatColorThemeInverted`], {
ns: 'appOverview',
})}
</span>
<Switch
+ aria-labelledby={invertedThemeLabelId}
checked={inputInfo.chatColorThemeInverted}
onCheckedChange={(v) =>
setInputInfo({ ...inputInfo, chatColorThemeInverted: v })
diff --git a/web/app/components/base/qrcode/__tests__/index.spec.tsx b/web/app/components/base/qrcode/__tests__/index.spec.tsx
index 7c3441f5033..dc4f7cb3f50 100644
--- a/web/app/components/base/qrcode/__tests__/index.spec.tsx
+++ b/web/app/components/base/qrcode/__tests__/index.spec.tsx
@@ -49,9 +49,13 @@ describe('ShareQRCode', () => {
const trigger = screen.getByRole('button', {
name: 'appOverview.overview.appInfo.qrcode.title',
})
+ expect(trigger).toHaveAttribute('aria-expanded', 'false')
+ expect(trigger).not.toHaveAttribute('aria-controls')
await user.click(trigger)
expect(screen.getByRole('img')).toBeInTheDocument()
+ expect(trigger).toHaveAttribute('aria-expanded', 'true')
+ expect(trigger).toHaveAttribute('aria-controls', screen.getByRole('img').parentElement?.id)
expect(
screen.getByRole('button', { name: 'appOverview.overview.appInfo.qrcode.download' }),
).toBeInTheDocument()
@@ -59,6 +63,8 @@ describe('ShareQRCode', () => {
await user.click(trigger)
expect(screen.queryByRole('img')).not.toBeInTheDocument()
+ expect(trigger).toHaveAttribute('aria-expanded', 'false')
+ expect(trigger).not.toHaveAttribute('aria-controls')
})
it('closes panel when clicking outside', async () => {
@@ -96,23 +102,21 @@ describe('ShareQRCode', () => {
expect(canvas).toBeInTheDocument()
})
- it('lets panel interactions bubble without closing the panel', async () => {
+ it('closes with Escape and restores focus to the trigger', async () => {
const user = userEvent.setup()
- const onClick = vi.fn()
- const { container } = render(<ShareQRCode content={content} />)
- container.addEventListener('click', onClick)
+ render(<ShareQRCode content={content} />)
- await user.click(
- screen.getByRole('button', {
- name: 'appOverview.overview.appInfo.qrcode.title',
- }),
- )
- onClick.mockClear()
+ const trigger = screen.getByRole('button', {
+ name: 'appOverview.overview.appInfo.qrcode.title',
+ })
+ await user.click(trigger)
+ expect(screen.getByRole('img')).toBeInTheDocument()
- await user.click(screen.getByRole('img'))
+ await user.keyboard('{Escape}')
- expect(onClick).toHaveBeenCalledOnce()
- expect(screen.getByRole('img')).toBeInTheDocument()
+ expect(screen.queryByRole('img')).not.toBeInTheDocument()
+ expect(trigger).toHaveAttribute('aria-expanded', 'false')
+ expect(trigger).toHaveFocus()
})
it('calls downloadUrl when clicking download', async () => {
diff --git a/web/app/components/base/qrcode/index.tsx b/web/app/components/base/qrcode/index.tsx
index e8a0cf0261f..605d551237e 100644
--- a/web/app/components/base/qrcode/index.tsx
+++ b/web/app/components/base/qrcode/index.tsx
@@ -1,9 +1,9 @@
'use client'
import { IconButton } from '@langgenius/dify-ui/icon-button'
+import { Popover, PopoverContent, PopoverTitle, PopoverTrigger } from '@langgenius/dify-ui/popover'
import { Tooltip, TooltipContent, TooltipTrigger } from '@langgenius/dify-ui/tooltip'
import { QRCodeCanvas as QRCode } from 'qrcode.react'
-import * as React from 'react'
-import { useEffect, useRef, useState } from 'react'
+import { useRef } from 'react'
import { useTranslation } from 'react-i18next'
import { downloadUrl } from '@/utils/download'
@@ -18,27 +18,8 @@ const prefixEmbedded = 'overview.appInfo.qrcode.title'
const ShareQRCode = ({ content, downloadLabel, scanLabel, triggerLabel }: Props) => {
const { t } = useTranslation(['appOverview'])
- const [isShow, setIsShow] = useState<boolean>(false)
const qrCodeRef = useRef<HTMLDivElement>(null)
- const toggleQRCode = (event: React.MouseEvent) => {
- event.stopPropagation()
- setIsShow((prev) => !prev)
- }
-
- useEffect(() => {
- const handleClickOutside = (event: MouseEvent) => {
- /* v8 ignore next 2 -- this handler can fire during open/close transitions where the panel ref is temporarily null; guard is defensive. @preserve */
- if (qrCodeRef.current && !qrCodeRef.current.contains(event.target as Node)) setIsShow(false)
- }
-
- if (isShow) document.addEventListener('click', handleClickOutside)
-
- return () => {
- document.removeEventListener('click', handleClickOutside)
- }
- }, [isShow])
-
const downloadQR = () => {
const canvas = qrCodeRef.current?.querySelector('canvas')
if (!(canvas instanceof HTMLCanvasElement)) return
@@ -52,41 +33,45 @@ const ShareQRCode = ({ content, downloadLabel, scanLabel, triggerLabel }: Props)
downloadLabel ?? t(($) => $['overview.appInfo.qrcode.download'], { ns: 'appOverview' })
return (
- <Tooltip>
- <div className="relative size-6">
+ <Popover>
+ <Tooltip>
<TooltipTrigger
render={
- <IconButton aria-label={safeTooltipText} onClick={toggleQRCode}>
- <span className="i-ri-qr-code-line size-4" aria-hidden="true" />
- </IconButton>
+ <PopoverTrigger
+ render={
+ <IconButton aria-label={safeTooltipText}>
+ <span className="i-ri-qr-code-line size-4" aria-hidden="true" />
+ </IconButton>
+ }
+ />
}
/>
- {isShow && (
- <div
- ref={qrCodeRef}
- className="absolute top-8 -right-8 z-10 flex w-58 flex-col items-center rounded-lg bg-components-panel-bg p-4 shadow-xs"
+ <TooltipContent>{safeTooltipText}</TooltipContent>
+ </Tooltip>
+ <PopoverContent
+ ref={qrCodeRef}
+ placement="bottom-end"
+ className="flex w-58 flex-col items-center rounded-lg p-4 shadow-xs"
+ >
+ <PopoverTitle className="sr-only">{safeTooltipText}</PopoverTitle>
+ <QRCode size={160} value={content} className="mb-2" />
+ <div className="flex items-center system-xs-regular">
+ {scanLabel ? (
+ <>
+ <div className="text-text-tertiary">{scanLabel}</div>
+ <div className="text-text-tertiary">·</div>
+ </>
+ ) : null}
+ <button
+ type="button"
+ className="cursor-pointer border-none bg-transparent p-0 text-left text-text-accent-secondary focus-visible:ring-1 focus-visible:ring-components-input-border-active focus-visible:outline-hidden"
+ onClick={downloadQR}
>
- <QRCode size={160} value={content} className="mb-2" />
- <div className="flex items-center system-xs-regular">
- {scanLabel ? (
- <>
- <div className="text-text-tertiary">{scanLabel}</div>
- <div className="text-text-tertiary">·</div>
- </>
- ) : null}
- <button
- type="button"
- className="cursor-pointer border-none bg-transparent p-0 text-left text-text-accent-secondary focus-visible:ring-1 focus-visible:ring-components-input-border-active focus-visible:outline-hidden"
- onClick={downloadQR}
- >
- {downloadText}
- </button>
- </div>
- </div>
- )}
- </div>
- <TooltipContent>{safeTooltipText}</TooltipContent>
- </Tooltip>
+ {downloadText}
+ </button>
+ </div>
+ </PopoverContent>
+ </Popover>
)
}
diff --git a/web/features/agent-v2/agent-detail/access/components/__tests__/access-surface-cards.spec.tsx b/web/features/agent-v2/agent-detail/access/components/__tests__/access-surface-cards.spec.tsx
index 1e08deacc77..e7225289d6b 100644
--- a/web/features/agent-v2/agent-detail/access/components/__tests__/access-surface-cards.spec.tsx
+++ b/web/features/agent-v2/agent-detail/access/components/__tests__/access-surface-cards.spec.tsx
@@ -694,7 +694,7 @@ describe('Agent access surface cards', () => {
})
await user.click(
- within(dialog).getByRole('button', {
+ within(dialog).getByRole('tab', {
name: 'appOverview.overview.appInfo.embedded.scripts',
}),
)
@@ -1110,7 +1110,21 @@ describe('Agent access surface cards', () => {
)
const dialog = await screen.findByRole('dialog', { name: 'appApi.apiKeyModal.apiSecretKey' })
- expect(await within(dialog).findByText('app...ing-secret-key-token')).toBeInTheDocument()
+ const keyTable = within(dialog).getByRole('table', {
+ name: 'appApi.apiKeyModal.apiSecretKey',
+ })
+ expect(
+ within(keyTable).getByRole('columnheader', { name: 'appApi.apiKeyModal.secretKey' }),
+ ).toBeInTheDocument()
+ expect(
+ within(keyTable).getByRole('columnheader', { name: 'appApi.apiKeyModal.created' }),
+ ).toBeInTheDocument()
+ expect(
+ within(keyTable).getByRole('columnheader', { name: 'appApi.apiKeyModal.lastUsed' }),
+ ).toBeInTheDocument()
+ expect(
+ await within(keyTable).findByRole('cell', { name: 'app...ing-secret-key-token' }),
+ ).toBeInTheDocument()
await user.click(
within(dialog).getByRole('button', { name: 'appApi.apiKeyModal.createNewSecretKey' }),
diff --git a/web/features/agent-v2/agent-detail/access/components/__tests__/workflow-references-table.spec.tsx b/web/features/agent-v2/agent-detail/access/components/__tests__/workflow-references-table.spec.tsx
index c8e67390e1b..085c8a96c46 100644
--- a/web/features/agent-v2/agent-detail/access/components/__tests__/workflow-references-table.spec.tsx
+++ b/web/features/agent-v2/agent-detail/access/components/__tests__/workflow-references-table.spec.tsx
@@ -114,14 +114,14 @@ describe('WorkflowReferencesTable', () => {
renderTable()
- expect(await screen.findByText('Support Workflow')).toBeInTheDocument()
+ expect(await screen.findByRole('cell', { name: 'Support Workflow' })).toBeInTheDocument()
expect(screen.getByText('v3')).toBeInTheDocument()
expect(
screen.getByText('agentV2.agentDetail.access.workflow.nodeCount:{"count":2}'),
).toBeInTheDocument()
expect(screen.getByText('formatted-1781660000')).toBeInTheDocument()
const studioLink = screen.getByRole('link', {
- name: 'agentV2.agentDetail.access.workflow.openInStudioFor:{"name":"Support Workflow"}',
+ name: 'agentV2.agentDetail.access.workflow.openInStudio Support Workflow',
})
expect(studioLink).toHaveAttribute('href', '/app/workflow-app-id/workflow')
expect(studioLink).toHaveAttribute('target', '_blank')
diff --git a/web/features/agent-v2/agent-detail/access/components/agent-api-key-modal.tsx b/web/features/agent-v2/agent-detail/access/components/agent-api-key-modal.tsx
index a18333b9ce9..e35f80db08c 100644
--- a/web/features/agent-v2/agent-detail/access/components/agent-api-key-modal.tsx
+++ b/web/features/agent-v2/agent-detail/access/components/agent-api-key-modal.tsx
@@ -129,7 +129,7 @@ export function AgentApiKeyModal({
return (
<>
<Dialog open={open} onOpenChange={handleOpenChange}>
- <DialogContent className="flex w-full max-w-200! flex-col overflow-hidden px-8">
+ <DialogContent className="flex w-full max-w-200! flex-col px-8">
<DialogClose
render={
<IconButton
@@ -148,79 +148,117 @@ export function AgentApiKeyModal({
{t(($) => $['apiKeyModal.apiSecretKeyTips'])}
</DialogDescription>
- <div className="mt-4 min-h-20 overflow-hidden">
- <div className="flex h-9 shrink-0 items-center border-b border-divider-regular text-xs font-semibold text-text-tertiary">
- <div className="w-64 shrink-0 px-3">{t(($) => $['apiKeyModal.secretKey'])}</div>
- <div className="w-50 shrink-0 px-3">{t(($) => $['apiKeyModal.created'])}</div>
- <div className="w-50 shrink-0 px-3">{t(($) => $['apiKeyModal.lastUsed'])}</div>
- <div className="grow px-3" />
- </div>
- <div className="max-h-70 overflow-auto">
- {apiKeysQuery.isPending && (
- <div
- role="status"
- className="flex h-20 items-center justify-center system-sm-regular text-text-tertiary"
- >
- {t(($) => $.loading)}
- </div>
- )}
- {apiKeysQuery.isError && (
- <div className="flex h-20 items-center justify-center gap-2 system-sm-regular text-text-tertiary">
- <span>{tCommon(($) => $['api.actionFailed'])}</span>
- <Button
- variant="secondary"
- size="small"
- onClick={() => {
- void apiKeysQuery.refetch()
- }}
- >
- {tCommon(($) => $['operation.retry'])}
- </Button>
- </div>
- )}
- {apiKeysQuery.isSuccess && apiKeys.length === 0 && (
- <div className="flex h-20 items-center justify-center system-sm-regular text-text-tertiary">
- {tCommon(($) => $.noData)}
- </div>
- )}
- {apiKeysQuery.isSuccess &&
- apiKeys.map((apiKey) => (
- <div
- className="flex h-9 items-center border-b border-divider-regular text-sm font-normal text-text-secondary last:border-b-0"
- key={apiKey.id}
- >
- <div className="w-64 shrink-0 truncate px-3 font-mono" translate="no">
- {maskApiKey(apiKey.token)}
- </div>
- <div className="w-50 shrink-0 truncate px-3">
- {apiKey.created_at
- ? formatTime(
- apiKey.created_at,
- t(($) => $.dateTimeFormat, { ns: 'appLog' }),
- )
- : t(($) => $.never)}
- </div>
- <div className="w-50 shrink-0 truncate px-3">
- {apiKey.last_used_at
- ? formatTime(
- apiKey.last_used_at,
- t(($) => $.dateTimeFormat, { ns: 'appLog' }),
- )
- : t(($) => $.never)}
- </div>
- <div className="flex grow gap-2 px-3">
- <CopyFeedback content={apiKey.token} />
- <IconButton
- size="md"
- aria-label={tCommon(($) => $['operation.delete'])}
- disabled={isDeleting}
- onClick={() => setApiKeyToDelete(apiKey)}
+ <div className="mt-4 min-h-20 overflow-x-auto overflow-y-hidden">
+ <div className="max-h-70 min-w-184 overflow-x-hidden overflow-y-auto">
+ <table className="w-full table-fixed">
+ <caption className="sr-only">{t(($) => $['apiKeyModal.apiSecretKey'])}</caption>
+ <colgroup>
+ <col className="w-64" />
+ <col className="w-50" />
+ <col className="w-50" />
+ <col />
+ </colgroup>
+ <thead className="sticky top-0 bg-components-panel-bg text-xs font-semibold text-text-tertiary">
+ <tr className="h-9 border-b border-divider-regular">
+ <th scope="col" className="px-3 text-left">
+ {t(($) => $['apiKeyModal.secretKey'])}
+ </th>
+ <th scope="col" className="px-3 text-left">
+ {t(($) => $['apiKeyModal.created'])}
+ </th>
+ <th scope="col" className="px-3 text-left">
+ {t(($) => $['apiKeyModal.lastUsed'])}
+ </th>
+ <th scope="col" className="px-3 text-left">
+ <span className="sr-only">
+ {tCommon(($) => $['operation.copy'])} /{' '}
+ {tCommon(($) => $['operation.delete'])}
+ </span>
+ </th>
+ </tr>
+ </thead>
+ <tbody className="text-sm font-normal text-text-secondary">
+ {apiKeysQuery.isPending && (
+ <tr>
+ <td colSpan={4}>
+ <div
+ role="status"
+ className="flex h-20 items-center justify-center system-sm-regular text-text-tertiary"
+ >
+ {t(($) => $.loading)}
+ </div>
+ </td>
+ </tr>
+ )}
+ {apiKeysQuery.isError && (
+ <tr>
+ <td colSpan={4}>
+ <div className="flex h-20 items-center justify-center gap-2 system-sm-regular text-text-tertiary">
+ <span>{tCommon(($) => $['api.actionFailed'])}</span>
+ <Button
+ variant="secondary"
+ size="small"
+ onClick={() => {
+ void apiKeysQuery.refetch()
+ }}
+ >
+ {tCommon(($) => $['operation.retry'])}
+ </Button>
+ </div>
+ </td>
+ </tr>
+ )}
+ {apiKeysQuery.isSuccess && apiKeys.length === 0 && (
+ <tr>
+ <td colSpan={4}>
+ <div className="flex h-20 items-center justify-center system-sm-regular text-text-tertiary">
+ {tCommon(($) => $.noData)}
+ </div>
+ </td>
+ </tr>
+ )}
+ {apiKeysQuery.isSuccess &&
+ apiKeys.map((apiKey) => (
+ <tr
+ className="h-9 border-b border-divider-regular last:border-b-0"
+ key={apiKey.id}
>
- <span aria-hidden className="i-ri-delete-bin-line size-4" />
- </IconButton>
- </div>
- </div>
- ))}
+ <td className="truncate px-3 font-mono" translate="no">
+ {maskApiKey(apiKey.token)}
+ </td>
+ <td className="truncate px-3">
+ {apiKey.created_at
+ ? formatTime(
+ apiKey.created_at,
+ t(($) => $.dateTimeFormat, { ns: 'appLog' }),
+ )
+ : t(($) => $.never)}
+ </td>
+ <td className="truncate px-3">
+ {apiKey.last_used_at
+ ? formatTime(
+ apiKey.last_used_at,
+ t(($) => $.dateTimeFormat, { ns: 'appLog' }),
+ )
+ : t(($) => $.never)}
+ </td>
+ <td className="px-3">
+ <div className="flex gap-2">
+ <CopyFeedback content={apiKey.token} />
+ <IconButton
+ size="md"
+ aria-label={tCommon(($) => $['operation.delete'])}
+ disabled={isDeleting}
+ onClick={() => setApiKeyToDelete(apiKey)}
+ >
+ <span aria-hidden className="i-ri-delete-bin-line size-4" />
+ </IconButton>
+ </div>
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
</div>
</div>
diff --git a/web/features/agent-v2/agent-detail/access/components/workflow-references-table.tsx b/web/features/agent-v2/agent-detail/access/components/workflow-references-table.tsx
index e2f25a7a0be..05218acd7e8 100644
--- a/web/features/agent-v2/agent-detail/access/components/workflow-references-table.tsx
+++ b/web/features/agent-v2/agent-detail/access/components/workflow-references-table.tsx
@@ -159,12 +159,10 @@ function WorkflowAccessRow({ reference }: { reference: AgentReferencingWorkflowR
href={getWorkflowReferenceHref(reference)}
target="_blank"
rel="noopener noreferrer"
- aria-label={t(($) => $['agentDetail.access.workflow.openInStudioFor'], {
- name: reference.app_name,
- })}
className="inline-flex items-center gap-0.5 rounded-sm text-text-secondary hover:text-text-accent hover:underline focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden"
>
{t(($) => $['agentDetail.access.workflow.openInStudio'])}
+ <span className="sr-only">{reference.app_name}</span>
<span aria-hidden className="i-ri-external-link-line size-4" />
</Link>
</td>
diff --git a/web/i18n/locales/ar-TN/agent-v-2.json b/web/i18n/locales/ar-TN/agent-v-2.json
index 5c332a9285a..dad0ed0a205 100644
--- a/web/i18n/locales/ar-TN/agent-v-2.json
+++ b/web/i18n/locales/ar-TN/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} عقد",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "افتح في Studio",
- "agentDetail.access.workflow.openInStudioFor": "افتح {{name}} في Studio",
"agentDetail.access.workflow.table.actions": "الإجراءات",
"agentDetail.access.workflow.table.lastUpdated": "آخر تحديث",
"agentDetail.access.workflow.table.name": "الاسم",
diff --git a/web/i18n/locales/az-AZ/agent-v-2.json b/web/i18n/locales/az-AZ/agent-v-2.json
index 9cbe20ea1e7..84b8ab6fd26 100644
--- a/web/i18n/locales/az-AZ/agent-v-2.json
+++ b/web/i18n/locales/az-AZ/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} düyün",
"agentDetail.access.workflow.notAvailable": "Tətbiq olunmur",
"agentDetail.access.workflow.openInStudio": "Studiyada aç",
- "agentDetail.access.workflow.openInStudioFor": "{{name}} iş axınını studiyada aç",
"agentDetail.access.workflow.table.actions": "Əməliyyatlar",
"agentDetail.access.workflow.table.lastUpdated": "Son yenilənmə",
"agentDetail.access.workflow.table.name": "Ad",
diff --git a/web/i18n/locales/de-DE/agent-v-2.json b/web/i18n/locales/de-DE/agent-v-2.json
index 46ef67cad2d..0b64e436fe3 100644
--- a/web/i18n/locales/de-DE/agent-v-2.json
+++ b/web/i18n/locales/de-DE/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} Knoten",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "In Studio öffnen",
- "agentDetail.access.workflow.openInStudioFor": "{{name}} in Studio öffnen",
"agentDetail.access.workflow.table.actions": "Aktionen",
"agentDetail.access.workflow.table.lastUpdated": "Zuletzt aktualisiert",
"agentDetail.access.workflow.table.name": "Name",
diff --git a/web/i18n/locales/en-US/agent-v-2.json b/web/i18n/locales/en-US/agent-v-2.json
index f838c2de1a7..abefae3d09b 100644
--- a/web/i18n/locales/en-US/agent-v-2.json
+++ b/web/i18n/locales/en-US/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} nodes",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "Open in Studio",
- "agentDetail.access.workflow.openInStudioFor": "Open {{name}} in Studio",
"agentDetail.access.workflow.table.actions": "Actions",
"agentDetail.access.workflow.table.lastUpdated": "Last updated",
"agentDetail.access.workflow.table.name": "Name",
diff --git a/web/i18n/locales/es-ES/agent-v-2.json b/web/i18n/locales/es-ES/agent-v-2.json
index d01450ff9d0..9bc08ab827d 100644
--- a/web/i18n/locales/es-ES/agent-v-2.json
+++ b/web/i18n/locales/es-ES/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} nodos",
"agentDetail.access.workflow.notAvailable": "N/D",
"agentDetail.access.workflow.openInStudio": "Abrir en Studio",
- "agentDetail.access.workflow.openInStudioFor": "Abrir {{name}} en Studio",
"agentDetail.access.workflow.table.actions": "Acciones",
"agentDetail.access.workflow.table.lastUpdated": "Última actualización",
"agentDetail.access.workflow.table.name": "Nombre",
diff --git a/web/i18n/locales/fa-IR/agent-v-2.json b/web/i18n/locales/fa-IR/agent-v-2.json
index 5009e448faf..584754e854c 100644
--- a/web/i18n/locales/fa-IR/agent-v-2.json
+++ b/web/i18n/locales/fa-IR/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} گره",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "باز کردن در Studio",
- "agentDetail.access.workflow.openInStudioFor": "باز کردن {{name}} در Studio",
"agentDetail.access.workflow.table.actions": "اقدامات",
"agentDetail.access.workflow.table.lastUpdated": "آخرین به‌روزرسانی",
"agentDetail.access.workflow.table.name": "نام",
diff --git a/web/i18n/locales/fr-FR/agent-v-2.json b/web/i18n/locales/fr-FR/agent-v-2.json
index f06151117b7..f98f6aff4d5 100644
--- a/web/i18n/locales/fr-FR/agent-v-2.json
+++ b/web/i18n/locales/fr-FR/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} nœuds",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "Ouvrir dans Studio",
- "agentDetail.access.workflow.openInStudioFor": "Ouvrir {{name}} dans Studio",
"agentDetail.access.workflow.table.actions": "Actions",
"agentDetail.access.workflow.table.lastUpdated": "Dernière mise à jour",
"agentDetail.access.workflow.table.name": "Nom",
diff --git a/web/i18n/locales/hi-IN/agent-v-2.json b/web/i18n/locales/hi-IN/agent-v-2.json
index 24ef8bb77b1..4540cfe38c1 100644
--- a/web/i18n/locales/hi-IN/agent-v-2.json
+++ b/web/i18n/locales/hi-IN/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} नोड",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "Studio में खोलें",
- "agentDetail.access.workflow.openInStudioFor": "{{name}} को Studio में खोलें",
"agentDetail.access.workflow.table.actions": "क्रियाएँ",
"agentDetail.access.workflow.table.lastUpdated": "अंतिम अद्यतन",
"agentDetail.access.workflow.table.name": "नाम",
diff --git a/web/i18n/locales/id-ID/agent-v-2.json b/web/i18n/locales/id-ID/agent-v-2.json
index e759345f7c1..9a42a18d3a9 100644
--- a/web/i18n/locales/id-ID/agent-v-2.json
+++ b/web/i18n/locales/id-ID/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} simpul",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "Buka di Studio",
- "agentDetail.access.workflow.openInStudioFor": "Buka {{name}} di Studio",
"agentDetail.access.workflow.table.actions": "Tindakan",
"agentDetail.access.workflow.table.lastUpdated": "Terakhir diperbarui",
"agentDetail.access.workflow.table.name": "Nama",
diff --git a/web/i18n/locales/it-IT/agent-v-2.json b/web/i18n/locales/it-IT/agent-v-2.json
index f5ecd4d9761..1c5a24dc719 100644
--- a/web/i18n/locales/it-IT/agent-v-2.json
+++ b/web/i18n/locales/it-IT/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} nodi",
"agentDetail.access.workflow.notAvailable": "N/D",
"agentDetail.access.workflow.openInStudio": "Apri in Studio",
- "agentDetail.access.workflow.openInStudioFor": "Apri {{name}} in Studio",
"agentDetail.access.workflow.table.actions": "Azioni",
"agentDetail.access.workflow.table.lastUpdated": "Ultimo aggiornamento",
"agentDetail.access.workflow.table.name": "Nome",
diff --git a/web/i18n/locales/ja-JP/agent-v-2.json b/web/i18n/locales/ja-JP/agent-v-2.json
index 499d77bc082..c5452f0373d 100644
--- a/web/i18n/locales/ja-JP/agent-v-2.json
+++ b/web/i18n/locales/ja-JP/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} ノード",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "Studio で開く",
- "agentDetail.access.workflow.openInStudioFor": "{{name}} を Studio で開く",
"agentDetail.access.workflow.table.actions": "操作",
"agentDetail.access.workflow.table.lastUpdated": "最終更新",
"agentDetail.access.workflow.table.name": "名前",
diff --git a/web/i18n/locales/ko-KR/agent-v-2.json b/web/i18n/locales/ko-KR/agent-v-2.json
index 3ee36e7c95c..e8c4a580749 100644
--- a/web/i18n/locales/ko-KR/agent-v-2.json
+++ b/web/i18n/locales/ko-KR/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "노드 {{count}}개",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "Studio에서 열기",
- "agentDetail.access.workflow.openInStudioFor": "Studio에서 {{name}} 열기",
"agentDetail.access.workflow.table.actions": "작업",
"agentDetail.access.workflow.table.lastUpdated": "마지막 업데이트",
"agentDetail.access.workflow.table.name": "이름",
diff --git a/web/i18n/locales/lo-LA/agent-v-2.json b/web/i18n/locales/lo-LA/agent-v-2.json
index 187a848c2cf..101ca3cbe46 100644
--- a/web/i18n/locales/lo-LA/agent-v-2.json
+++ b/web/i18n/locales/lo-LA/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} ໂນດ",
"agentDetail.access.workflow.notAvailable": "ບໍ່ມີຂໍ້ມູນ",
"agentDetail.access.workflow.openInStudio": "ເປີດໃນ Studio",
- "agentDetail.access.workflow.openInStudioFor": "ເປີດ {{name}} ໃນ Studio",
"agentDetail.access.workflow.table.actions": "ການດຳເນີນການ",
"agentDetail.access.workflow.table.lastUpdated": "ອັບເດດຫຼ້າສຸດ",
"agentDetail.access.workflow.table.name": "ຊື່",
diff --git a/web/i18n/locales/nl-NL/agent-v-2.json b/web/i18n/locales/nl-NL/agent-v-2.json
index fe4072ce1cb..7e78a390f43 100644
--- a/web/i18n/locales/nl-NL/agent-v-2.json
+++ b/web/i18n/locales/nl-NL/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} knooppunten",
"agentDetail.access.workflow.notAvailable": "N/B",
"agentDetail.access.workflow.openInStudio": "Openen in Studio",
- "agentDetail.access.workflow.openInStudioFor": "{{name}} openen in Studio",
"agentDetail.access.workflow.table.actions": "Acties",
"agentDetail.access.workflow.table.lastUpdated": "Laatst bijgewerkt",
"agentDetail.access.workflow.table.name": "Naam",
diff --git a/web/i18n/locales/pl-PL/agent-v-2.json b/web/i18n/locales/pl-PL/agent-v-2.json
index c14961bdebb..62ba0862a05 100644
--- a/web/i18n/locales/pl-PL/agent-v-2.json
+++ b/web/i18n/locales/pl-PL/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} węzłów",
"agentDetail.access.workflow.notAvailable": "Nd.",
"agentDetail.access.workflow.openInStudio": "Otwórz w Studio",
- "agentDetail.access.workflow.openInStudioFor": "Otwórz {{name}} w Studio",
"agentDetail.access.workflow.table.actions": "Akcje",
"agentDetail.access.workflow.table.lastUpdated": "Ostatnia aktualizacja",
"agentDetail.access.workflow.table.name": "Nazwa",
diff --git a/web/i18n/locales/pt-BR/agent-v-2.json b/web/i18n/locales/pt-BR/agent-v-2.json
index 7b98990139a..04a228ee32f 100644
--- a/web/i18n/locales/pt-BR/agent-v-2.json
+++ b/web/i18n/locales/pt-BR/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} nós",
"agentDetail.access.workflow.notAvailable": "N/D",
"agentDetail.access.workflow.openInStudio": "Abrir no Studio",
- "agentDetail.access.workflow.openInStudioFor": "Abrir {{name}} no Studio",
"agentDetail.access.workflow.table.actions": "Ações",
"agentDetail.access.workflow.table.lastUpdated": "Última atualização",
"agentDetail.access.workflow.table.name": "Nome",
diff --git a/web/i18n/locales/ro-RO/agent-v-2.json b/web/i18n/locales/ro-RO/agent-v-2.json
index 27410d1c194..621c9201def 100644
--- a/web/i18n/locales/ro-RO/agent-v-2.json
+++ b/web/i18n/locales/ro-RO/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} noduri",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "Deschide în Studio",
- "agentDetail.access.workflow.openInStudioFor": "Deschide {{name}} în Studio",
"agentDetail.access.workflow.table.actions": "Acțiuni",
"agentDetail.access.workflow.table.lastUpdated": "Ultima actualizare",
"agentDetail.access.workflow.table.name": "Nume",
diff --git a/web/i18n/locales/ru-RU/agent-v-2.json b/web/i18n/locales/ru-RU/agent-v-2.json
index 6e1a4c28cdb..078208033a1 100644
--- a/web/i18n/locales/ru-RU/agent-v-2.json
+++ b/web/i18n/locales/ru-RU/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} узлов",
"agentDetail.access.workflow.notAvailable": "Н/Д",
"agentDetail.access.workflow.openInStudio": "Открыть в Studio",
- "agentDetail.access.workflow.openInStudioFor": "Открыть {{name}} в Studio",
"agentDetail.access.workflow.table.actions": "Действия",
"agentDetail.access.workflow.table.lastUpdated": "Последнее обновление",
"agentDetail.access.workflow.table.name": "Имя",
diff --git a/web/i18n/locales/sl-SI/agent-v-2.json b/web/i18n/locales/sl-SI/agent-v-2.json
index eb45a5fc2be..3d189126e52 100644
--- a/web/i18n/locales/sl-SI/agent-v-2.json
+++ b/web/i18n/locales/sl-SI/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} vozlišč",
"agentDetail.access.workflow.notAvailable": "Ni na voljo",
"agentDetail.access.workflow.openInStudio": "Odpri v Studiu",
- "agentDetail.access.workflow.openInStudioFor": "Odpri {{name}} v Studiu",
"agentDetail.access.workflow.table.actions": "Dejanja",
"agentDetail.access.workflow.table.lastUpdated": "Zadnja posodobitev",
"agentDetail.access.workflow.table.name": "Ime",
diff --git a/web/i18n/locales/th-TH/agent-v-2.json b/web/i18n/locales/th-TH/agent-v-2.json
index a12969b5dfe..f4b8f5d0c2a 100644
--- a/web/i18n/locales/th-TH/agent-v-2.json
+++ b/web/i18n/locales/th-TH/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} โหนด",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "เปิดใน Studio",
- "agentDetail.access.workflow.openInStudioFor": "เปิด {{name}} ใน Studio",
"agentDetail.access.workflow.table.actions": "การกระทำ",
"agentDetail.access.workflow.table.lastUpdated": "อัปเดตล่าสุด",
"agentDetail.access.workflow.table.name": "ชื่อ",
diff --git a/web/i18n/locales/tr-TR/agent-v-2.json b/web/i18n/locales/tr-TR/agent-v-2.json
index 81fddf7ad0b..ab319086a96 100644
--- a/web/i18n/locales/tr-TR/agent-v-2.json
+++ b/web/i18n/locales/tr-TR/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} düğüm",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "Studio'da aç",
- "agentDetail.access.workflow.openInStudioFor": "{{name}} öğesini Studio'da aç",
"agentDetail.access.workflow.table.actions": "Eylemler",
"agentDetail.access.workflow.table.lastUpdated": "Son güncelleme",
"agentDetail.access.workflow.table.name": "Ad",
diff --git a/web/i18n/locales/uk-UA/agent-v-2.json b/web/i18n/locales/uk-UA/agent-v-2.json
index fbb1e23258d..8a8ff9c9215 100644
--- a/web/i18n/locales/uk-UA/agent-v-2.json
+++ b/web/i18n/locales/uk-UA/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} вузлів",
"agentDetail.access.workflow.notAvailable": "Н/Д",
"agentDetail.access.workflow.openInStudio": "Відкрити в Studio",
- "agentDetail.access.workflow.openInStudioFor": "Відкрити {{name}} в Studio",
"agentDetail.access.workflow.table.actions": "Дії",
"agentDetail.access.workflow.table.lastUpdated": "Останнє оновлення",
"agentDetail.access.workflow.table.name": "Назва",
diff --git a/web/i18n/locales/vi-VN/agent-v-2.json b/web/i18n/locales/vi-VN/agent-v-2.json
index e41db6b3b0b..1403c2638de 100644
--- a/web/i18n/locales/vi-VN/agent-v-2.json
+++ b/web/i18n/locales/vi-VN/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} nút",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "Mở trong Studio",
- "agentDetail.access.workflow.openInStudioFor": "Mở {{name}} trong Studio",
"agentDetail.access.workflow.table.actions": "Hành động",
"agentDetail.access.workflow.table.lastUpdated": "Cập nhật lần cuối",
"agentDetail.access.workflow.table.name": "Tên",
diff --git a/web/i18n/locales/zh-Hans/agent-v-2.json b/web/i18n/locales/zh-Hans/agent-v-2.json
index 30906127bf7..fb66b58ce73 100644
--- a/web/i18n/locales/zh-Hans/agent-v-2.json
+++ b/web/i18n/locales/zh-Hans/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} 个节点",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "在 Studio 中打开",
- "agentDetail.access.workflow.openInStudioFor": "在 Studio 中打开 {{name}}",
"agentDetail.access.workflow.table.actions": "操作",
"agentDetail.access.workflow.table.lastUpdated": "最后更新",
"agentDetail.access.workflow.table.name": "名称",
diff --git a/web/i18n/locales/zh-Hant/agent-v-2.json b/web/i18n/locales/zh-Hant/agent-v-2.json
index 10b1fcd1041..c0b2ce33485 100644
--- a/web/i18n/locales/zh-Hant/agent-v-2.json
+++ b/web/i18n/locales/zh-Hant/agent-v-2.json
@@ -34,7 +34,6 @@
"agentDetail.access.workflow.nodeCount_other": "{{count}} 個節點",
"agentDetail.access.workflow.notAvailable": "N/A",
"agentDetail.access.workflow.openInStudio": "在 Studio 中開啟",
- "agentDetail.access.workflow.openInStudioFor": "在 Studio 中開啟 {{name}}",
"agentDetail.access.workflow.table.actions": "操作",
"agentDetail.access.workflow.table.lastUpdated": "最後更新",
"agentDetail.access.workflow.table.name": "名稱",
diff --git a/web/i18n/resources.generated.d.ts b/web/i18n/resources.generated.d.ts
index 830ffe28045..8f1943d7d5b 100644
--- a/web/i18n/resources.generated.d.ts
+++ b/web/i18n/resources.generated.d.ts
@@ -154,7 +154,6 @@ export default interface Resources {
'agentDetail.access.workflow.nodeCount': '{{count}} node' | '{{count}} nodes'
'agentDetail.access.workflow.notAvailable': 'N/A'
'agentDetail.access.workflow.openInStudio': 'Open in Studio'
- 'agentDetail.access.workflow.openInStudioFor': 'Open {{name}} in Studio'
'agentDetail.access.workflow.table.actions': 'Actions'
'agentDetail.access.workflow.table.lastUpdated': 'Last updated'
'agentDetail.access.workflow.table.name': 'Name'