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): unify app metadata forms and dialog ownership (#44405)
yyh008c80f2eca4
diff --git a/web/app/components/app-sidebar/app-info/__tests__/app-info-modals.spec.tsx b/web/app/components/app-sidebar/app-info/__tests__/app-info-modals.spec.tsxindex e09cb786355..415009bb28d 100644--- a/web/app/components/app-sidebar/app-info/__tests__/app-info-modals.spec.tsx+++ b/web/app/components/app-sidebar/app-info/__tests__/app-info-modals.spec.tsx@@ -7,7 +7,6 @@ import { createConsoleQueryClient, renderWithConsoleQuery } from '@/test/consoleimport { mockEmojiData } from '@/test/emoji-picker'import { createAppDetailFixture } from '@/test/fixtures/app'import AppInfoModals from '../app-info-modals'-import { AppMetadataDialog } from '../app-metadata-dialog'import { DeleteAppDialog } from '../delete-app-dialog'import { ExportAppDialog } from '../export-app-dialog'@@ -49,7 +48,13 @@ function MetadataEntry({ operation = 'edit' }: { operation?: 'edit' | 'duplicatereturn (<><button onClick={() => setOpen(true)}>Reopen</button>- <AppMetadataDialog appDetail={app} operation={operation} open={open} onOpenChange={setOpen} />+ <AppInfoModals+ appDetail={app}+ activeModal={open ? operation : null}+ onOpenChange={setOpen}+ exportOpen={false}+ onExportOpenChange={() => {}}+ /></>)}@@ -98,7 +103,7 @@ it('keeps the edit draft on failure, guards pending dismissal and closes only afconst name = await screen.findByRole('textbox', { name: 'app.newApp.name' })await user.clear(name)await user.type(name, 'Retried name')- await user.click(screen.getByRole('button', { name: 'common.operation.save' }))+ await user.click(screen.getByRole('button', { name: /common.operation.save/ }))await waitFor(() => expect(service.request).toHaveBeenCalledTimes(1))expect(name).toHaveAttribute('readonly')await user.keyboard('{Escape}')@@ -107,7 +112,7 @@ it('keeps the edit draft on failure, guards pending dismissal and closes only afawait waitFor(() => expect(name).not.toHaveAttribute('readonly'))expect(name).toHaveValue('Retried name')service.request.mockResolvedValueOnce(Response.json({ ...app, name: 'Retried name' }))- await user.click(screen.getByRole('button', { name: 'common.operation.save' }))+ await user.click(screen.getByRole('button', { name: /common.operation.save/ }))await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument())})@@ -306,7 +311,7 @@ it.each(['duplicate', 'delete'] as const)(await user.click(screen.getByRole('button', { name: 'common.operation.fill' }))await user.click(screen.getByRole('button', {- name: operation === 'delete' ? 'common.operation.confirm' : 'app.duplicate',+ name: operation === 'delete' ? 'common.operation.confirm' : /app.duplicate/,}),)await waitFor(() =>@@ -324,3 +329,52 @@ it.each(['duplicate', 'delete'] as const)(}},)++it.each([0, 12, null])(+ 'submits the number field as a numeric value and omits an empty value: %s',+ async (limit) => {+ const user = userEvent.setup()+ service.request.mockResolvedValueOnce(Response.json(app))+ render(<MetadataEntry />)+ const input = await screen.findByRole('textbox', { name: 'app.maxActiveRequests' })+ await user.clear(input)+ if (limit !== null) await user.type(input, String(limit))+ await user.click(screen.getByRole('button', { name: /common.operation.save/ }))+ await waitFor(() => expect(service.request).toHaveBeenCalledOnce())+ const request = service.request.mock.calls[0]?.[2]?.request+ expect(request).toBeInstanceOf(Request)+ const payload = await request.json()+ if (limit === null) expect(payload).not.toHaveProperty('max_active_requests')+ else expect(payload.max_active_requests).toBe(limit)+ },+)++it('keeps the shared edit cache policy when closing after a successful save', async () => {+ const user = userEvent.setup()+ const queryClient = createConsoleQueryClient()+ const detailKey = consoleQuery.apps.byAppId.get.queryKey({+ input: { params: { app_id: app.id } },+ })+ queryClient.setQueryData(detailKey, app)+ const invalidate = vi.spyOn(queryClient, 'invalidateQueries')+ const updated = { ...app, name: 'Saved name' }+ service.request.mockResolvedValueOnce(Response.json(updated))+ renderWithConsoleQuery(<MetadataEntry />, {+ queryClient,+ systemFeatures: { deployment_edition: 'COMMUNITY', rbac_enabled: false },+ })+ await user.click(await screen.findByRole('button', { name: /common.operation.save/ }))+ await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument())+ expect(queryClient.getQueryData(detailKey)).toEqual(updated)+ for (const queryKey of [+ consoleQuery.apps.get.key(),+ consoleQuery.apps.starred.get.key(),+ consoleQuery.apps.recent.get.key(),+ ]) {+ expect(+ invalidate.mock.calls.filter(+ ([options]) => JSON.stringify(options?.queryKey) === JSON.stringify(queryKey),+ ),+ ).toHaveLength(1)+ }+})diff --git a/web/app/components/app-sidebar/app-info/app-info-modals.tsx b/web/app/components/app-sidebar/app-info/app-info-modals.tsxindex c669956a67e..8a1deeea927 100644--- a/web/app/components/app-sidebar/app-info/app-info-modals.tsx+++ b/web/app/components/app-sidebar/app-info/app-info-modals.tsx@@ -1,10 +1,18 @@import type { AppDetailWithSite } from '@dify/contracts/api/console/apps/types.gen'import type { AlertDialogProps } from '@langgenius/dify-ui/alert-dialog'-import type { DialogProps } from '@langgenius/dify-ui/dialog'-import { useState } from 'react'+import type { DialogActions, DialogProps } from '@langgenius/dify-ui/dialog'+import { Dialog, DialogContent } from '@langgenius/dify-ui/dialog'+import { useMutation, useSuspenseQuery } from '@tanstack/react-query'+import { useRef, useState } from 'react'+import { useTranslation } from 'react-i18next'+import { AppMetadataForm } from '@/app/components/app/app-metadata'import SwitchAppModal from '@/app/components/app/switch-app-modal'import UpdateDSLModal from '@/app/components/workflow/update-dsl-modal'-import { AppMetadataDialog } from './app-metadata-dialog'+import { toast } from '@/app/notifications'+import { systemFeaturesQueryOptions } from '@/features/system-features/client'+import { useRouter } from '@/next/navigation'+import { consoleQuery } from '@/service/console'+import { getRedirection } from '@/utils/app-redirection'import { DeleteAppDialog } from './delete-app-dialog'import { ExportAppDialog } from './export-app-dialog'@@ -25,20 +33,106 @@ export default function AppInfoModals({exportOpen,onExportOpenChange,}: AppInfoModalsProps) {+ const editActionsRef = useRef<DialogActions>(null)+ const duplicateActionsRef = useRef<DialogActions>(null)+ const editNameRef = useRef<HTMLInputElement>(null)+ const duplicateNameRef = useRef<HTMLInputElement>(null)+ const { t } = useTranslation(['app'])+ const { replace } = useRouter()+ const { data: isRbacEnabled } = useSuspenseQuery({+ ...systemFeaturesQueryOptions(),+ select: (data) => data.rbac_enabled,+ })+ const edit = useMutation(+ consoleQuery.apps.byAppId.put.mutationOptions({ context: { silent: true } }),+ )+ const copy = useMutation(+ consoleQuery.apps.byAppId.copy.post.mutationOptions({ context: { silent: true } }),+ )return (<>- <AppMetadataDialog- appDetail={appDetail}- operation="edit"+ <Dialog+ actionsRef={editActionsRef}open={activeModal === 'edit'}- onOpenChange={onOpenChange}- />- <AppMetadataDialog- appDetail={appDetail}- operation="duplicate"+ disablePointerDismissal+ onOpenChange={(open, details) => {+ if (!open && edit.isPending && details.reason !== 'imperative-action') details.cancel()+ else onOpenChange?.(open, details)+ }}+ onOpenChangeComplete={(open) => {+ if (!open) edit.reset()+ }}+ >+ <DialogContent initialFocus={editNameRef}>+ <AppMetadataForm+ appDetail={appDetail}+ operation="edit"+ nameInputRef={editNameRef}+ isPending={edit.isPending}+ error={edit.error?.message}+ onSubmit={(body) => {+ if (edit.isPending) return+ edit.mutate(+ { params: { app_id: appDetail.id }, body },+ {+ onSuccess: () => {+ editActionsRef.current?.close()+ void import('@/app/components/workflow/collaboration/core/websocket-manager')+ .then(({ webSocketClient }) => {+ webSocketClient.getSocket(appDetail.id)?.emit('collaboration_event', {+ type: 'app_meta_update',+ data: { timestamp: Date.now() },+ timestamp: Date.now(),+ })+ })+ .catch(() => {})+ },+ },+ )+ }}+ />+ </DialogContent>+ </Dialog>+ <Dialog+ actionsRef={duplicateActionsRef}open={activeModal === 'duplicate'}- onOpenChange={onOpenChange}- />+ onOpenChange={(open, details) => {+ if (!open && copy.isPending && details.reason !== 'imperative-action') details.cancel()+ else onOpenChange?.(open, details)+ }}+ onOpenChangeComplete={(open) => {+ if (!open) copy.reset()+ }}+ >+ <DialogContent initialFocus={duplicateNameRef}>+ <AppMetadataForm+ appDetail={appDetail}+ operation="duplicate"+ nameInputRef={duplicateNameRef}+ isPending={copy.isPending}+ error={copy.error?.message}+ onSubmit={({ name, icon_type, icon, icon_background }) => {+ if (copy.isPending) return+ copy.mutate(+ {+ params: { app_id: appDetail.id },+ body: { name, icon_type, icon, icon_background },+ },+ {+ onSuccess: (app) => {+ if (!('mode' in app)) {+ toast.error(t(($) => $['newApp.appCreateFailed']))+ return+ }+ duplicateActionsRef.current?.close()+ getRedirection(app, replace, { isRbacEnabled })+ },+ },+ )+ }}+ />+ </DialogContent>+ </Dialog><SwitchAppModalsourceApp={appDetail}open={activeModal === 'switch'}diff --git a/web/app/components/app/app-metadata/__tests__/index.spec.tsx b/web/app/components/app/app-metadata/__tests__/index.spec.tsxnew file mode 100644index 00000000000..9fa31dfe05b--- /dev/null+++ b/web/app/components/app/app-metadata/__tests__/index.spec.tsx@@ -0,0 +1,208 @@+import type { UpdateAppPayload } from '@dify/contracts/api/console/apps/types.gen'+import type { ComponentProps } from 'react'+import type { Mock } from 'vite-plus/test'+import { Dialog, DialogContent } from '@langgenius/dify-ui/dialog'+import { useMutation } from '@tanstack/react-query'+import { act, fireEvent, screen, waitFor, within } from '@testing-library/react'+import userEvent from '@testing-library/user-event'+import { useRef, useState } from 'react'+import { renderWithConsoleQuery } from '@/test/console/query-data'+import { mockEmojiData } from '@/test/emoji-picker'+import { createNuqsTestWrapper } from '@/test/nuqs-testing'+import { AppMetadataForm } from '../index'++vi.mock('@/next/navigation', () => ({ useParams: () => ({}) }))++const app: ComponentProps<typeof AppMetadataForm>['appDetail'] = {+ name: 'Test App',+ description: 'Test description',+ icon_type: 'emoji',+ icon: '🤖',+ icon_background: '#FFEAD5',+ icon_url: null,+}+function setup({+ source = app,+ onConfirm = vi.fn<(body: UpdateAppPayload) => Promise<void>>().mockResolvedValue(undefined),+ cloud = false,+ quota = { size: 1, limit: 10 },+}: {+ source?: ComponentProps<typeof AppMetadataForm>['appDetail']+ onConfirm?: Mock<(body: UpdateAppPayload) => Promise<void>>+ cloud?: boolean+ quota?: { size: number; limit: number }+} = {}) {+ function Entry() {+ const [open, setOpen] = useState(true)+ const submission = useMutation({ mutationFn: (body: UpdateAppPayload) => onConfirm(body) })+ const nameInputRef = useRef<HTMLInputElement>(null)+ return (+ <>+ <button onClick={() => setOpen(true)}>Reopen</button>+ <Dialog+ open={open}+ onOpenChangeComplete={(open) => {+ if (!open && !submission.isPending) submission.reset()+ }}+ onOpenChange={(nextOpen, details) => {+ if (!nextOpen && submission.isPending) details.cancel()+ else setOpen(nextOpen)+ }}+ >+ <DialogContent initialFocus={nameInputRef}>+ <AppMetadataForm+ operation="create"+ appDetail={source}+ nameInputRef={nameInputRef}+ isPending={submission.isPending}+ error={submission.error?.message}+ onSubmit={(body) => {+ if (!submission.isPending) submission.mutate(body)+ }}+ />+ </DialogContent>+ </Dialog>+ </>+ )+ }+ const { wrapper: UrlState } = createNuqsTestWrapper()+ renderWithConsoleQuery(+ <UrlState>+ <Entry />+ </UrlState>,+ {+ systemFeatures: { deployment_edition: cloud ? 'CLOUD' : 'COMMUNITY' },+ features: { apps: quota },+ },+ )+ return { onConfirm }+}++it('submits current name, description and icon through the form', async () => {+ const user = userEvent.setup()+ const { onConfirm } = setup()+ const name = await screen.findByRole('textbox', { name: 'app.newApp.name' })+ await user.clear(name)+ await user.type(name, 'Created app')+ const description = screen.getByRole('textbox', { name: 'app.newApp.captionDescription' })+ await user.clear(description)+ await user.type(description, 'Updated description')+ await user.click(screen.getByRole('button', { name: /common.operation.create/ }))+ await waitFor(() =>+ expect(onConfirm).toHaveBeenCalledExactlyOnceWith({+ name: 'Created app',+ description: 'Updated description',+ icon_type: 'emoji',+ icon: '🤖',+ icon_background: '#FFEAD5',+ }),+ )+})++it('keeps failed drafts, blocks repeated submission and pending dismissal, and allows retry', async () => {+ const user = userEvent.setup()+ let rejectRequest: (error: Error) => void = () => {}+ const onConfirm = vi.fn<(body: UpdateAppPayload) => Promise<void>>().mockImplementationOnce(+ () =>+ new Promise((_resolve, reject) => {+ rejectRequest = reject+ }),+ )+ setup({ onConfirm })+ const name = await screen.findByRole('textbox', { name: 'app.newApp.name' })+ await user.clear(name)+ await user.type(name, 'Retry draft{Enter}')+ await waitFor(() => expect(onConfirm).toHaveBeenCalledOnce())+ expect(name).toHaveAttribute('readonly')+ await user.keyboard('{Escape}')+ await user.click(screen.getByRole('button', { name: /common.operation.create/ }))+ expect(onConfirm).toHaveBeenCalledOnce()+ expect(screen.getByRole('dialog')).toBeInTheDocument()+ await act(async () => rejectRequest(new Error('Import unavailable')))+ expect(await screen.findByRole('alert')).toHaveTextContent('Import unavailable')+ expect(name).toHaveValue('Retry draft')+ onConfirm.mockResolvedValueOnce(undefined)+ await user.click(screen.getByRole('button', { name: /common.operation.create/ }))+ await waitFor(() => expect(onConfirm).toHaveBeenCalledTimes(2))+})++it('resets cancelled drafts and errors when the persistent dialog reopens', async () => {+ const user = userEvent.setup()+ setup({+ onConfirm: vi+ .fn<(body: UpdateAppPayload) => Promise<void>>()+ .mockRejectedValue(new Error('Failed')),+ })+ const name = await screen.findByRole('textbox', { name: 'app.newApp.name' })+ await user.clear(name)+ await user.type(name, 'Discarded{Enter}')+ await screen.findByRole('alert')+ await user.click(screen.getByRole('button', { name: 'common.operation.cancel' }))+ await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument())+ await user.click(screen.getByRole('button', { name: 'Reopen' }))+ expect(await screen.findByRole('textbox', { name: 'app.newApp.name' })).toHaveValue(app.name)+ expect(screen.queryByRole('alert')).not.toBeInTheDocument()+})++it.each(['', ' '])('prevents submission of a blank name: %j', async (name) => {+ const user = userEvent.setup()+ const { onConfirm } = setup({ source: { ...app, name } })+ await user.click(await screen.findByRole('button', { name: /common.operation.create/ }))+ expect(onConfirm).not.toHaveBeenCalled()+})++it.each([+ { icon_type: null, icon: null, icon_background: null },+ { icon_type: 'link' as const, icon: 'https://example.com/icon.png', icon_background: null },+ { icon_type: 'image' as const, icon: 'file-id', icon_background: null },+])('preserves an unchanged icon and nullable background: %j', async (icon) => {+ const user = userEvent.setup()+ const { onConfirm } = setup({ source: { ...app, ...icon } })+ await user.click(await screen.findByRole('button', { name: /common.operation.create/ }))+ await waitFor(() => expect(onConfirm).toHaveBeenCalledWith(expect.objectContaining(icon)))+})++it.each([+ { platform: 'Win32', modifier: { ctrlKey: true } },+ { platform: 'MacIntel', modifier: { metaKey: true } },+])(+ 'excludes nested picker submission, IME and repeats from Mod+Enter on $platform',+ async ({ platform, modifier }) => {+ const user = userEvent.setup()+ vi.spyOn(navigator, 'platform', 'get').mockReturnValue(platform)+ const { onConfirm } = setup()+ await user.click(await screen.findByRole('button', { name: 'app.iconPicker.title' }))+ const picker = await screen.findByRole('dialog', { name: 'app.iconPicker.title' })+ fireEvent.keyDown(within(picker).getByPlaceholderText('app.iconPicker.search'), {+ key: 'Enter',+ ...modifier,+ })+ expect(onConfirm).not.toHaveBeenCalled()+ await user.click(within(picker).getByRole('radio', { name: 'app.iconPicker.color.green' }))+ await user.click(within(picker).getByRole('button', { name: 'app.iconPicker.ok' }))+ expect(onConfirm).not.toHaveBeenCalled()+ const name = screen.getByRole('textbox', { name: 'app.newApp.name' })+ fireEvent.keyDown(name, { key: 'Enter', ...modifier, isComposing: true })+ fireEvent.keyDown(name, { key: 'Enter', ...modifier, repeat: true })+ expect(onConfirm).not.toHaveBeenCalled()+ fireEvent.keyDown(name, { key: 'Enter', ...modifier })+ await waitFor(() => expect(onConfirm).toHaveBeenCalledOnce())+ expect(onConfirm).toHaveBeenCalledWith(expect.objectContaining({ icon_background: '#F3FEE7' }))+ },+)++it.each([+ { cloud: true, quota: { size: 10, limit: 10 }, disabled: true },+ { cloud: true, quota: { size: 10, limit: 0 }, disabled: false },+ { cloud: false, quota: { size: 10, limit: 10 }, disabled: false },+])(+ 'applies cloud creation quota without treating zero as a limit: %j',+ async ({ cloud, quota, disabled }) => {+ setup({ cloud, quota })+ const create = await screen.findByRole('button', { name: /common.operation.create/ })+ if (disabled) expect(create).toBeDisabled()+ else expect(create).toBeEnabled()+ },+)++mockEmojiData()diff --git a/web/app/components/app-sidebar/app-info/app-metadata-dialog.tsx b/web/app/components/app/app-metadata/index.tsxsimilarity index 53%rename from web/app/components/app-sidebar/app-info/app-metadata-dialog.tsxrename to web/app/components/app/app-metadata/index.tsxindex 1d938ec8137..99d53b152c9 100644--- a/web/app/components/app-sidebar/app-info/app-metadata-dialog.tsx+++ b/web/app/components/app/app-metadata/index.tsx@@ -1,15 +1,12 @@-import type {- AppDetailWithSite,- UpdateAppPayload,-} from '@dify/contracts/api/console/apps/types.gen'-import type { DialogActions, DialogProps } from '@langgenius/dify-ui/dialog'+'use client'++import type { AppPartial, UpdateAppPayload } from '@dify/contracts/api/console/apps/types.gen'+import type { HotkeyChord } from '@tanstack/react-hotkeys'import type { IconPickerInputValue, IconPickerValue } from '@/app/components/base/icon-picker'import { Button } from '@langgenius/dify-ui/button'import {- Dialog,DialogBody,DialogClose,- DialogContent,DialogFooter,DialogHeader,DialogHeaderCloseButton,@@ -19,9 +16,19 @@ import { Field, FieldDescription, FieldError, FieldLabel } from '@langgenius/difimport { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'import { Form } from '@langgenius/dify-ui/form'import { Input } from '@langgenius/dify-ui/input'+import { Kbd, KbdGroup } from '@langgenius/dify-ui/kbd'+import {+ NumberField,+ NumberFieldControls,+ NumberFieldDecrement,+ NumberFieldGroup,+ NumberFieldIncrement,+ NumberFieldInput,+} from '@langgenius/dify-ui/number-field'import { Switch } from '@langgenius/dify-ui/switch'import { Textarea } from '@langgenius/dify-ui/textarea'-import { useMutation, useQuery, useQueryClient, useSuspenseQuery } from '@tanstack/react-query'+import { formatForDisplay, matchesKeyboardEvent } from '@tanstack/react-hotkeys'+import { useQuery, useSuspenseQuery } from '@tanstack/react-query'import { useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import {@@ -31,137 +38,61 @@ import {IconPickerTrigger,} from '@/app/components/base/icon-picker'import AppsFull from '@/app/components/billing/apps-full-in-dialog'-import { toast } from '@/app/notifications'import { systemFeaturesQueryOptions } from '@/features/system-features/client'-import { useRouter } from '@/next/navigation'import { consoleQuery } from '@/service/console'-import { getRedirection } from '@/utils/app-redirection'-import { updateCachedAppMetadata } from './metadata'-type AppMetadataDialogProps = Pick<DialogProps, 'open' | 'onOpenChange'> & {- appDetail: AppDetailWithSite- operation: 'edit' | 'duplicate'-}+const SUBMIT_APP_HOTKEY = 'Mod+Enter' satisfies HotkeyChord-export function AppMetadataDialog({- appDetail,- operation,- open,- onOpenChange,-}: AppMetadataDialogProps) {- const actionsRef = useRef<DialogActions>(null)- const { t } = useTranslation(['app'])- const nameInputRef = useRef<HTMLInputElement>(null)- const queryClient = useQueryClient()- const { replace } = useRouter()- const { data: features } = useSuspenseQuery(systemFeaturesQueryOptions())- const edit = useMutation(- consoleQuery.apps.byAppId.put.mutationOptions({- onSuccess: (app) => {- queryClient.setQueryData(- consoleQuery.apps.byAppId.get.queryKey({ input: { params: { app_id: appDetail.id } } }),- (cached) => updateCachedAppMetadata(cached, app),- )- void queryClient.invalidateQueries({ queryKey: consoleQuery.apps.get.key() })- void queryClient.invalidateQueries({ queryKey: consoleQuery.apps.starred.get.key() })- void queryClient.invalidateQueries({ queryKey: consoleQuery.apps.recent.get.key() })- actionsRef.current?.close()- void import('@/app/components/workflow/collaboration/core/websocket-manager')- .then(({ webSocketClient }) => {- webSocketClient.getSocket(appDetail.id)?.emit('collaboration_event', {- type: 'app_meta_update',- data: { timestamp: Date.now() },- timestamp: Date.now(),- })- })- .catch(() => {})- },- onError: () => toast.error(t(($) => $.editFailed, { ns: 'app' })),- }),- )- const copy = useMutation(- consoleQuery.apps.byAppId.copy.post.mutationOptions({- onError: () => toast.error(t(($) => $['newApp.appCreateFailed'], { ns: 'app' })),- }),- )- const isPending = edit.isPending || copy.isPending- const submit = (body: UpdateAppPayload) => {- if (isPending) return- if (operation === 'edit') edit.mutate({ params: { app_id: appDetail.id }, body })- else- copy.mutate(- {- params: { app_id: appDetail.id },- body: {- name: body.name,- icon_type: body.icon_type,- icon: body.icon,- icon_background: body.icon_background,- },- },- {- onSuccess: (app) => {- if (!('mode' in app)) {- toast.error(t(($) => $['newApp.appCreateFailed'], { ns: 'app' }))- return- }- actionsRef.current?.close()- toast.success(t(($) => $['newApp.appCreated'], { ns: 'app' }))- getRedirection(app, replace, { isRbacEnabled: features.rbac_enabled })- },- },- )- }- return (- <Dialog- actionsRef={actionsRef}- open={open}- disablePointerDismissal={operation === 'edit'}- onOpenChange={(nextOpen, details) => {- if (!nextOpen && isPending && details.reason !== 'imperative-action') details.cancel()- else onOpenChange?.(nextOpen, details)- }}- >- <DialogContent initialFocus={nameInputRef}>- <AppMetadataForm- nameInputRef={nameInputRef}- appDetail={appDetail}- operation={operation}- isPending={isPending}- onSubmit={submit}- />- </DialogContent>- </Dialog>- )-}--type AppMetadataFormProps = Pick<AppMetadataDialogProps, 'appDetail' | 'operation'> & {+type AppMetadataFormProps = {+ appDetail: Pick<+ AppPartial,+ | 'name'+ | 'description'+ | 'icon_type'+ | 'icon'+ | 'icon_background'+ | 'icon_url'+ | 'use_icon_as_answer_icon'+ | 'max_active_requests'+ > &+ Partial<Pick<AppPartial, 'mode'>>+ operation: 'edit' | 'duplicate' | 'create'nameInputRef: React.RefObject<HTMLInputElement | null>isPending: boolean+ error?: stringonSubmit: (body: UpdateAppPayload) => void}-function AppMetadataForm({+export function AppMetadataForm({appDetail,operation,nameInputRef,isPending,onSubmit,+ error,}: AppMetadataFormProps) {const { t } = useTranslation(['app', 'common', 'explore'])const formRef = useRef<HTMLFormElement>(null)const [source] = useState(appDetail)const [selectedIcon, setSelectedIcon] = useState<IconPickerValue | null>(null)- const { data: features } = useSuspenseQuery(systemFeaturesQueryOptions())+ const { data: deploymentEdition } = useSuspenseQuery({+ ...systemFeaturesQueryOptions(),+ select: (data) => data.deployment_edition,+ })const isEdit = operation === 'edit'const { data: quota } = useQuery(consoleQuery.features.get.queryOptions({- enabled: !isEdit && features.deployment_edition === 'CLOUD',+ enabled: !isEdit && deploymentEdition === 'CLOUD',select: (data) => data.apps,}),)- const quotaUnavailable = !isEdit && features.deployment_edition === 'CLOUD' && !quota- const isFull = !isEdit && !!quota && quota.limit > 0 && quota.size >= quota.limit+ const quotaUnavailable = !isEdit && deploymentEdition === 'CLOUD' && !quota+ const isFull =+ !isEdit &&+ deploymentEdition === 'CLOUD' &&+ !!quota &&+ quota.limit > 0 &&+ quota.size >= quota.limitconst icon: IconPickerInputValue | undefined =selectedIcon ??(source.icon_type === 'image' && source.icon@@ -175,9 +106,25 @@ function AppMetadataForm({<FormclassName="contents"ref={formRef}+ onKeyDown={(event) => {+ if (+ isPending ||+ quotaUnavailable ||+ isFull ||+ event.defaultPrevented ||+ event.nativeEvent.isComposing ||+ !(event.target instanceof Node) ||+ !event.currentTarget.contains(event.target) ||+ !matchesKeyboardEvent(event.nativeEvent, SUBMIT_APP_HOTKEY)+ )+ return+ event.preventDefault()+ event.stopPropagation()+ if (!event.repeat) event.currentTarget.requestSubmit()+ }}onFormSubmit={(values, details) => {if (details.event.target !== formRef.current) return- const name = String(values.name ?? '')+ const name = typeof values.name === 'string' ? values.name : ''if (isPending || quotaUnavailable || isFull || !name.trim()) returnconst body: UpdateAppPayload = {name,@@ -193,14 +140,15 @@ function AppMetadataForm({: undefined: source.icon_background,}+ if (operation !== 'duplicate')+ body.description = typeof values.description === 'string' ? values.description : ''if (isEdit) {- body.description = String(values.description ?? '')body.use_icon_as_answer_icon =typeof values.use_icon_as_answer_icon === 'boolean'? values.use_icon_as_answer_icon- : source.use_icon_as_answer_icon- if (values.max_active_requests !== '' && values.max_active_requests !== undefined)- body.max_active_requests = Number(values.max_active_requests)+ : (source.use_icon_as_answer_icon ?? false)+ if (typeof values.max_active_requests === 'number')+ body.max_active_requests = values.max_active_requests}onSubmit(body)}}@@ -209,7 +157,9 @@ function AppMetadataForm({<DialogTitle>{isEdit? t(($) => $.editAppTitle, { ns: 'app' })- : t(($) => $.duplicateTitle, { ns: 'app' })}+ : operation === 'duplicate'+ ? t(($) => $.duplicateTitle, { ns: 'app' })+ : t(($) => $['appCustomize.title'], { ns: 'explore', name: source.name })}</DialogTitle><DialogHeaderCloseButtondisabled={isPending}@@ -244,23 +194,33 @@ function AppMetadataForm({ref={nameInputRef}defaultValue={source.name}readOnly={isPending}+ placeholder={t(($) => $['newApp.appNamePlaceholder'], { ns: 'app' })}required/><FieldError className="col-span-2" /></Field></Fieldset>+ {operation !== 'duplicate' && (+ <Field name="description">+ <FieldLabel>{t(($) => $['newApp.captionDescription'], { ns: 'app' })}</FieldLabel>+ <Textarea+ defaultValue={source.description ?? ''}+ readOnly={isPending}+ placeholder={t(($) => $['newApp.appDescriptionPlaceholder'], { ns: 'app' })}+ />+ </Field>+ )}{isEdit && (<>- <Field name="description">- <FieldLabel>{t(($) => $['newApp.captionDescription'], { ns: 'app' })}</FieldLabel>- <Textarea defaultValue={source.description} readOnly={isPending} />- </Field>{(source.mode === 'chat' ||source.mode === 'advanced-chat' ||source.mode === 'agent-chat') && (<Field name="use_icon_as_answer_icon"><FieldLabel>{t(($) => $['answerIcon.title'], { ns: 'app' })}</FieldLabel>- <Switch defaultChecked={source.use_icon_as_answer_icon} disabled={isPending} />+ <Switch+ defaultChecked={source.use_icon_as_answer_icon ?? false}+ disabled={isPending}+ /><FieldDescription>{t(($) => $['answerIcon.descriptionInExplore'], { ns: 'app' })}</FieldDescription>@@ -268,18 +228,42 @@ function AppMetadataForm({)}<Field name="max_active_requests"><FieldLabel>{t(($) => $.maxActiveRequests, { ns: 'app' })}</FieldLabel>- <Input- type="number"+ <NumberFieldmin={0}- defaultValue={source.max_active_requests ?? ''}+ step={1}+ smallStep={1}+ defaultValue={source.max_active_requests ?? undefined}readOnly={isPending}- />+ >+ <NumberFieldGroup>+ <NumberFieldInput+ placeholder={t(($) => $.maxActiveRequestsPlaceholder, { ns: 'app' })}+ />+ <NumberFieldControls>+ <NumberFieldIncrement+ aria-label={t(($) => $['operation.increaseValue'], { ns: 'common' })}+ />+ <NumberFieldDecrement+ aria-label={t(($) => $['operation.decreaseValue'], { ns: 'common' })}+ />+ </NumberFieldControls>+ </NumberFieldGroup>+ </NumberField><FieldDescription>{t(($) => $.maxActiveRequestsTip, { ns: 'app' })}</FieldDescription><FieldError /></Field></>)}- {isFull && <AppsFull loc="app-duplicate-create" />}+ {isFull && (+ <AppsFull+ loc={operation === 'duplicate' ? 'app-duplicate-create' : 'app-explore-create'}+ />+ )}+ {error && (+ <p role="alert" className="body-sm-regular text-text-destructive">+ {error}+ </p>+ )}</DialogBody><DialogFooter><DialogClose disabled={isPending} render={<Button type="button" />}>@@ -293,7 +277,16 @@ function AppMetadataForm({>{isEdit? t(($) => $['operation.save'], { ns: 'common' })- : t(($) => $.duplicate, { ns: 'app' })}+ : operation === 'duplicate'+ ? t(($) => $.duplicate, { ns: 'app' })+ : t(($) => $['operation.create'], { ns: 'common' })}+ <KbdGroup>+ {formatForDisplay(SUBMIT_APP_HOTKEY, { parts: true }).map((key) => (+ <Kbd key={key} color="white">+ {key}+ </Kbd>+ ))}+ </KbdGroup></Button></DialogFooter></Form>diff --git a/web/app/components/app/create-app-dialog/app-list/__tests__/index.spec.tsx b/web/app/components/app/create-app-dialog/app-list/__tests__/index.spec.tsxindex 66f74bfe59a..c51b7d8ea9b 100644--- a/web/app/components/app/create-app-dialog/app-list/__tests__/index.spec.tsx+++ b/web/app/components/app/create-app-dialog/app-list/__tests__/index.spec.tsx@@ -253,7 +253,7 @@ it('fetches fresh detail by canonical app_id and submits the actual form with an)})-it('closes the submitted modal immediately and reports detail failure without import or navigation', async () => {+it('keeps the submitted modal and draft while reporting detail failure without import or navigation', async () => {const user = userEvent.setup()let rejectDetail: ((reason: Error) => void) | undefinedrequest.mockImplementation(@@ -266,7 +266,8 @@ it('closes the submitted modal immediately and reports detail failure without imawait openFirst(user)await user.click(screen.getByRole('button', { name: /common\.operation\.create/ }))await waitFor(() => expect(request).toHaveBeenCalledOnce())- await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument())+ expect(screen.getByRole('dialog')).toBeInTheDocument()+ expect(screen.getByRole('textbox', { name: 'app.newApp.name' })).toHaveAttribute('readonly')await act(async () => rejectDetail?.(new Error('Unavailable')))await waitFor(() => expect(toast.error).toHaveBeenCalledWith('app.newApp.appCreateFailed'))expect(request).toHaveBeenCalledOnce()@@ -300,7 +301,7 @@ it('supports nullable metadata without inventing a name and requires a name befo})await openFirst(user)expect(screen.getByPlaceholderText('app.newApp.appNamePlaceholder')).toHaveValue('')- expect(screen.getByRole('button', { name: /common\.operation\.create/ })).toBeDisabled()+ await user.click(screen.getByRole('button', { name: /common\.operation\.create/ }))expect(request).not.toHaveBeenCalled()expect(screen.getByRole('dialog')).toBeInTheDocument()})diff --git a/web/app/components/app/create-app-dialog/app-list/index.tsx b/web/app/components/app/create-app-dialog/app-list/index.tsxindex 7b750bce2d3..44a021f70d1 100644--- a/web/app/components/app/create-app-dialog/app-list/index.tsx+++ b/web/app/components/app/create-app-dialog/app-list/index.tsx@@ -1,12 +1,14 @@'use client'+import type { UpdateAppPayload } from '@dify/contracts/api/console/apps/types.gen'import type { RecommendedAppResponse } from '@dify/contracts/api/console/explore/types.gen'import type { AppType } from '@/app/components/apps/app-type'-import type { CreateAppModalProps } from '@/app/components/explore/create-app-modal'+import { zIconType } from '@dify/contracts/api/console/apps/zod.gen'+import { Dialog, DialogContent } from '@langgenius/dify-ui/dialog'import { IconButton } from '@langgenius/dify-ui/icon-button'import { InputGroup, InputGroupAddon, InputGroupInput } from '@langgenius/dify-ui/input-group'import { Separator } from '@langgenius/dify-ui/separator'-import { useQuery, useQueryClient } from '@tanstack/react-query'+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'import { useDebouncedValue } from 'foxact/use-debounced-value'import { useAtomValue } from 'jotai'import dynamic from 'next/dynamic'@@ -14,10 +16,10 @@ import * as React from 'react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import { useLocale } from '#i18n'+import { AppMetadataForm } from '@/app/components/app/app-metadata'import DSLConfirmModal from '@/app/components/app/create-from-dsl-modal/dsl-confirm-modal'import AppTypeSelector from '@/app/components/app/type-selector'import { LoadingPlaceholder } from '@/app/components/base/loading-placeholder'-import CreateAppModal from '@/app/components/explore/create-app-modal'import { getTemplateImportSource } from '@/app/components/explore/template-import'import { toast } from '@/app/notifications'import { workspacePermissionKeysAtom } from '@/context/permission-state'@@ -127,14 +129,15 @@ const Apps = ({ onClose, onCreateFromBlank, templateMode }: AppsProps) => {const [currApp, setCurrApp] = React.useState<RecommendedAppResponse | null>(null)const [previewApp, setPreviewApp] = React.useState<RecommendedAppResponse | null>(null)const [isShowCreateModal, setIsShowCreateModal] = React.useState(false)+ const createNameRef = React.useRef<HTMLInputElement>(null)const [showDSLConfirmModal, setShowDSLConfirmModal] = React.useState(false)- const onCreate: CreateAppModalProps['onConfirm'] = async ({+ const onCreate = async ({name,icon_type,icon,icon_background,description,- }) => {+ }: UpdateAppPayload) => {if (!currApp || !canCreateTemplate(currApp.app?.mode)) returntry {const detail = await queryClient.query({@@ -169,13 +172,19 @@ const Apps = ({ onClose, onCreateFromBlank, templateMode }: AppsProps) => {setIsShowCreateModal(false)onClose()},- onPending: () => setShowDSLConfirmModal(true),+ onPending: () => {+ setIsShowCreateModal(false)+ setShowDSLConfirmModal(true)+ },},)} catch {toast.error(t(($) => $['newApp.appCreateFailed'], { ns: 'app' }))}}+ const submission = useMutation({ mutationFn: onCreate })+ const isCreatePending = submission.isPending || isFetching+const onConfirmDSL = async () => {await handleImportDSLConfirm({onSuccess: (response) => {@@ -294,6 +303,7 @@ const Apps = ({ onClose, onCreateFromBlank, templateMode }: AppsProps) => {onPreview={() => setPreviewApp(app)}onCreate={() => {setCurrApp(app)+setIsShowCreateModal(true)}}/>@@ -304,24 +314,39 @@ const Apps = ({ onClose, onCreateFromBlank, templateMode }: AppsProps) => {{(!searchFilteredList || searchFilteredList.length === 0) && <NoTemplateFound />}</div></div>- {isShowCreateModal && (- <CreateAppModal- appIconType={- currApp?.app?.icon_type === 'image' || currApp?.app?.icon_type === 'link'- ? currApp.app.icon_type- : 'emoji'- }- appIcon={currApp?.app?.icon ?? ''}- appIconBackground={currApp?.app?.icon_background ?? ''}- appIconUrl={currApp?.app?.icon_url}- appName={currApp?.app?.name ?? ''}- appDescription=""- show={isShowCreateModal}- onConfirm={onCreate}- confirmLoading={isFetching}- onHide={() => setIsShowCreateModal(false)}- />- )}+ <Dialog+ open={isShowCreateModal}+ disablePointerDismissal+ onOpenChange={(open, details) => {+ if (!open && isCreatePending) details.cancel()+ else setIsShowCreateModal(open)+ }}+ onOpenChangeComplete={(open) => {+ if (!open && !submission.isPending) submission.reset()+ }}+ >+ <DialogContent initialFocus={createNameRef}>+ {currApp && (+ <AppMetadataForm+ operation="create"+ appDetail={{+ name: currApp.app?.name ?? '',+ description: '',+ icon_type: zIconType.safeParse(currApp.app?.icon_type).data ?? 'emoji',+ icon: currApp.app?.icon ?? null,+ icon_background: currApp.app?.icon_background,+ icon_url: currApp.app?.icon_url ?? null,+ }}+ nameInputRef={createNameRef}+ isPending={isCreatePending}+ error={submission.error?.message}+ onSubmit={(body) => {+ if (!isCreatePending) submission.mutate(body)+ }}+ />+ )}+ </DialogContent>+ </Dialog>{showDSLConfirmModal && (<DSLConfirmModalversions={versions}diff --git a/web/app/components/apps/__tests__/app-card.spec.tsx b/web/app/components/apps/__tests__/app-card.spec.tsxindex a900ea6554e..e39d2b9cf04 100644--- a/web/app/components/apps/__tests__/app-card.spec.tsx+++ b/web/app/components/apps/__tests__/app-card.spec.tsx@@ -686,29 +686,29 @@ describe('AppCard', () => {expect(api.delete).toHaveBeenCalledWith({ params: { app_id: mockApp.id } })})- it('reports an edit failure and allows saving again from the card', async () => {+ it('keeps the failed edit draft and retries without reopening the card dialog', async () => {const user = userEvent.setup()api.update.mockRejectedValueOnce(new Error('Edit failed'))render(<AppCard app={mockApp} />)- for (const attempt of [1, 2]) {- await chooseAction(user, 'app.editApp')- const dialog = await screen.findByRole('dialog', { name: 'app.editAppTitle' })- expect(screen.queryByRole('menu')).not.toBeInTheDocument()- const name = within(dialog).getByRole('textbox', { name: 'app.newApp.name' })- const description = within(dialog).getByRole('textbox', {- name: 'app.newApp.captionDescription',- })- expect(name).toHaveValue('Test App')- await user.clear(name)- await user.type(name, 'Updated App')- await user.clear(description)- await user.type(description, 'Updated description')- await user.click(within(dialog).getByRole('button', { name: /common.operation.save/ }))- await waitFor(() => expect(dialog).not.toBeInTheDocument())- await waitFor(() => expect(api.update).toHaveBeenCalledTimes(attempt))- if (attempt === 1)- await waitFor(() => expect(toast.error).toHaveBeenCalledWith('Edit failed'))- }+ await chooseAction(user, 'app.editApp')+ const dialog = await screen.findByRole('dialog', { name: 'app.editAppTitle' })+ const name = within(dialog).getByRole('textbox', { name: 'app.newApp.name' })+ const description = within(dialog).getByRole('textbox', {+ name: 'app.newApp.captionDescription',+ })+ await waitFor(() => expect(name).toHaveFocus())+ await user.clear(name)+ await user.type(name, 'Updated App')+ await user.clear(description)+ await user.type(description, 'Updated description')+ await user.click(within(dialog).getByRole('button', { name: /common.operation.save/ }))+ expect(await within(dialog).findByRole('alert')).toHaveTextContent('Edit failed')+ expect(name).toHaveValue('Updated App')+ expect(description).toHaveValue('Updated description')+ expect(toast.error).not.toHaveBeenCalled()+ await user.click(within(dialog).getByRole('button', { name: /common.operation.save/ }))+ await waitFor(() => expect(dialog).not.toBeInTheDocument())+ expect(api.update).toHaveBeenCalledTimes(2)expect(api.update).toHaveBeenLastCalledWith({params: { app_id: mockApp.id },body: {@@ -718,7 +718,6 @@ describe('AppCard', () => {icon: '🤖',icon_background: '#FFEAD5',use_icon_as_answer_icon: false,- max_active_requests: undefined,},})})diff --git a/web/app/components/apps/__tests__/index.spec.tsx b/web/app/components/apps/__tests__/index.spec.tsxindex 859c423b5f5..6d39bc866f2 100644--- a/web/app/components/apps/__tests__/index.spec.tsx+++ b/web/app/components/apps/__tests__/index.spec.tsx@@ -220,6 +220,32 @@ it('imports fresh canonical detail through the real list and form, then checks dexpect(await screen.findByText('app.newApp.appCreated')).toBeInTheDocument()})+it('keeps a reopened creation form pending until the previous import finishes its dependency check', async () => {+ let resolveDependencies: (value: Awaited<ReturnType<typeof api.dependencies>>) => void = () => {}+ api.dependencies.mockImplementationOnce(+ () =>+ new Promise((resolve) => {+ resolveDependencies = resolve+ }),+ )+ const { user } = await setup()+ await openCreate(user)+ await submit(user)+ await waitFor(() => expect(api.dependencies).toHaveBeenCalledOnce())+ await waitFor(() =>+ expect(+ screen.queryByRole('dialog', { name: /^explore.appCustomize.title/ }),+ ).not.toBeInTheDocument(),+ )+ const reopened = await openCreate(user)+ const create = within(reopened).getByRole('button', { name: /^common.operation.create/ })+ expect(create).toHaveAttribute('aria-disabled', 'true')+ await user.click(create)+ expect(api.import).toHaveBeenCalledOnce()+ await act(async () => resolveDependencies({ leaked_dependencies: [] }))+ await waitFor(() => expect(create).not.toHaveAttribute('aria-disabled', 'true'))+})+it('tracks creation through the real preview and closes it after submission', async () => {const { user } = await setup({ cloud: true })await openCreate(user, true)@@ -229,7 +255,7 @@ it('tracks creation through the real preview and closes it after submission', asexpect(api.push).toHaveBeenCalledWith('/app/created-app/configuration')})-it('shows a detail error once without importing, navigating, or reopening the submitted form', async () => {+it('shows a detail error once without importing or navigating, and preserves the submitted form', async () => {api.detail.mockRejectedValue(new Error('Unavailable'))const { user } = await setup()await openCreate(user)@@ -238,7 +264,7 @@ it('shows a detail error once without importing, navigating, or reopening the suawait waitFor(() =>expect(screen.queryByRole('dialog', { name: /^explore.appCustomize.title/ }),- ).not.toBeInTheDocument(),+ ).toBeInTheDocument(),)expect(api.detail).toHaveBeenCalledOnce()expect(api.import).not.toHaveBeenCalled()diff --git a/web/app/components/apps/app-card/interactions.tsx b/web/app/components/apps/app-card/interactions.tsxindex a6fb651e04f..a93edd0e898 100644--- a/web/app/components/apps/app-card/interactions.tsx+++ b/web/app/components/apps/app-card/interactions.tsx@@ -4,9 +4,9 @@ import type {AppPartial,EnvironmentVariableItemResponse,} from '@dify/contracts/api/console/apps/types.gen'+import type { DialogActions } from '@langgenius/dify-ui/dialog'import type { FormEventHandler, MouseEvent, ReactElement } from 'react'import type { DuplicateAppModalProps } from '@/app/components/app/duplicate-modal'-import type { CreateAppModalProps } from '@/app/components/explore/create-app-modal'import { zIconType } from '@dify/contracts/api/console/apps/zod.gen'import {AlertDialog,@@ -27,6 +27,7 @@ import {ContextMenuSeparator,ContextMenuTrigger,} from '@langgenius/dify-ui/context-menu'+import { Dialog, DialogContent } from '@langgenius/dify-ui/dialog'import {DropdownMenu,DropdownMenuContent,@@ -42,8 +43,9 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '@langgenius/dify-ui/tooimport { useMutation, useSuspenseQuery } from '@tanstack/react-query'import { useAtomValue } from 'jotai'import dynamic from 'next/dynamic'-import { useCallback, useMemo, useState } from 'react'+import { useCallback, useMemo, useRef, useState } from 'react'import { Trans, useTranslation } from 'react-i18next'+import { AppMetadataForm } from '@/app/components/app/app-metadata'import { useExportAppDsl, useExportWorkflowAppDsl } from '@/app/components/app/use-export-app-dsl'import { buildInstalledAppPath } from '@/app/components/explore/installed-app/routes'import {@@ -63,9 +65,6 @@ import { getRedirection } from '@/utils/app-redirection'import { getAppACLCapabilities, hasPermission } from '@/utils/permission'import { basePath } from '@/utils/var'-const EditAppModal = dynamic(() => import('@/app/components/explore/create-app-modal'), {- ssr: false,-})const DuplicateAppModal = dynamic(() => import('@/app/components/app/duplicate-modal'), {ssr: false,})@@ -274,7 +273,6 @@ export function AppCardInteractions({const isRbacEnabled = systemFeatures.rbac_enabledconst { push } = useRouter()const { mutate: copyApp } = useMutation(consoleQuery.apps.byAppId.copy.post.mutationOptions())- const { mutateAsync: updateApp } = useMutation(consoleQuery.apps.byAppId.put.mutationOptions())const { mutate: deleteApp, isPending: isDeleting } = useMutation(consoleQuery.apps.byAppId.delete.mutationOptions(),)@@ -285,6 +283,11 @@ export function AppCardInteractions({consoleQuery.apps.byAppId.star.delete.mutationOptions(),)+ const editActionsRef = useRef<DialogActions>(null)+ const edit = useMutation(+ consoleQuery.apps.byAppId.put.mutationOptions({ context: { silent: true } }),+ )+ const editNameRef = useRef<HTMLInputElement>(null)const [activeDialog, setActiveDialog] = useState<'delete' | 'duplicate' | 'edit' | 'switch' | null>(null)@@ -401,37 +404,6 @@ export function AppCardInteractions({push(`/app/${app.id}/access-config`)}, [app.id, push, setIsOperationsMenuOpen])- const onEdit: CreateAppModalProps['onConfirm'] = useCallback(- async ({- name,- icon_type,- icon,- icon_background,- description,- use_icon_as_answer_icon,- max_active_requests,- }) => {- try {- await updateApp({- params: { app_id: app.id },- body: {- name,- icon_type,- icon,- icon_background,- description,- use_icon_as_answer_icon,- max_active_requests,- },- })- setActiveDialog(null)- } catch (e) {- toast.error(e instanceof Error ? e.message : t(($) => $.editFailed, { ns: 'app' }))- }- },- [app.id, t, updateApp],- )-const onCopy: DuplicateAppModalProps['onConfirm'] = ({name,icon_type,@@ -641,23 +613,39 @@ export function AppCardInteractions({)}</div></div>- {activeDialog === 'edit' && (- <EditAppModal- isEditModal- appName={app.name}- appIconType={appIconType}- appIcon={app.icon ?? ''}- appIconBackground={app.icon_background}- appIconUrl={app.icon_url}- appDescription={app.description ?? ''}- appMode={app.mode}- appUseIconAsAnswerIcon={app.use_icon_as_answer_icon ?? false}- max_active_requests={app.max_active_requests ?? null}- show- onConfirm={onEdit}- onHide={() => setActiveDialog(null)}- />- )}+ <Dialog+ actionsRef={editActionsRef}+ open={activeDialog === 'edit'}+ disablePointerDismissal+ onOpenChange={(open, details) => {+ if (!open && edit.isPending && details.reason !== 'imperative-action') details.cancel()+ else if (!open) setActiveDialog(null)+ }}+ onOpenChangeComplete={(open) => {+ if (!open) {+ edit.reset()+ }+ }}+ >+ <DialogContent initialFocus={editNameRef}>+ <AppMetadataForm+ appDetail={app}+ nameInputRef={editNameRef}+ operation="edit"+ isPending={edit.isPending}+ error={edit.error?.message}+ onSubmit={(body) => {+ if (edit.isPending) return+ edit.mutate(+ { params: { app_id: app.id }, body },+ {+ onSuccess: () => editActionsRef.current?.close(),+ },+ )+ }}+ />+ </DialogContent>+ </Dialog>{activeDialog === 'duplicate' && (<DuplicateAppModalappName={app.name}diff --git a/web/app/components/apps/index.tsx b/web/app/components/apps/index.tsxindex fd13b817728..403ba688efe 100644--- a/web/app/components/apps/index.tsx+++ b/web/app/components/apps/index.tsx@@ -1,12 +1,15 @@'use client'+import type { UpdateAppPayload } from '@dify/contracts/api/console/apps/types.gen'import type { RecommendedAppResponse } from '@dify/contracts/api/console/explore/types.gen'-import type { CreateAppModalProps } from '../explore/create-app-modal'import type { TrackCreateAppParams } from '@/utils/create-app-tracking'-import { noop, useQueryClient } from '@tanstack/react-query'+import { zIconType } from '@dify/contracts/api/console/apps/zod.gen'+import { Dialog, DialogContent } from '@langgenius/dify-ui/dialog'+import { noop, useMutation, useQueryClient } from '@tanstack/react-query'import { useAtomValue } from 'jotai'import dynamic from 'next/dynamic'import { useCallback, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'+import { AppMetadataForm } from '@/app/components/app/app-metadata'import { getTemplateImportSource } from '@/app/components/explore/template-import'import { EducationExpireNotice } from '@/app/education/expire-notice'import { toast } from '@/app/notifications'@@ -22,7 +25,6 @@ import { List } from './list'const DSLConfirmModal = dynamic(() => import('../app/create-from-dsl-modal/dsl-confirm-modal'), {ssr: false,})-const CreateAppModal = dynamic(() => import('../explore/create-app-modal'), { ssr: false })const TryApp = dynamic(() => import('../explore/try-app'), { ssr: false })const ImportFromMarketplaceTemplateModal = dynamic(() => import('./import-from-marketplace-template-modal'),@@ -67,11 +69,13 @@ const AppsContent = () => {[queryClient],)const [isShowCreateModal, setIsShowCreateModal] = useState(false)+ const createNameRef = useRef<HTMLInputElement>(null)const handleCreateLearnDify = (app: RecommendedAppResponse) => {if (!canCreateApp) returnsetCurrApp(app)+setIsShowCreateModal(true)}@@ -82,6 +86,7 @@ const AppsContent = () => {source: 'studio_template_preview',templateId: currApp?.app_id,}+setIsShowCreateModal(true)}, [canCreateApp, currApp?.app_id])const trackCurrentCreateApp = useCallback((appMode?: TrackCreateAppParams['appMode'] | null) => {@@ -146,8 +151,8 @@ const AppsContent = () => {[canCreateApp, handleImportDSL, handleCloseTemplateModal, templateId, trackCurrentCreateApp],)- const onCreate: CreateAppModalProps['onConfirm'] = useCallback(- async ({ name, icon_type, icon, icon_background, description }) => {+ const onCreate = useCallback(+ async ({ name, icon_type, icon, icon_background, description }: UpdateAppPayload) => {if (!canCreateApp || !currApp) returnhideTryAppPanel()@@ -171,6 +176,7 @@ const AppsContent = () => {setIsShowCreateModal(false)},onPending: () => {+ setIsShowCreateModal(false)setShowDSLConfirmModal(true)},})@@ -181,6 +187,9 @@ const AppsContent = () => {[canCreateApp, currApp, handleImportDSL, hideTryAppPanel, trackCurrentCreateApp, t],)+ const submission = useMutation({ mutationFn: onCreate })+ const isCreatePending = submission.isPending || isFetching+return (<><EducationExpireNotice />@@ -207,24 +216,39 @@ const AppsContent = () => {/>)}- {isShowCreateModal && (- <CreateAppModal- appIconType={- currApp?.app?.icon_type === 'image' || currApp?.app?.icon_type === 'link'- ? currApp.app.icon_type- : 'emoji'- }- appIcon={currApp?.app?.icon ?? ''}- appIconBackground={currApp?.app?.icon_background ?? ''}- appIconUrl={currApp?.app?.icon_url}- appName={currApp?.app?.name ?? ''}- appDescription=""- show- onConfirm={onCreate}- confirmLoading={isFetching}- onHide={() => setIsShowCreateModal(false)}- />- )}+ <Dialog+ open={isShowCreateModal}+ disablePointerDismissal+ onOpenChange={(open, details) => {+ if (!open && isCreatePending) details.cancel()+ else setIsShowCreateModal(open)+ }}+ onOpenChangeComplete={(open) => {+ if (!open && !submission.isPending) submission.reset()+ }}+ >+ <DialogContent initialFocus={createNameRef}>+ {currApp && (+ <AppMetadataForm+ operation="create"+ appDetail={{+ name: currApp.app?.name ?? '',+ description: '',+ icon_type: zIconType.safeParse(currApp.app?.icon_type).data ?? 'emoji',+ icon: currApp.app?.icon ?? null,+ icon_background: currApp.app?.icon_background,+ icon_url: currApp.app?.icon_url ?? null,+ }}+ nameInputRef={createNameRef}+ isPending={isCreatePending}+ error={submission.error?.message}+ onSubmit={(body) => {+ if (!isCreatePending) submission.mutate(body)+ }}+ />+ )}+ </DialogContent>+ </Dialog>{canCreateApp && templateId && !templateDismissedRef.current && (<ImportFromMarketplaceTemplateModaldiff --git a/web/app/components/explore/create-app-modal/__tests__/index.spec.tsx b/web/app/components/explore/create-app-modal/__tests__/index.spec.tsxdeleted file mode 100644index ffb624f20a9..00000000000--- a/web/app/components/explore/create-app-modal/__tests__/index.spec.tsx+++ /dev/null@@ -1,596 +0,0 @@-import type { CloudPlan } from '@dify/contracts/api/console/features/types.gen'-import type { ReactElement } from 'react'-import type { CreateAppModalProps } from '../index'-import { act, fireEvent, screen, waitFor, within } from '@testing-library/react'-import userEvent from '@testing-library/user-event'-import * as React from 'react'-import { renderWithConsoleQuery } from '@/test/console/query-data'-import { mockEmojiData } from '@/test/emoji-picker'-import CreateAppModal from '../index'--let deploymentEdition: 'CLOUD' | 'COMMUNITY' = 'COMMUNITY'-let mockPlanType: CloudPlan = 'team'-let mockAppCount = 1-const mockAppLimit = 10--type ConfirmPayload = Parameters<CreateAppModalProps['onConfirm']>[0]--const setup = async (overrides: Partial<CreateAppModalProps> = {}) => {- const onConfirm = vi.fn<(payload: ConfirmPayload) => Promise<void>>().mockResolvedValue(undefined)- const onHide = vi.fn()-- const props: CreateAppModalProps = {- show: true,- isEditModal: false,- appName: 'Test App',- appDescription: 'Test description',- appIconType: 'emoji',- appIcon: '🤖',- appIconBackground: '#FFEAD5',- appIconUrl: null,- appMode: 'chat' as const,- appUseIconAsAnswerIcon: false,- max_active_requests: null,- onConfirm,- confirmDisabled: false,- onHide,- ...overrides,- }-- await act(async () => {- render(<CreateAppModal {...props} />)- })- return { onConfirm, onHide }-}--const getAppIconTrigger = () => screen.getByRole('button', { name: 'app.iconPicker.title' })--const openAppIconPicker = async (user: ReturnType<typeof userEvent.setup>) => {- await user.click(getAppIconTrigger())-- return screen.findByRole('dialog', { name: 'app.iconPicker.title' })-}--function render(ui: ReactElement) {- return renderWithConsoleQuery(ui, {- systemFeatures: { deployment_edition: deploymentEdition },- features: {- billing: { subscription: { plan: mockPlanType } },- apps: { size: mockAppCount, limit: mockAppLimit },- },- })-}--vi.mock('@/next/navigation', () => ({ useParams: () => ({}) }))--function submitWithKeyboard(- modifier: Pick<KeyboardEventInit, 'ctrlKey' | 'metaKey'> = { ctrlKey: true },-) {- const target = screen.queryByPlaceholderText('app.newApp.appNamePlaceholder') ?? document.body- fireEvent.keyDown(target, { key: 'Enter', ...modifier })- fireEvent.keyUp(target, { key: 'Enter', ...modifier })-}--describe('CreateAppModal', () => {- beforeEach(() => {- vi.clearAllMocks()- deploymentEdition = 'COMMUNITY'- mockPlanType = 'team'- mockAppCount = 1- })-- it('names the app controls separately and associates the answer icon switch with its label and description', async () => {- const user = userEvent.setup()- await setup({ isEditModal: true })-- const group = screen.getByRole('group', { name: 'app.newApp.captionName' })- expect(within(group).getByRole('textbox', { name: 'app.newApp.name' })).toHaveValue('Test App')- expect(within(group).getByRole('button', { name: 'app.iconPicker.title' })).toBeEnabled()- const answerIcon = screen.getByRole('switch', { name: 'app.answerIcon.title' })- expect(answerIcon).toHaveAccessibleDescription('app.answerIcon.descriptionInExplore')- await user.click(screen.getByText('app.answerIcon.title'))- expect(answerIcon).toBeChecked()- })-- it.each([- { appIconType: null, appIcon: null, appIconBackground: null },- {- appIconType: 'link' as const,- appIcon: 'https://example.com/icon.png',- appIconBackground: null,- },- ])('preserves the existing icon when editing other fields: %j', async (iconProps) => {- const user = userEvent.setup()- const { onConfirm } = await setup({ isEditModal: true, ...iconProps })-- await user.clear(screen.getByPlaceholderText('app.newApp.appNamePlaceholder'))- await user.type(screen.getByPlaceholderText('app.newApp.appNamePlaceholder'), 'Renamed app')- await user.click(screen.getByRole('button', { name: /common\.operation\.save/ }))-- await waitFor(() =>- expect(onConfirm).toHaveBeenCalledWith(- expect.objectContaining({- name: 'Renamed app',- icon_type: iconProps.appIconType,- icon: iconProps.appIcon,- icon_background: iconProps.appIconBackground,- }),- ),- )- })-- describe('Rendering', () => {- it.each(['advanced-chat', 'agent-chat'] as const)(- 'should render answer icon switch when editing %s app',- async (mode) => {- await setup({ isEditModal: true, appMode: mode })-- expect(screen.getByRole('switch'))!.toBeInTheDocument()- },- )-- it('should not render answer icon switch when editing a non-chat app', async () => {- await setup({ isEditModal: true, appMode: 'completion' as const })-- expect(screen.queryByRole('switch')).not.toBeInTheDocument()- })- })-- describe('User Interactions', () => {- it('should call onHide when cancel button is clicked', async () => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- const { onConfirm, onHide } = await setup()-- await user.click(screen.getByRole('button', { name: 'common.operation.cancel' }))-- expect(onHide).toHaveBeenCalledTimes(1)- expect(onConfirm).not.toHaveBeenCalled()- })- })-- describe('Keyboard Shortcuts', () => {- beforeEach(() => {- vi.useFakeTimers({ shouldAdvanceTime: true })- })-- afterEach(() => {- vi.useRealTimers()- })-- it.each([- { platform: 'Win32', modifier: { ctrlKey: true } },- { platform: 'MacIntel', modifier: { metaKey: true } },- ])(- 'suspends Mod+Enter while the picker is open and resumes after it closes on $platform',- async ({ platform, modifier }) => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- vi.spyOn(navigator, 'platform', 'get').mockReturnValue(platform)- const { onConfirm, onHide } = await setup()- const picker = await openAppIconPicker(user)- const pickerSearch = within(picker).getByPlaceholderText('app.iconPicker.search')- fireEvent.keyDown(pickerSearch, { key: 'Enter', ...modifier })- fireEvent.keyUp(pickerSearch, { key: 'Enter', ...modifier })- await act(async () => {- vi.advanceTimersByTime(300)- })- expect(onConfirm).not.toHaveBeenCalled()- expect(onHide).not.toHaveBeenCalled()- fireEvent.keyDown(pickerSearch, { key: 'Escape' })- await act(async () => {- vi.advanceTimersByTime(300)- })- expect(picker).not.toBeInTheDocument()-- submitWithKeyboard(modifier)- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).toHaveBeenCalledTimes(1)- expect(onHide).toHaveBeenCalledTimes(1)- },- )-- it.each([- { platform: 'Win32', modifier: { ctrlKey: true } },- { platform: 'MacIntel', modifier: { metaKey: true } },- ])(- 'keeps the shortcut available after the outer dialog is hidden with an open picker on $platform',- async ({ platform, modifier }) => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- vi.spyOn(navigator, 'platform', 'get').mockReturnValue(platform)- const onConfirm = vi.fn().mockResolvedValue(undefined)- const onHide = vi.fn()- const modal = (show: boolean) => (- <CreateAppModal- show={show}- appName="Reopened App"- appDescription=""- appIconType="emoji"- appIcon="🤖"- onConfirm={onConfirm}- onHide={onHide}- />- )- const { rerender } = render(modal(true))- const picker = await openAppIconPicker(user)-- rerender(modal(false))- await act(async () => {- vi.advanceTimersByTime(300)- })- expect(picker).not.toBeInTheDocument()- rerender(modal(true))- expect(- screen.queryByRole('dialog', { name: 'app.iconPicker.title' }),- ).not.toBeInTheDocument()- submitWithKeyboard(modifier)- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).toHaveBeenCalledOnce()- expect(onConfirm).toHaveBeenCalledWith(expect.objectContaining({ name: 'Reopened App' }))- expect(onHide).toHaveBeenCalledOnce()- },- )-- it('submits instead of opening the icon picker when Mod+Enter starts on its trigger', async () => {- const { onConfirm } = await setup()- const iconTrigger = getAppIconTrigger()- iconTrigger.focus()-- fireEvent.keyDown(iconTrigger, { key: 'Enter', ctrlKey: true })- fireEvent.keyUp(iconTrigger, { key: 'Enter', ctrlKey: true })- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).toHaveBeenCalledTimes(1)- expect(screen.queryByRole('dialog', { name: 'app.iconPicker.title' })).not.toBeInTheDocument()- })-- it.each([- { state: 'disabled', props: { confirmDisabled: true } },- { state: 'loading', props: { confirmLoading: true } },- ])('does not submit while the visible confirmation action is $state', async ({ props }) => {- const { onConfirm, onHide } = await setup(props)- const action = screen.getByRole('button', { name: /common\.operation\.create/ })- if (props.confirmLoading) expect(action).toHaveAttribute('aria-disabled', 'true')- else expect(action).toBeDisabled()- submitWithKeyboard()- await act(async () => {- vi.advanceTimersByTime(300)- })- expect(onConfirm).not.toHaveBeenCalled()- expect(onHide).not.toHaveBeenCalled()- })-- it('ignores shortcuts outside the dialog and during composition', async () => {- const { onConfirm } = await setup()- fireEvent.keyDown(document.body, { key: 'Enter', ctrlKey: true })- fireEvent.keyUp(document.body, { key: 'Enter', ctrlKey: true })- const input = screen.getByPlaceholderText('app.newApp.appNamePlaceholder')- fireEvent.keyDown(input, { key: 'Enter', ctrlKey: true, isComposing: true })- fireEvent.keyUp(input, { key: 'Enter', ctrlKey: true })- await act(async () => {- vi.advanceTimersByTime(300)- })- expect(onConfirm).not.toHaveBeenCalled()- })-- it('should not submit when modal is hidden', async () => {- const { onConfirm, onHide } = await setup({ show: false })-- submitWithKeyboard()- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).not.toHaveBeenCalled()- expect(onHide).not.toHaveBeenCalled()- })-- it('should not submit when apps quota is reached in create mode', async () => {- deploymentEdition = 'CLOUD'- mockPlanType = 'team'- mockAppCount = 10-- const { onConfirm, onHide } = await setup({ isEditModal: false })-- submitWithKeyboard()- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).not.toHaveBeenCalled()- expect(onHide).not.toHaveBeenCalled()- })-- it('should submit when apps quota is reached in edit mode', async () => {- deploymentEdition = 'CLOUD'- mockPlanType = 'team'- mockAppCount = 10-- const { onConfirm, onHide } = await setup({ isEditModal: true })-- submitWithKeyboard()- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).toHaveBeenCalledTimes(1)- expect(onHide).toHaveBeenCalledTimes(1)- })-- it('should not submit when name is empty', async () => {- const { onConfirm, onHide } = await setup({ appName: ' ' })-- submitWithKeyboard()- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).not.toHaveBeenCalled()- expect(onHide).not.toHaveBeenCalled()- })- })-- describe('App Icon Picker', () => {- it('does not fill a missing background when the picker is cancelled', async () => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- const { onConfirm } = await setup({ appIconBackground: undefined })- await openAppIconPicker(user)- await user.keyboard('{Escape}')- await waitFor(() =>- expect(- screen.queryByRole('dialog', { name: 'app.iconPicker.title' }),- ).not.toBeInTheDocument(),- )- await user.click(screen.getByRole('button', { name: /common\.operation\.create/ }))- await waitFor(() => expect(onConfirm).toHaveBeenCalledOnce())- expect(onConfirm.mock.calls[0]![0].icon_background).toBeUndefined()- })-- it('should update icon payload when selecting emoji and confirming', async () => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- const { onConfirm } = await setup({- appIconType: 'image',- appIcon: 'file-123',- appIconUrl: 'https://example.com/icon.png',- })-- const pickerDialog = await openAppIconPicker(user)-- await user.click(within(pickerDialog).getByRole('tab', { name: 'app.iconPicker.emoji' }))- await user.click(await within(pickerDialog).findByRole('gridcell', { name: 'Grinning face' }))-- await user.click(within(pickerDialog).getByRole('button', { name: 'app.iconPicker.ok' }))-- await user.click(screen.getByRole('button', { name: /common\.operation\.create/ }))- await waitFor(() => expect(onConfirm).toHaveBeenCalledTimes(1))-- expect(onConfirm).toHaveBeenCalledTimes(1)- const payload = onConfirm.mock.calls[0]![0]- expect(payload).toMatchObject({- icon_type: 'emoji',- icon: '😀',- icon_background: '#FEF3F2',- })- })-- it('should allow changing only the background for the current emoji icon', async () => {- vi.useFakeTimers({ shouldAdvanceTime: true })- const user = userEvent.setup({ advanceTimers: vi.advanceTimersByTime })- try {- const { onConfirm } = await setup({- appIconType: 'emoji',- appIcon: '🤖',- appIconBackground: '#FFEAD5',- })-- const pickerDialog = await openAppIconPicker(user)-- await user.click(- within(pickerDialog).getByRole('radio', { name: 'app.iconPicker.color.green' }),- )- await user.click(within(pickerDialog).getByRole('button', { name: 'app.iconPicker.ok' }))-- await user.click(screen.getByRole('button', { name: /common\.operation\.create/ }))- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).toHaveBeenCalledTimes(1)- const payload = onConfirm.mock.calls[0]![0]- expect(payload).toMatchObject({- icon_type: 'emoji',- icon: '🤖',- icon_background: '#F3FEE7',- })- } finally {- vi.useRealTimers()- }- })- })-- describe('Submitting', () => {- beforeEach(() => {- vi.useFakeTimers({ shouldAdvanceTime: true })- })-- afterEach(() => {- vi.useRealTimers()- })-- it('should call onConfirm with emoji payload and hide when create is clicked', async () => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- const { onConfirm, onHide } = await setup({- appName: 'My App',- appDescription: 'My description',- appIconType: 'emoji',- appIcon: '😀',- appIconBackground: '#000000',- })-- await user.click(screen.getByRole('button', { name: /common\.operation\.create/ }))- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).toHaveBeenCalledTimes(1)- expect(onHide).toHaveBeenCalledTimes(1)-- const payload = onConfirm.mock.calls[0]![0]- expect(payload).toMatchObject({- name: 'My App',- icon_type: 'emoji',- icon: '😀',- icon_background: '#000000',- description: 'My description',- use_icon_as_answer_icon: false,- })- expect(payload).not.toHaveProperty('max_active_requests')- })-- it('should include updated description when textarea is changed before submitting', async () => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- const { onConfirm } = await setup({ appDescription: 'Old description' })-- await user.clear(screen.getByPlaceholderText('app.newApp.appDescriptionPlaceholder'))- await user.type(- screen.getByPlaceholderText('app.newApp.appDescriptionPlaceholder'),- 'Updated description',- )- await user.click(screen.getByRole('button', { name: /common\.operation\.create/ }))- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).toHaveBeenCalledTimes(1)- expect(onConfirm.mock.calls[0]![0]).toMatchObject({ description: 'Updated description' })- })-- it('preserves the existing null background when submitting an unchanged image icon', async () => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- const { onConfirm } = await setup({- appIconType: 'image',- appIcon: 'file-123',- appIconUrl: 'https://example.com/icon.png',- appIconBackground: null,- })-- await user.click(screen.getByRole('button', { name: /common\.operation\.create/ }))- await act(async () => {- vi.advanceTimersByTime(300)- })-- const payload = onConfirm.mock.calls[0]![0]- expect(payload).toMatchObject({- icon_type: 'image',- icon: 'file-123',- })- expect(payload.icon_background).toBeNull()- })-- it('should include max_active_requests and updated answer icon when saving', async () => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- const { onConfirm } = await setup({- isEditModal: true,- appMode: 'chat' as const,- appUseIconAsAnswerIcon: false,- max_active_requests: 3,- })-- await user.click(screen.getByRole('switch'))- await user.clear(screen.getByRole('spinbutton'))- await user.type(screen.getByRole('spinbutton'), '12')-- await user.click(screen.getByRole('button', { name: /common\.operation\.save/ }))- await act(async () => {- vi.advanceTimersByTime(300)- })-- const payload = onConfirm.mock.calls[0]![0]- expect(payload).toMatchObject({- use_icon_as_answer_icon: true,- max_active_requests: 12,- })- })-- it('should omit max_active_requests when input is empty', async () => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- const { onConfirm } = await setup({ isEditModal: true, max_active_requests: null })-- await user.click(screen.getByRole('button', { name: /common\.operation\.save/ }))- await act(async () => {- vi.advanceTimersByTime(300)- })-- const payload = onConfirm.mock.calls[0]![0]- expect(payload.max_active_requests).toBeUndefined()- })-- it('does not submit when the name becomes empty before the debounced action runs', async () => {- const user = userEvent.setup(- vi.isFakeTimers() ? { advanceTimers: vi.advanceTimersByTime } : {},- )- const { onConfirm, onHide } = await setup({ appName: 'My App' })-- await user.click(screen.getByRole('button', { name: /common\.operation\.create/ }))- await user.clear(screen.getByPlaceholderText('app.newApp.appNamePlaceholder'))- await user.type(screen.getByPlaceholderText('app.newApp.appNamePlaceholder'), ' ')-- await act(async () => {- vi.advanceTimersByTime(300)- })-- expect(onConfirm).not.toHaveBeenCalled()- expect(onHide).not.toHaveBeenCalled()- })- })-})--it('edits an existing app without waiting for application quota data', async () => {- const user = userEvent.setup()- const onConfirm = vi.fn()- renderWithConsoleQuery(- <CreateAppModal- isEditModal- show- appName="Existing"- appDescription=""- appIconType="emoji"- appIcon="🤖"- onConfirm={onConfirm}- onHide={vi.fn()}- />,- { systemFeatures: { deployment_edition: 'CLOUD' } },- )- const save = screen.getByRole('button', { name: /operation.save/ })- expect(save).toBeEnabled()- await user.click(save)- await waitFor(() => expect(onConfirm).toHaveBeenCalledOnce())-})--mockEmojiData()diff --git a/web/app/components/explore/create-app-modal/index.tsx b/web/app/components/explore/create-app-modal/index.tsxdeleted file mode 100644index e5bc1e5e0db..00000000000--- a/web/app/components/explore/create-app-modal/index.tsx+++ /dev/null@@ -1,341 +0,0 @@-'use client'--import type {- AppDetailWithSite,- UpdateAppPayload,-} from '@dify/contracts/api/console/apps/types.gen'-import type { HotkeyChord } from '@tanstack/react-hotkeys'-import type { IconPickerInputValue, IconPickerValue } from '@/app/components/base/icon-picker'-import { Button } from '@langgenius/dify-ui/button'-import {- Dialog,- DialogBody,- DialogContent,- DialogFooter,- DialogHeader,- DialogHeaderCloseButton,- DialogTitle,-} from '@langgenius/dify-ui/dialog'-import { Field, FieldDescription, FieldLabel } from '@langgenius/dify-ui/field'-import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'-import { Input } from '@langgenius/dify-ui/input'-import { Kbd, KbdGroup } from '@langgenius/dify-ui/kbd'-import { Switch } from '@langgenius/dify-ui/switch'-import { Textarea } from '@langgenius/dify-ui/textarea'-import { formatForDisplay, matchesKeyboardEvent } from '@tanstack/react-hotkeys'-import { useQuery } from '@tanstack/react-query'-import { useDebounceFn } from 'ahooks'-import { useAtomValue } from 'jotai'-import * as React from 'react'-import { useCallback, useState } from 'react'-import { useTranslation } from 'react-i18next'-import {- IconPicker,- IconPickerContent,- IconPickerIcon,- IconPickerTrigger,-} from '@/app/components/base/icon-picker'-import AppsFull from '@/app/components/billing/apps-full-in-dialog'-import { toast } from '@/app/notifications'-import { deploymentEditionAtom } from '@/features/system-features/state'-import { consoleQuery } from '@/service/console'--export type CreateAppModalProps = {- show: boolean- isEditModal?: boolean- appName: string- appDescription: string- appIconType: AppDetailWithSite['icon_type']- appIcon: AppDetailWithSite['icon']- appIconBackground?: string | null- appIconUrl?: string | null- appMode?: string- appUseIconAsAnswerIcon?: boolean- max_active_requests?: number | null- onConfirm: (info: UpdateAppPayload) => Promise<void>- confirmDisabled?: boolean- confirmLoading?: boolean- onHide: () => void-}--const SUBMIT_APP_HOTKEY = 'Mod+Enter' satisfies HotkeyChord--const CreateAppModal = ({- show = false,- isEditModal = false,- appIconType,- appIcon: _appIcon,- appIconBackground,- appIconUrl,- appName,- appDescription,- appMode,- appUseIconAsAnswerIcon,- max_active_requests,- onConfirm,- confirmDisabled,- confirmLoading,- onHide,-}: CreateAppModalProps) => {- const descriptionInputId = React.useId()- const maxActiveRequestsInputId = React.useId()- const { t } = useTranslation(['app', 'common', 'explore'])-- const [name, setName] = React.useState(appName)- const [selectedIcon, setSelectedIcon] = useState<IconPickerValue | null>(null)- const pickerValue: IconPickerInputValue | undefined =- selectedIcon ??- (appIconType === 'image' && _appIcon- ? { type: 'image', fileId: _appIcon, url: appIconUrl ?? '' }- : appIconType === 'emoji' && _appIcon- ? { type: 'emoji', icon: _appIcon, background: appIconBackground }- : appIconType === 'link' && _appIcon- ? { type: 'link', url: _appIcon }- : undefined)- const currentIcon = selectedIcon- ? {- icon_type: selectedIcon.type,- icon: selectedIcon.type === 'emoji' ? selectedIcon.icon : selectedIcon.fileId,- icon_background: selectedIcon.type === 'emoji' ? selectedIcon.background : undefined,- icon_url: selectedIcon.type === 'image' ? selectedIcon.url : undefined,- }- : {- icon_type: appIconType,- icon: _appIcon,- icon_background: appIconBackground,- icon_url: appIconUrl,- }- const {- icon_type: currentIconType,- icon: currentIconValue,- icon_background: currentIconBackground,- } = currentIcon- const [description, setDescription] = useState(appDescription || '')- const [useIconAsAnswerIcon, setUseIconAsAnswerIcon] = useState(appUseIconAsAnswerIcon || false)-- const [maxActiveRequestsInput, setMaxActiveRequestsInput] = useState(- max_active_requests !== null && max_active_requests !== undefined- ? String(max_active_requests)- : '',- )-- const deploymentEdition = useAtomValue(deploymentEditionAtom)- const { data: appQuota } = useQuery(- consoleQuery.features.get.queryOptions({- enabled: deploymentEdition === 'CLOUD' && !isEditModal,- select: (data) => data.apps,- }),- )- const isAppQuotaUnavailable =- deploymentEdition === 'CLOUD' && !isEditModal && appQuota === undefined- // A limit of 0 means unlimited.- const isAppsFull =- deploymentEdition === 'CLOUD' &&- appQuota !== undefined &&- appQuota.limit > 0 &&- appQuota.size >= appQuota.limit-- const submit = useCallback(() => {- if (- confirmLoading ||- confirmDisabled ||- (!isEditModal && (isAppQuotaUnavailable || isAppsFull))- )- return- if (!name.trim()) {- toast(- t(($) => $['appCustomize.nameRequired'], { ns: 'explore' }),- { type: 'error' },- )- return- }- const parsedMaxActiveRequests = Number(maxActiveRequestsInput)- const isValid = maxActiveRequestsInput.trim() !== '' && !Number.isNaN(parsedMaxActiveRequests)- const payload: UpdateAppPayload = {- name,- icon_type: currentIconType,- icon: currentIconValue,- icon_background: currentIconBackground,- description,- use_icon_as_answer_icon: useIconAsAnswerIcon,- }- if (isValid) payload.max_active_requests = parsedMaxActiveRequests-- onConfirm(payload)- onHide()- }, [- confirmLoading,- confirmDisabled,- isEditModal,- isAppQuotaUnavailable,- isAppsFull,- name,- currentIconType,- currentIconValue,- currentIconBackground,- description,- useIconAsAnswerIcon,- onConfirm,- onHide,- t,- maxActiveRequestsInput,- ])-- const { run: handleSubmit } = useDebounceFn(submit, { wait: 300 })-- const submitDisabled =- isAppQuotaUnavailable || (!isEditModal && isAppsFull) || !name.trim() || !!confirmDisabled-- return (- <>- <Dialog open={show} onOpenChange={(open) => !open && onHide()} disablePointerDismissal>- <DialogContent- onKeyDown={(event) => {- if (- !show ||- submitDisabled ||- confirmLoading ||- event.defaultPrevented ||- event.nativeEvent.isComposing ||- !(event.target instanceof Node) ||- !event.currentTarget.contains(event.target) ||- !matchesKeyboardEvent(event.nativeEvent, SUBMIT_APP_HOTKEY)- )- return- event.preventDefault()- event.stopPropagation()- if (event.repeat) return- handleSubmit()- }}- backdropProps={{ forceRender: true }}- >- <DialogHeader>- {isEditModal && <DialogTitle>{t(($) => $.editAppTitle, { ns: 'app' })}</DialogTitle>}- {!isEditModal && (- <DialogTitle>- {t(($) => $['appCustomize.title'], { ns: 'explore', name: appName })}- </DialogTitle>- )}- <DialogHeaderCloseButton- aria-label={t(($) => $['operation.close'], { ns: 'common' })}- />- </DialogHeader>- <DialogBody>- {/* icon & name */}- <Fieldset className="pt-2">- <FieldsetLegend className="mb-0 block py-2 text-sm leading-5 font-medium text-text-primary">- {t(($) => $['newApp.captionName'], { ns: 'app' })}- </FieldsetLegend>- <div className="flex items-center justify-between space-x-2">- <IconPicker value={pickerValue} onValueChange={setSelectedIcon}>- <IconPickerTrigger- aria-label={t(($) => $['iconPicker.title'], { ns: 'app' })}- className="shrink-0 cursor-pointer rounded-[10px]"- >- <IconPickerIcon size="large" />- </IconPickerTrigger>- <IconPickerContent />- </IconPicker>- <Field name="name" className="grow">- <Input- aria-label={t(($) => $['newApp.name'], { ns: 'app' })}- value={name}- onChange={(e) => setName(e.target.value)}- placeholder={t(($) => $['newApp.appNamePlaceholder'], { ns: 'app' }) || ''}- className="h-10 grow"- />- </Field>- </div>- </Fieldset>- {/* description */}- <div className="pt-2">- <label- htmlFor={descriptionInputId}- className="block py-2 text-sm leading-5 font-medium text-text-primary"- >- {t(($) => $['newApp.captionDescription'], { ns: 'app' })}- </label>- <Textarea- id={descriptionInputId}- className="resize-none"- placeholder={t(($) => $['newApp.appDescriptionPlaceholder'], { ns: 'app' }) || ''}- value={description}- onValueChange={(value) => setDescription(value)}- />- </div>- {/* answer icon */}- {isEditModal &&- (appMode === 'chat' || appMode === 'advanced-chat' || appMode === 'agent-chat') && (- <Field name="use_icon_as_answer_icon" className="gap-0 pt-2">- <div className="flex items-center justify-between">- <FieldLabel className="py-2 text-sm leading-5 font-medium text-text-primary">- {t(($) => $['answerIcon.title'], { ns: 'app' })}- </FieldLabel>- <Switch- checked={useIconAsAnswerIcon}- onCheckedChange={(v) => setUseIconAsAnswerIcon(v)}- />- </div>- <FieldDescription className="py-0">- {t(($) => $['answerIcon.descriptionInExplore'], { ns: 'app' })}- </FieldDescription>- </Field>- )}- {isEditModal && (- <div className="pt-2">- <label- htmlFor={maxActiveRequestsInputId}- className="mt-2 mb-2 block text-sm leading-5 font-medium text-text-primary"- >- {t(($) => $.maxActiveRequests, { ns: 'app' })}- </label>- <Input- id={maxActiveRequestsInputId}- type="number"- min={1}- placeholder={t(($) => $.maxActiveRequestsPlaceholder, { ns: 'app' })}- value={maxActiveRequestsInput}- onChange={(e) => {- setMaxActiveRequestsInput(e.target.value)- }}- className="h-10 w-full"- />- <p className="mt-2 mb-0 body-xs-regular text-text-tertiary">- {t(($) => $.maxActiveRequestsTip, { ns: 'app' })}- </p>- </div>- )}- {!isEditModal && isAppsFull && <AppsFull className="mt-4" loc="app-explore-create" />}- </DialogBody>- <DialogFooter>- <Button className="w-24" onClick={onHide}>- {t(($) => $['operation.cancel'], { ns: 'common' })}- </Button>- <Button- loading={confirmLoading}- disabled={submitDisabled}- className="w-24"- variant="primary"- onClick={handleSubmit}- >- <span>- {!isEditModal- ? t(($) => $['operation.create'], { ns: 'common' })- : t(($) => $['operation.save'], { ns: 'common' })}- </span>- <KbdGroup>- {formatForDisplay(SUBMIT_APP_HOTKEY, { parts: true }).map((key) => (- <Kbd key={key} color="white">- {key}- </Kbd>- ))}- </KbdGroup>- </Button>- </DialogFooter>- </DialogContent>- </Dialog>- </>- )-}--export default CreateAppModaldiff --git a/web/features/home/home-content/__tests__/home-content.spec.tsx b/web/features/home/home-content/__tests__/home-content.spec.tsxindex fa4da1d648f..fdde4dbd665 100644--- a/web/features/home/home-content/__tests__/home-content.spec.tsx+++ b/web/features/home/home-content/__tests__/home-content.spec.tsx@@ -1096,7 +1096,8 @@ describe('HomeContent', () => {const create = within(dialog).getByRole('button', { name: /common.operation.create/ })await user.click(create)await waitFor(() => expect(importDSL).toHaveBeenCalledOnce())- await waitFor(() => expect(dialog).not.toBeInTheDocument())+ expect(dialog).toBeInTheDocument()+ expect(name).toHaveAttribute('readonly')expect(importDSL).toHaveBeenCalledWith({body: expect.objectContaining({ name: 'My imported app', yaml_content: 'yaml-content' }),})@@ -1120,11 +1121,11 @@ describe('HomeContent', () => {expect(push).not.toHaveBeenCalled()expect(checkDependencies).not.toHaveBeenCalled()expect(mockTrackEvent).not.toHaveBeenCalledWith('create_app', expect.anything())- await user.click(screen.getByRole('button', { name: 'Alpha' }))+ expect(name).toHaveValue('My imported app')await user.click(await screen.findByRole('button', { name: /common.operation.create/ }))await waitFor(() => expect(push).toHaveBeenCalledWith('/app/created-app/configuration'))expect(importDSL).toHaveBeenLastCalledWith({- body: expect.objectContaining({ name: 'Alpha', yaml_content: 'yaml-content' }),+ body: expect.objectContaining({ name: 'My imported app', yaml_content: 'yaml-content' }),})},)diff --git a/web/features/home/home-content/home-content.tsx b/web/features/home/home-content/home-content.tsxindex 5d05f9737d9..19578796359 100644--- a/web/features/home/home-content/home-content.tsx+++ b/web/features/home/home-content/home-content.tsx@@ -1,17 +1,26 @@'use client'+import type { UpdateAppPayload } from '@dify/contracts/api/console/apps/types.gen'import type { RecommendedAppResponse } from '@dify/contracts/api/console/explore/types.gen'-import type { CreateAppModalProps } from '@/app/components/explore/create-app-modal'import type { StepByStepTourTaskId } from '@/app/components/step-by-step-tour/types'import type { TrackCreateAppParams } from '@/utils/create-app-tracking'+import { zIconType } from '@dify/contracts/api/console/apps/zod.gen'import { cn } from '@langgenius/dify-ui/cn'-import { noop, useQueryClient, useSuspenseQueries, useSuspenseQuery } from '@tanstack/react-query'+import { Dialog, DialogContent } from '@langgenius/dify-ui/dialog'+import {+ noop,+ useMutation,+ useQueryClient,+ useSuspenseQueries,+ useSuspenseQuery,+} from '@tanstack/react-query'import { useAtomValue, useSetAtom } from 'jotai'import dynamic from 'next/dynamic'import { useQueryState } from 'nuqs'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { useLocale } from '#i18n'+import { AppMetadataForm } from '@/app/components/app/app-metadata'import { getTemplateImportSource } from '@/app/components/explore/template-import'import { MAIN_NAV_APP_CARD_GRID_CLASS_NAME } from '@/app/components/main-nav/app-card-grid'import {@@ -44,9 +53,6 @@ import { HomeRecommendations } from './recommendations'import { HomeTemplatesHeader } from './templates-header'const TryApp = dynamic(() => import('@/app/components/explore/try-app'), { ssr: false })-const CreateAppModal = dynamic(() => import('@/app/components/explore/create-app-modal'), {- ssr: false,-})const DSLConfirmModal = dynamic(() => import('@/app/components/app/create-from-dsl-modal/dsl-confirm-modal'),{ ssr: false },@@ -153,6 +159,7 @@ export function HomeContent() {const [currApp, setCurrApp] = useState<RecommendedAppResponse | null>(null)const [isShowCreateModal, setIsShowCreateModal] = useState(false)+ const createNameRef = useRef<HTMLInputElement>(null)const { handleImportDSL, handleImportDSLConfirm, versions, isFetching } = useImportDSL()const [showDSLConfirmModal, setShowDSLConfirmModal] = useState(false)@@ -225,7 +232,7 @@ export function HomeContent() {abandonHomeTour()setCurrentTryApp(undefined)- setCurrApp(null)+ setIsShowCreateModal(false)currentCreateAppTrackingRef.current = nullcurrentCreateAppModeRef.current = nullisCurrentTryAppFromLearnDifyRef.current = false@@ -316,6 +323,7 @@ export function HomeContent() {activeStepByStepTourTaskId === HOME_STEP_BY_STEP_TOUR_TASK_ID &&!completedStepByStepTourTaskIds.includes(HOME_STEP_BY_STEP_TOUR_TASK_ID) &&activeStepByStepTourGuideIndex === 1+setIsShowCreateModal(true)}, [activeStepByStepTourGuideIndex,@@ -326,6 +334,7 @@ export function HomeContent() {])const handleCreateFromLearnDify = useCallback((app: RecommendedAppResponse) => {setCurrApp(app)+setIsShowCreateModal(true)}, [])const handleCreateFromTemplate = useCallback(@@ -336,6 +345,7 @@ export function HomeContent() {templateId: app.app_id,}setCurrApp(app)+setIsShowCreateModal(true)},[canCreateTemplate],@@ -358,8 +368,8 @@ export function HomeContent() {setIsShowCreateModal(false)}, [abandonHomeTourCreate])- const onCreate: CreateAppModalProps['onConfirm'] = useCallback(- async ({ name, icon_type, icon, icon_background, description }) => {+ const onCreate = useCallback(+ async ({ name, icon_type, icon, icon_background, description }: UpdateAppPayload) => {const appId = currApp?.app_idif (!appId || !canCreateTemplate(currApp.app?.mode)) returnisSubmittingHomeTourCreateRef.current = shouldCompleteHomeTourOnCreateRef.current@@ -404,6 +414,7 @@ export function HomeContent() {},onPending: () => {didTransitionCreateFlow = true+ setIsShowCreateModal(false)setShowDSLConfirmModal(true)},skipRedirectOnSuccess: shouldCompleteHomeTourOnCreateRef.current,@@ -427,6 +438,9 @@ export function HomeContent() {],)+ const submission = useMutation({ mutationFn: onCreate })+ const isCreatePending = submission.isPending || isFetching+const onConfirmDSL = useCallback(async () => {await handleImportDSLConfirm({onSuccess: (response) => {@@ -499,26 +513,42 @@ export function HomeContent() {</section></div></div>- {isShowCreateModal && (- <CreateAppModal- appIconType={- currApp?.app?.icon_type === 'image' ||- currApp?.app?.icon_type === 'emoji' ||- currApp?.app?.icon_type === 'link'- ? currApp.app.icon_type- : 'emoji'+ <Dialog+ open={isShowCreateModal}+ disablePointerDismissal+ onOpenChange={(open, details) => {+ if (!open && isCreatePending) details.cancel()+ else if (!open) handleCreateModalHide()+ }}+ onOpenChangeComplete={(open) => {+ if (!open) {+ if (!submission.isPending) submission.reset()+ setCurrApp(null)}- appIcon={currApp?.app?.icon || ''}- appIconBackground={currApp?.app?.icon_background || ''}- appIconUrl={currApp?.app?.icon_url}- appName={currApp?.app?.name || ''}- appDescription={currApp?.description || ''}- show={isShowCreateModal}- onConfirm={onCreate}- confirmLoading={isFetching}- onHide={handleCreateModalHide}- />- )}+ }}+ >+ <DialogContent initialFocus={createNameRef}>+ {currApp && (+ <AppMetadataForm+ operation="create"+ appDetail={{+ name: currApp.app?.name ?? '',+ description: currApp.description ?? '',+ icon_type: zIconType.safeParse(currApp.app?.icon_type).data ?? 'emoji',+ icon: currApp.app?.icon ?? null,+ icon_background: currApp.app?.icon_background,+ icon_url: currApp.app?.icon_url ?? null,+ }}+ nameInputRef={createNameRef}+ isPending={isCreatePending}+ error={submission.error?.message}+ onSubmit={(body) => {+ if (!isCreatePending) submission.mutate(body)+ }}+ />+ )}+ </DialogContent>+ </Dialog>{showDSLConfirmModal && (<DSLConfirmModalversions={versions}diff --git a/web/i18n/locales/ar-TN/app.json b/web/i18n/locales/ar-TN/app.jsonindex a0cd86eb7d9..74625a69f8a 100644--- a/web/i18n/locales/ar-TN/app.json+++ b/web/i18n/locales/ar-TN/app.json@@ -41,7 +41,6 @@"duplicateTitle": "نسخ التطبيق","editApp": "تعديل المعلومات","editAppTitle": "تعديل معلومات التطبيق",- "editFailed": "فشل تحديث معلومات التطبيق","exportApp": "تصدير التطبيق","exportFailed": "فشل التصدير","exportSecret.description": "عند التحديد، ستُضمّن القيم السرية في حزمة التطبيق المُصدَّرة.",diff --git a/web/i18n/locales/ar-TN/common.json b/web/i18n/locales/ar-TN/common.jsonindex 6da438745d0..7a1e0a60093 100644--- a/web/i18n/locales/ar-TN/common.json+++ b/web/i18n/locales/ar-TN/common.json@@ -166,6 +166,7 @@"operation.copyImage": "نسخ الصورة","operation.create": "إنشاء","operation.deSelectAll": "إلغاء تحديد الكل",+ "operation.decreaseValue": "تقليل القيمة","operation.delete": "حذف","operation.download": "تنزيل","operation.downloadFailed": "فشل التنزيل. يرجى المحاولة مرة أخرى لاحقًا.",@@ -180,6 +181,7 @@"operation.imageCopied": "تم نسخ الصورة","operation.imageCopyFailed": "تعذّر نسخ الصورة. يرجى تنزيلها بدلاً من ذلك.","operation.in": "في",+ "operation.increaseValue": "زيادة القيمة","operation.learnMore": "تعرف على المزيد","operation.log": "سجل","operation.more": "المزيد",diff --git a/web/i18n/locales/az-AZ/app.json b/web/i18n/locales/az-AZ/app.jsonindex 4ff97acb8d7..f7101d5d75d 100644--- a/web/i18n/locales/az-AZ/app.json+++ b/web/i18n/locales/az-AZ/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Tətbiqin nüsxəsinin yaradılması","editApp": "Məlumatı redaktə et","editAppTitle": "Tətbiq məlumatlarının redaktəsi",- "editFailed": "Tətbiq məlumatını yeniləmək mümkün olmadı","exportApp": "Tətbiqi ixrac et","exportFailed": "İxrac uğursuz oldu","exportSecret.description": "Seçildikdə məxfi dəyərlər ixrac edilən tətbiq paketinə daxil ediləcək.",diff --git a/web/i18n/locales/az-AZ/common.json b/web/i18n/locales/az-AZ/common.jsonindex ab263bcf592..97587279eef 100644--- a/web/i18n/locales/az-AZ/common.json+++ b/web/i18n/locales/az-AZ/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Şəkli kopyala","operation.create": "Yarat","operation.deSelectAll": "Bütün seçimləri ləğv et",+ "operation.decreaseValue": "Dəyəri azalt","operation.delete": "Sil","operation.download": "Yüklə","operation.downloadFailed": "Yükləmə uğursuz oldu. Daha sonra yenidən cəhd et.",@@ -180,6 +181,7 @@"operation.imageCopied": "Şəkil kopyalandı","operation.imageCopyFailed": "Şəkli kopyalamaq alınmadı. Əvəzinə onu yükləyin.","operation.in": "daxilində",+ "operation.increaseValue": "Dəyəri artır","operation.learnMore": "Ətraflı öyrən","operation.log": "Jurnal","operation.more": "Daha çox",diff --git a/web/i18n/locales/de-DE/app.json b/web/i18n/locales/de-DE/app.jsonindex d3d1cbdb361..6916a6c3f50 100644--- a/web/i18n/locales/de-DE/app.json+++ b/web/i18n/locales/de-DE/app.json@@ -41,7 +41,6 @@"duplicateTitle": "App duplizieren","editApp": "App bearbeiten","editAppTitle": "App-Informationen bearbeiten",- "editFailed": "Aktualisierung der App-Informationen fehlgeschlagen","exportApp": "App exportieren","exportFailed": "Export fehlgeschlagen","exportSecret.description": "Wenn ausgewählt, werden geheime Werte in das exportierte App-Paket aufgenommen.",diff --git a/web/i18n/locales/de-DE/common.json b/web/i18n/locales/de-DE/common.jsonindex 76d7d45f7ca..cc6ea4a1fc8 100644--- a/web/i18n/locales/de-DE/common.json+++ b/web/i18n/locales/de-DE/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Bild kopieren","operation.create": "Erstellen","operation.deSelectAll": "Alle abwählen",+ "operation.decreaseValue": "Wert verringern","operation.delete": "Löschen","operation.download": "Herunterladen","operation.downloadFailed": "Download fehlgeschlagen. Bitte versuchen Sie es später erneut.",@@ -180,6 +181,7 @@"operation.imageCopied": "Kopiertes Bild","operation.imageCopyFailed": "Das Bild konnte nicht kopiert werden. Bitte laden Sie es stattdessen herunter.","operation.in": "in",+ "operation.increaseValue": "Wert erhöhen","operation.learnMore": "Mehr erfahren","operation.log": "Protokoll","operation.more": "Mehr",diff --git a/web/i18n/locales/en-US/app.json b/web/i18n/locales/en-US/app.jsonindex dc231a931da..c7fb606adff 100644--- a/web/i18n/locales/en-US/app.json+++ b/web/i18n/locales/en-US/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Duplicate App","editApp": "Edit Info","editAppTitle": "Edit App Info",- "editFailed": "Failed to update app info","exportApp": "Export App","exportFailed": "Export failed","exportSecret.description": "If selected, secret values will be included in the exported app package.",diff --git a/web/i18n/locales/en-US/common.json b/web/i18n/locales/en-US/common.jsonindex 5d68f9042fd..3ae49eeb486 100644--- a/web/i18n/locales/en-US/common.json+++ b/web/i18n/locales/en-US/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Copy Image","operation.create": "Create","operation.deSelectAll": "Deselect All",+ "operation.decreaseValue": "Decrease value","operation.delete": "Delete","operation.download": "Download","operation.downloadFailed": "Download failed. Please try again later.",@@ -180,6 +181,7 @@"operation.imageCopied": "Image copied","operation.imageCopyFailed": "Could not copy the image. Please download it instead.","operation.in": "in",+ "operation.increaseValue": "Increase value","operation.learnMore": "Learn more","operation.log": "Log","operation.more": "More",diff --git a/web/i18n/locales/es-ES/app.json b/web/i18n/locales/es-ES/app.jsonindex b119ca8c326..0a7de4a41c8 100644--- a/web/i18n/locales/es-ES/app.json+++ b/web/i18n/locales/es-ES/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Duplicar App","editApp": "Editar información","editAppTitle": "Editar información de la app",- "editFailed": "Error al actualizar información de la app","exportApp": "Exportar aplicación","exportFailed": "Error al exportar","exportSecret.description": "Si se selecciona, los valores secretos se incluirán en el paquete de aplicación exportado.",diff --git a/web/i18n/locales/es-ES/common.json b/web/i18n/locales/es-ES/common.jsonindex 1794192dc3d..bcb39bc00e1 100644--- a/web/i18n/locales/es-ES/common.json+++ b/web/i18n/locales/es-ES/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Copiar imagen","operation.create": "Crear","operation.deSelectAll": "Deseleccionar todo",+ "operation.decreaseValue": "Disminuir valor","operation.delete": "Eliminar","operation.download": "Descargar","operation.downloadFailed": "La descarga ha fallado. Por favor, inténtalo de nuevo más tarde.",@@ -180,6 +181,7 @@"operation.imageCopied": "Imagen copiada","operation.imageCopyFailed": "No se pudo copiar la imagen. Descárgala en su lugar.","operation.in": "en",+ "operation.increaseValue": "Aumentar valor","operation.learnMore": "Aprender más","operation.log": "Registro","operation.more": "Más",diff --git a/web/i18n/locales/fa-IR/app.json b/web/i18n/locales/fa-IR/app.jsonindex 187cc20bee2..3dcbc658d38 100644--- a/web/i18n/locales/fa-IR/app.json+++ b/web/i18n/locales/fa-IR/app.json@@ -41,7 +41,6 @@"duplicateTitle": "تکرار برنامه","editApp": "ویرایش اطلاعات","editAppTitle": "ویرایش اطلاعات برنامه",- "editFailed": "بهروزرسانی اطلاعات برنامه ناموفق بود","exportApp": "خروجی گرفتن از برنامه","exportFailed": "خروجی گرفتن ناموفق بود","exportSecret.description": "در صورت انتخاب، مقادیر محرمانه در بستهٔ خروجی برنامه قرار میگیرند.",diff --git a/web/i18n/locales/fa-IR/common.json b/web/i18n/locales/fa-IR/common.jsonindex 83d76c392cb..26339daa2ec 100644--- a/web/i18n/locales/fa-IR/common.json+++ b/web/i18n/locales/fa-IR/common.json@@ -166,6 +166,7 @@"operation.copyImage": "کپی تصویر","operation.create": "ایجاد","operation.deSelectAll": "همه را انتخاب نکنید",+ "operation.decreaseValue": "کاهش مقدار","operation.delete": "حذف","operation.download": "دانلود","operation.downloadFailed": "دانلود ناموفق بود. لطفاً بعداً دوباره تلاش کنید.",@@ -180,6 +181,7 @@"operation.imageCopied": "تصویر کپی شده","operation.imageCopyFailed": "تصویر کپی نشد. لطفاً بهجای آن تصویر را دانلود کنید.","operation.in": "در",+ "operation.increaseValue": "افزایش مقدار","operation.learnMore": "اطلاعات بیشتر","operation.log": "گزارش","operation.more": "بیشتر",diff --git a/web/i18n/locales/fr-FR/app.json b/web/i18n/locales/fr-FR/app.jsonindex 0248c93f7f3..c7f2f148f8b 100644--- a/web/i18n/locales/fr-FR/app.json+++ b/web/i18n/locales/fr-FR/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Dupliquer l'application","editApp": "Modifier les informations","editAppTitle": "Modifier les informations de l'application",- "editFailed": "Échec de la mise à jour des informations de l'application","exportApp": "Exporter l’application","exportFailed": "Échec de l’exportation","exportSecret.description": "Si cette option est cochée, les valeurs secrètes seront incluses dans le paquet d’application exporté.",diff --git a/web/i18n/locales/fr-FR/common.json b/web/i18n/locales/fr-FR/common.jsonindex 9de6ab4dcd0..573482e181f 100644--- a/web/i18n/locales/fr-FR/common.json+++ b/web/i18n/locales/fr-FR/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Copier l’image","operation.create": "Créer","operation.deSelectAll": "Désélectionner tout",+ "operation.decreaseValue": "Diminuer la valeur","operation.delete": "Supprimer","operation.download": "Télécharger","operation.downloadFailed": "Échec du téléchargement. Veuillez réessayer plus tard.",@@ -180,6 +181,7 @@"operation.imageCopied": "Image copied","operation.imageCopyFailed": "Impossible de copier l’image. Veuillez la télécharger à la place.","operation.in": "dans",+ "operation.increaseValue": "Augmenter la valeur","operation.learnMore": "En savoir plus","operation.log": "Journal","operation.more": "Plus",diff --git a/web/i18n/locales/hi-IN/app.json b/web/i18n/locales/hi-IN/app.jsonindex 779664fe865..b51687cccbf 100644--- a/web/i18n/locales/hi-IN/app.json+++ b/web/i18n/locales/hi-IN/app.json@@ -41,7 +41,6 @@"duplicateTitle": "ऐप डुप्लिकेट करें","editApp": "जानकारी संपादित करें","editAppTitle": "ऐप जानकारी संपादित करें",- "editFailed": "ऐप जानकारी अपडेट करने में विफल","exportApp": "ऐप निर्यात करें","exportFailed": "निर्यात विफल हुआ","exportSecret.description": "चयन करने पर गुप्त मान निर्यात किए गए ऐप पैकेज में शामिल होंगे।",diff --git a/web/i18n/locales/hi-IN/common.json b/web/i18n/locales/hi-IN/common.jsonindex b25fad98900..26a8f0f9c22 100644--- a/web/i18n/locales/hi-IN/common.json+++ b/web/i18n/locales/hi-IN/common.json@@ -166,6 +166,7 @@"operation.copyImage": "छवि कॉपी करें","operation.create": "बनाएं","operation.deSelectAll": "सभी चयन हटाएँ",+ "operation.decreaseValue": "मान घटाएँ","operation.delete": "हटाएं","operation.download": "डाउनलोड करें","operation.downloadFailed": "डाउनलोड विफल। कृपया बाद में पुनः प्रयास करें।",@@ -180,6 +181,7 @@"operation.imageCopied": "कॉपी की गई छवि","operation.imageCopyFailed": "इमेज कॉपी नहीं हो सकी। कृपया इसे डाउनलोड करें।","operation.in": "में",+ "operation.increaseValue": "मान बढ़ाएँ","operation.learnMore": "अधिक जानें","operation.log": "लॉग","operation.more": "अधिक",diff --git a/web/i18n/locales/id-ID/app.json b/web/i18n/locales/id-ID/app.jsonindex 64d144b50d0..083e7067316 100644--- a/web/i18n/locales/id-ID/app.json+++ b/web/i18n/locales/id-ID/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Aplikasi Duplikat","editApp": "Edit Informasi","editAppTitle": "Edit Info Aplikasi",- "editFailed": "Gagal memperbarui info aplikasi","exportApp": "Ekspor Aplikasi","exportFailed": "Ekspor gagal","exportSecret.description": "Jika dipilih, nilai rahasia akan disertakan dalam paket aplikasi yang diekspor.",diff --git a/web/i18n/locales/id-ID/common.json b/web/i18n/locales/id-ID/common.jsonindex 02b1cd47745..d638150cdab 100644--- a/web/i18n/locales/id-ID/common.json+++ b/web/i18n/locales/id-ID/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Salin Gambar","operation.create": "Menciptakan","operation.deSelectAll": "Batalkan pilihan Semua",+ "operation.decreaseValue": "Kurangi nilai","operation.delete": "Menghapus","operation.download": "Mengunduh","operation.downloadFailed": "Unduhan gagal. Silakan coba lagi nanti.",@@ -180,6 +181,7 @@"operation.imageCopied": "Gambar yang disalin","operation.imageCopyFailed": "Gambar tidak dapat disalin. Silakan unduh sebagai gantinya.","operation.in": "di",+ "operation.increaseValue": "Tambah nilai","operation.learnMore": "Pelajari lebih lanjut","operation.log": "Batang","operation.more": "Lebih",diff --git a/web/i18n/locales/it-IT/app.json b/web/i18n/locales/it-IT/app.jsonindex 2cdc333e63e..ca7c92b03d7 100644--- a/web/i18n/locales/it-IT/app.json+++ b/web/i18n/locales/it-IT/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Duplica App","editApp": "Modifica Info","editAppTitle": "Modifica Info App",- "editFailed": "Aggiornamento delle info dell'app fallito","exportApp": "Esporta app","exportFailed": "Esportazione non riuscita","exportSecret.description": "Se selezionato, i valori segreti saranno inclusi nel pacchetto app esportato.",diff --git a/web/i18n/locales/it-IT/common.json b/web/i18n/locales/it-IT/common.jsonindex 16220aaef10..8255c81bef7 100644--- a/web/i18n/locales/it-IT/common.json+++ b/web/i18n/locales/it-IT/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Copia immagine","operation.create": "Crea","operation.deSelectAll": "Deseleziona tutto",+ "operation.decreaseValue": "Diminuisci valore","operation.delete": "Elimina","operation.download": "Scarica","operation.downloadFailed": "Download non riuscito. Per favore riprova più tardi.",@@ -180,6 +181,7 @@"operation.imageCopied": "Immagine copiata","operation.imageCopyFailed": "Impossibile copiare l’immagine. Scaricala invece.","operation.in": "in",+ "operation.increaseValue": "Aumenta valore","operation.learnMore": "Scopri di più","operation.log": "Log","operation.more": "Di più",diff --git a/web/i18n/locales/ja-JP/app.json b/web/i18n/locales/ja-JP/app.jsonindex 6c8d5491d19..c907ace8337 100644--- a/web/i18n/locales/ja-JP/app.json+++ b/web/i18n/locales/ja-JP/app.json@@ -41,7 +41,6 @@"duplicateTitle": "アプリを複製する","editApp": "情報を編集する","editAppTitle": "アプリ情報を編集する",- "editFailed": "アプリ情報の更新に失敗しました","exportApp": "アプリをエクスポート","exportFailed": "エクスポートに失敗しました","exportSecret.description": "選択すると、エクスポートされるアプリパッケージにシークレット値が含まれます。",diff --git a/web/i18n/locales/ja-JP/common.json b/web/i18n/locales/ja-JP/common.jsonindex 8ff0555ed4c..3ad430ae937 100644--- a/web/i18n/locales/ja-JP/common.json+++ b/web/i18n/locales/ja-JP/common.json@@ -166,6 +166,7 @@"operation.copyImage": "画像をコピー","operation.create": "作成","operation.deSelectAll": "すべて選択解除",+ "operation.decreaseValue": "値を減らす","operation.delete": "削除","operation.download": "ダウンロード","operation.downloadFailed": "ダウンロードに失敗しました、後で再試行してください。",@@ -180,6 +181,7 @@"operation.imageCopied": "コピーした画像","operation.imageCopyFailed": "画像をコピーできませんでした。代わりにダウンロードしてください。","operation.in": "中",+ "operation.increaseValue": "値を増やす","operation.learnMore": "詳細はこちら","operation.log": "ログ","operation.more": "もっと",diff --git a/web/i18n/locales/ko-KR/app.json b/web/i18n/locales/ko-KR/app.jsonindex 59ecb91bcef..6bfce66f14e 100644--- a/web/i18n/locales/ko-KR/app.json+++ b/web/i18n/locales/ko-KR/app.json@@ -41,7 +41,6 @@"duplicateTitle": "앱 복제하기","editApp": "정보 편집하기","editAppTitle": "앱 정보 편집하기",- "editFailed": "앱 정보 업데이트 실패","exportApp": "앱 내보내기","exportFailed": "내보내기 실패","exportSecret.description": "선택하면 내보낸 앱 패키지에 비밀 값이 포함됩니다.",diff --git a/web/i18n/locales/ko-KR/common.json b/web/i18n/locales/ko-KR/common.jsonindex f72248ccd2d..8dd5f81dc5f 100644--- a/web/i18n/locales/ko-KR/common.json+++ b/web/i18n/locales/ko-KR/common.json@@ -166,6 +166,7 @@"operation.copyImage": "이미지 복사","operation.create": "생성","operation.deSelectAll": "모두 선택 해제",+ "operation.decreaseValue": "값 감소","operation.delete": "삭제","operation.download": "다운로드","operation.downloadFailed": "다운로드 실패했습니다. 나중에 다시 시도하십시오.",@@ -180,6 +181,7 @@"operation.imageCopied": "복사된 이미지","operation.imageCopyFailed": "이미지를 복사할 수 없습니다. 대신 다운로드해 주세요.","operation.in": "안으로",+ "operation.increaseValue": "값 증가","operation.learnMore": "자세히 알아보기","operation.log": "로그","operation.more": "더 많은",diff --git a/web/i18n/locales/lo-LA/app.json b/web/i18n/locales/lo-LA/app.jsonindex 936cc9d959d..64f1bd4d1fe 100644--- a/web/i18n/locales/lo-LA/app.json+++ b/web/i18n/locales/lo-LA/app.json@@ -41,7 +41,6 @@"duplicateTitle": "ເຮັດສຳເນົາແອັບ","editApp": "ແກ້ໄຂຂໍ້ມູນ","editAppTitle": "ແກ້ໄຂຂໍ້ມູນແອັບ",- "editFailed": "ອັບເດດຂໍ້ມູນແອັບບໍ່ສຳເລັດ","exportApp": "ສົ່ງອອກແອັບ","exportFailed": "ການສົ່ງອອກລົ້ມເຫຼວ","exportSecret.description": "ຖ້າເລືອກ ຄ່າລັບຈະລວມຢູ່ໃນແພັກເກດແອັບທີ່ສົ່ງອອກ.",diff --git a/web/i18n/locales/lo-LA/common.json b/web/i18n/locales/lo-LA/common.jsonindex 5018d94cbb0..a0c3882afb6 100644--- a/web/i18n/locales/lo-LA/common.json+++ b/web/i18n/locales/lo-LA/common.json@@ -166,6 +166,7 @@"operation.copyImage": "ຄັດລອກຮູບພາບ","operation.create": "ສ້າງ","operation.deSelectAll": "ຍົກເລີກການເລືອກທັງໝົດ",+ "operation.decreaseValue": "ຫຼຸດຄ່າ","operation.delete": "ລຶບ","operation.download": "ດາວໂຫຼດ","operation.downloadFailed": "ດາວໂຫຼດບໍ່ສຳເລັດ. ກະລຸນາລອງໃໝ່ພາຍຫຼັງ.",@@ -180,6 +181,7 @@"operation.imageCopied": "ຄັດລອກຮູບແລ້ວ","operation.imageCopyFailed": "ບໍ່ສາມາດສຳເນົາຮູບພາບໄດ້. ກະລຸນາດາວໂຫຼດຮູບພາບແທນ.","operation.in": "ໃນ",+ "operation.increaseValue": "ເພີ່ມຄ່າ","operation.learnMore": "ຮຽນຮູ້ເພີ່ມເຕີມ","operation.log": "ບັນທຶກ","operation.more": "ເພີ່ມເຕີມ",diff --git a/web/i18n/locales/nl-NL/app.json b/web/i18n/locales/nl-NL/app.jsonindex afffd49743d..5fb32506163 100644--- a/web/i18n/locales/nl-NL/app.json+++ b/web/i18n/locales/nl-NL/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Duplicate App","editApp": "Edit Info","editAppTitle": "Edit App Info",- "editFailed": "Failed to update app info","exportApp": "App exporteren","exportFailed": "Exporteren mislukt","exportSecret.description": "Indien geselecteerd, worden geheime waarden opgenomen in het geëxporteerde app-pakket.",diff --git a/web/i18n/locales/nl-NL/common.json b/web/i18n/locales/nl-NL/common.jsonindex c9bf65b8a47..f11c095392c 100644--- a/web/i18n/locales/nl-NL/common.json+++ b/web/i18n/locales/nl-NL/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Copy Image","operation.create": "Create","operation.deSelectAll": "Deselect All",+ "operation.decreaseValue": "Waarde verlagen","operation.delete": "Delete","operation.download": "Download","operation.downloadFailed": "Download failed. Please try again later.",@@ -180,6 +181,7 @@"operation.imageCopied": "Image copied","operation.imageCopyFailed": "De afbeelding kon niet worden gekopieerd. Download deze in plaats daarvan.","operation.in": "in",+ "operation.increaseValue": "Waarde verhogen","operation.learnMore": "Meer informatie","operation.log": "Log","operation.more": "More",diff --git a/web/i18n/locales/pl-PL/app.json b/web/i18n/locales/pl-PL/app.jsonindex 88784e95844..afa318b2a3e 100644--- a/web/i18n/locales/pl-PL/app.json+++ b/web/i18n/locales/pl-PL/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Duplikuj aplikację","editApp": "Edytuj informacje","editAppTitle": "Edytuj informacje o aplikacji",- "editFailed": "Nie udało się zaktualizować informacji o aplikacji","exportApp": "Eksportuj aplikację","exportFailed": "Eksport nie powiódł się","exportSecret.description": "Po zaznaczeniu tajne wartości zostaną uwzględnione w eksportowanym pakiecie aplikacji.",diff --git a/web/i18n/locales/pl-PL/common.json b/web/i18n/locales/pl-PL/common.jsonindex ce361332ca1..17fa1ebe6b0 100644--- a/web/i18n/locales/pl-PL/common.json+++ b/web/i18n/locales/pl-PL/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Kopiuj obraz","operation.create": "Utwórz","operation.deSelectAll": "Odznacz wszystkie",+ "operation.decreaseValue": "Zmniejsz wartość","operation.delete": "Usuń","operation.download": "Pobierz","operation.downloadFailed": "Pobieranie nie powiodło się. Proszę spróbować ponownie później.",@@ -180,6 +181,7 @@"operation.imageCopied": "Skopiowany obraz","operation.imageCopyFailed": "Nie można skopiować obrazu. Zamiast tego pobierz go.","operation.in": "w",+ "operation.increaseValue": "Zwiększ wartość","operation.learnMore": "Dowiedz się więcej","operation.log": "Dziennik","operation.more": "Więcej",diff --git a/web/i18n/locales/pt-BR/app.json b/web/i18n/locales/pt-BR/app.jsonindex 705329bb04c..d99f933a2b7 100644--- a/web/i18n/locales/pt-BR/app.json+++ b/web/i18n/locales/pt-BR/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Duplicar Aplicativo","editApp": "Editar Informações","editAppTitle": "Editar Informações do Aplicativo",- "editFailed": "Falha ao atualizar informações do aplicativo","exportApp": "Exportar aplicativo","exportFailed": "Falha ao exportar","exportSecret.description": "Se selecionado, os valores secretos serão incluídos no pacote de aplicativo exportado.",diff --git a/web/i18n/locales/pt-BR/common.json b/web/i18n/locales/pt-BR/common.jsonindex 36be440d75a..03418de4753 100644--- a/web/i18n/locales/pt-BR/common.json+++ b/web/i18n/locales/pt-BR/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Copiar imagem","operation.create": "Criar","operation.deSelectAll": "Desmarcar tudo",+ "operation.decreaseValue": "Diminuir valor","operation.delete": "Excluir","operation.download": "Baixar","operation.downloadFailed": "Download falhou. Por favor, tente novamente mais tarde.",@@ -180,6 +181,7 @@"operation.imageCopied": "Imagem copiada","operation.imageCopyFailed": "Não foi possível copiar a imagem. Baixe-a em vez disso.","operation.in": "em",+ "operation.increaseValue": "Aumentar valor","operation.learnMore": "Saiba mais","operation.log": "Log","operation.more": "Mais",diff --git a/web/i18n/locales/ro-RO/app.json b/web/i18n/locales/ro-RO/app.jsonindex 6c20f9e6902..fce9a5e04f6 100644--- a/web/i18n/locales/ro-RO/app.json+++ b/web/i18n/locales/ro-RO/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Duplică Aplicația","editApp": "Editează Info","editAppTitle": "Editează Info Aplicație",- "editFailed": "Actualizarea informațiilor despre aplicație a eșuat","exportApp": "Exportă aplicația","exportFailed": "Exportul a eșuat","exportSecret.description": "Dacă este selectat, valorile secrete vor fi incluse în pachetul de aplicație exportat.",diff --git a/web/i18n/locales/ro-RO/common.json b/web/i18n/locales/ro-RO/common.jsonindex 4b35f3a8588..906a2dbdd26 100644--- a/web/i18n/locales/ro-RO/common.json+++ b/web/i18n/locales/ro-RO/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Copiere imagine","operation.create": "Creează","operation.deSelectAll": "Deselectați tot",+ "operation.decreaseValue": "Micșorează valoarea","operation.delete": "Șterge","operation.download": "Descarcă","operation.downloadFailed": "Descărcarea a eșuat. Vă rugăm să încercați din nou mai târziu.",@@ -180,6 +181,7 @@"operation.imageCopied": "Imagine copiată","operation.imageCopyFailed": "Imaginea nu a putut fi copiată. Descărcați-o în schimb.","operation.in": "în",+ "operation.increaseValue": "Mărește valoarea","operation.learnMore": "Află mai multe","operation.log": "Jurnal","operation.more": "Mai mult",diff --git a/web/i18n/locales/ru-RU/app.json b/web/i18n/locales/ru-RU/app.jsonindex fe4f87cb39c..f3b852c12e0 100644--- a/web/i18n/locales/ru-RU/app.json+++ b/web/i18n/locales/ru-RU/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Дублировать приложение","editApp": "Редактировать информацию","editAppTitle": "Редактировать информацию о приложении",- "editFailed": "Не удалось обновить информацию о приложении","exportApp": "Экспортировать приложение","exportFailed": "Не удалось экспортировать","exportSecret.description": "Если выбрано, секретные значения будут включены в экспортируемый пакет приложения.",diff --git a/web/i18n/locales/ru-RU/common.json b/web/i18n/locales/ru-RU/common.jsonindex c5c39ee1a6e..c59d738dfbc 100644--- a/web/i18n/locales/ru-RU/common.json+++ b/web/i18n/locales/ru-RU/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Скопировать изображение","operation.create": "Создать","operation.deSelectAll": "Снять выделение со всех",+ "operation.decreaseValue": "Уменьшить значение","operation.delete": "Удалить","operation.download": "Скачать","operation.downloadFailed": "Скачивание не удалось. Пожалуйста, попробуйте еще раз позже.",@@ -180,6 +181,7 @@"operation.imageCopied": "Скопированное изображение","operation.imageCopyFailed": "Не удалось скопировать изображение. Попробуйте скачать его.","operation.in": "в",+ "operation.increaseValue": "Увеличить значение","operation.learnMore": "Узнать больше","operation.log": "Журнал","operation.more": "Больше",diff --git a/web/i18n/locales/sl-SI/app.json b/web/i18n/locales/sl-SI/app.jsonindex d53cf110063..1ae450506c8 100644--- a/web/i18n/locales/sl-SI/app.json+++ b/web/i18n/locales/sl-SI/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Podvoji aplikacijo","editApp": "Uredi informacije","editAppTitle": "Uredi informacije o aplikaciji",- "editFailed": "Posodobitev informacij o aplikaciji ni uspela","exportApp": "Izvozi aplikacijo","exportFailed": "Izvoz ni uspel","exportSecret.description": "Če je izbrano, bodo tajne vrednosti vključene v izvoženi paket aplikacije.",diff --git a/web/i18n/locales/sl-SI/common.json b/web/i18n/locales/sl-SI/common.jsonindex 6dbe49c423a..c7e6ed6a26a 100644--- a/web/i18n/locales/sl-SI/common.json+++ b/web/i18n/locales/sl-SI/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Kopiraj sliko","operation.create": "Ustvari","operation.deSelectAll": "Odberi vse",+ "operation.decreaseValue": "Zmanjšaj vrednost","operation.delete": "Izbriši","operation.download": "Prenesi","operation.downloadFailed": "Prenos ni uspel. Prosim, poskusite znova pozneje.",@@ -180,6 +181,7 @@"operation.imageCopied": "Kopirana slika","operation.imageCopyFailed": "Slike ni bilo mogoče kopirati. Namesto tega jo prenesite.","operation.in": "v",+ "operation.increaseValue": "Povečaj vrednost","operation.learnMore": "Izvedi več","operation.log": "Dnevnik","operation.more": "Več",diff --git a/web/i18n/locales/th-TH/app.json b/web/i18n/locales/th-TH/app.jsonindex 8008813dd34..853d9482496 100644--- a/web/i18n/locales/th-TH/app.json+++ b/web/i18n/locales/th-TH/app.json@@ -41,7 +41,6 @@"duplicateTitle": "ชื่อซ้ำ","editApp": "แก้ไขข้อมูล","editAppTitle": "แก้ไขข้อมูลโปรเจกต์",- "editFailed": "อัปเดตข้อมูลโปรเจกต์ไม่สําเร็จ","exportApp": "ส่งออกแอป","exportFailed": "ส่งออกไม่สำเร็จ","exportSecret.description": "หากเลือก ค่าลับจะรวมอยู่ในแพ็กเกจแอปที่ส่งออก",diff --git a/web/i18n/locales/th-TH/common.json b/web/i18n/locales/th-TH/common.jsonindex 970b6b3f79e..a65f6f43f65 100644--- a/web/i18n/locales/th-TH/common.json+++ b/web/i18n/locales/th-TH/common.json@@ -166,6 +166,7 @@"operation.copyImage": "คัดลอกรูปภาพ","operation.create": "สร้าง","operation.deSelectAll": "ยกเลิกการเลือกทั้งหมด",+ "operation.decreaseValue": "ลดค่า","operation.delete": "ลบ","operation.download": "ดาวน์โหลด","operation.downloadFailed": "ดาวน์โหลดล้มเหลว กรุณาลองอีกครั้งในภายหลัง.",@@ -180,6 +181,7 @@"operation.imageCopied": "ภาพที่คัดลอก","operation.imageCopyFailed": "ไม่สามารถคัดลอกรูปภาพได้ โปรดดาวน์โหลดรูปภาพแทน","operation.in": "ใน",+ "operation.increaseValue": "เพิ่มค่า","operation.learnMore": "ศึกษาเพิ่มเติม","operation.log": "ซุง","operation.more": "มากขึ้น",diff --git a/web/i18n/locales/tr-TR/app.json b/web/i18n/locales/tr-TR/app.jsonindex da86d513f38..b743b8bd484 100644--- a/web/i18n/locales/tr-TR/app.json+++ b/web/i18n/locales/tr-TR/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Uygulamayı Çoğalt","editApp": "Bilgileri Düzenle","editAppTitle": "Uygulama Bilgilerini Düzenle",- "editFailed": "Uygulama bilgileri güncellenemedi","exportApp": "Uygulamayı dışa aktar","exportFailed": "Dışa aktarma başarısız oldu","exportSecret.description": "Seçilirse gizli değerler dışa aktarılan uygulama paketine dahil edilir.",diff --git a/web/i18n/locales/tr-TR/common.json b/web/i18n/locales/tr-TR/common.jsonindex c1a468b2035..ca33f5ed686 100644--- a/web/i18n/locales/tr-TR/common.json+++ b/web/i18n/locales/tr-TR/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Resmi Kopyala","operation.create": "Oluştur","operation.deSelectAll": "Hepsini Seçme",+ "operation.decreaseValue": "Değeri azalt","operation.delete": "Sil","operation.download": "İndir","operation.downloadFailed": "İndirme başarısız oldu. Lütfen daha sonra tekrar deneyin.",@@ -180,6 +181,7 @@"operation.imageCopied": "Kopyalanan görüntü","operation.imageCopyFailed": "Görüntü kopyalanamadı. Lütfen bunun yerine indirin.","operation.in": "içinde",+ "operation.increaseValue": "Değeri artır","operation.learnMore": "Daha fazla bilgi","operation.log": "log","operation.more": "Daha fazla",diff --git a/web/i18n/locales/uk-UA/app.json b/web/i18n/locales/uk-UA/app.jsonindex 4a6570862b5..ab5d46235c5 100644--- a/web/i18n/locales/uk-UA/app.json+++ b/web/i18n/locales/uk-UA/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Дублювати додаток","editApp": "Редагувати інформацію","editAppTitle": "Редагувати інформацію про додаток",- "editFailed": "Не вдалося оновити інформацію про додаток","exportApp": "Експортувати застосунок","exportFailed": "Не вдалося експортувати","exportSecret.description": "Якщо вибрано, секретні значення буде включено до експортованого пакета застосунку.",diff --git a/web/i18n/locales/uk-UA/common.json b/web/i18n/locales/uk-UA/common.jsonindex fb82dd7881c..d3057c7e722 100644--- a/web/i18n/locales/uk-UA/common.json+++ b/web/i18n/locales/uk-UA/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Скопіювати зображення","operation.create": "Створити","operation.deSelectAll": "Вимкнути все",+ "operation.decreaseValue": "Зменшити значення","operation.delete": "Видалити","operation.download": "Завантажити","operation.downloadFailed": "Не вдалося завантажити. Будь ласка, спробуйте ще раз пізніше.",@@ -180,6 +181,7 @@"operation.imageCopied": "Скопійоване зображення","operation.imageCopyFailed": "Не вдалося скопіювати зображення. Спробуйте завантажити його.","operation.in": "В",+ "operation.increaseValue": "Збільшити значення","operation.learnMore": "Дізнатися більше","operation.log": "Журнал","operation.more": "Більше",diff --git a/web/i18n/locales/vi-VN/app.json b/web/i18n/locales/vi-VN/app.jsonindex c4e64b0bcc1..42eb28e3818 100644--- a/web/i18n/locales/vi-VN/app.json+++ b/web/i18n/locales/vi-VN/app.json@@ -41,7 +41,6 @@"duplicateTitle": "Sao chép ứng dụng","editApp": "Chỉnh sửa thông tin","editAppTitle": "Chỉnh sửa thông tin ứng dụng",- "editFailed": "Không thể cập nhật thông tin ứng dụng","exportApp": "Xuất ứng dụng","exportFailed": "Xuất thất bại","exportSecret.description": "Nếu được chọn, các giá trị bí mật sẽ được đưa vào gói ứng dụng đã xuất.",diff --git a/web/i18n/locales/vi-VN/common.json b/web/i18n/locales/vi-VN/common.jsonindex d5401b18dd0..8a15c1a67e1 100644--- a/web/i18n/locales/vi-VN/common.json+++ b/web/i18n/locales/vi-VN/common.json@@ -166,6 +166,7 @@"operation.copyImage": "Sao chép hình ảnh","operation.create": "Tạo mới","operation.deSelectAll": "Bỏ chọn tất cả",+ "operation.decreaseValue": "Giảm giá trị","operation.delete": "Xóa","operation.download": "Tải xuống","operation.downloadFailed": "Tải xuống thất bại. Vui lòng thử lại sau.",@@ -180,6 +181,7 @@"operation.imageCopied": "Hình ảnh sao chép","operation.imageCopyFailed": "Không thể sao chép hình ảnh. Vui lòng tải ảnh xuống.","operation.in": "trong",+ "operation.increaseValue": "Tăng giá trị","operation.learnMore": "Tìm hiểu thêm","operation.log": "Nhật ký","operation.more": "Hơn",diff --git a/web/i18n/locales/zh-Hans/app.json b/web/i18n/locales/zh-Hans/app.jsonindex 4d858f3ef9f..f75a6207699 100644--- a/web/i18n/locales/zh-Hans/app.json+++ b/web/i18n/locales/zh-Hans/app.json@@ -41,7 +41,6 @@"duplicateTitle": "复制应用","editApp": "编辑信息","editAppTitle": "编辑应用信息",- "editFailed": "更新应用信息失败","exportApp": "导出应用","exportFailed": "导出失败","exportSecret.description": "勾选后,Secret 值将包含在导出的应用包中。",diff --git a/web/i18n/locales/zh-Hans/common.json b/web/i18n/locales/zh-Hans/common.jsonindex 633f73a6915..bac989b13ca 100644--- a/web/i18n/locales/zh-Hans/common.json+++ b/web/i18n/locales/zh-Hans/common.json@@ -166,6 +166,7 @@"operation.copyImage": "复制图片","operation.create": "创建","operation.deSelectAll": "取消全选",+ "operation.decreaseValue": "减少数值","operation.delete": "删除","operation.download": "下载","operation.downloadFailed": "下载失败,请稍后重试。",@@ -180,6 +181,7 @@"operation.imageCopied": "图片已复制","operation.imageCopyFailed": "无法复制图片,请尝试下载图片。","operation.in": "在",+ "operation.increaseValue": "增加数值","operation.learnMore": "了解更多","operation.log": "日志","operation.more": "更多",diff --git a/web/i18n/locales/zh-Hant/app.json b/web/i18n/locales/zh-Hant/app.jsonindex aa01e4532f5..f1cc73517f7 100644--- a/web/i18n/locales/zh-Hant/app.json+++ b/web/i18n/locales/zh-Hant/app.json@@ -41,7 +41,6 @@"duplicateTitle": "複製應用","editApp": "編輯資訊","editAppTitle": "編輯應用資訊",- "editFailed": "更新應用資訊失敗","exportApp": "匯出應用","exportFailed": "匯出失敗","exportSecret.description": "勾選後,Secret 值將包含在匯出的應用程式套件中。",diff --git a/web/i18n/locales/zh-Hant/common.json b/web/i18n/locales/zh-Hant/common.jsonindex e92cd0fc72c..18a1d1b08c9 100644--- a/web/i18n/locales/zh-Hant/common.json+++ b/web/i18n/locales/zh-Hant/common.json@@ -166,6 +166,7 @@"operation.copyImage": "複製圖像","operation.create": "建立","operation.deSelectAll": "全不選",+ "operation.decreaseValue": "減少數值","operation.delete": "刪除","operation.download": "下載","operation.downloadFailed": "下載失敗。請稍後再試。",@@ -180,6 +181,7 @@"operation.imageCopied": "複製的圖片","operation.imageCopyFailed": "無法複製圖片,請嘗試下載圖片。","operation.in": "在",+ "operation.increaseValue": "增加數值","operation.learnMore": "瞭解更多","operation.log": "日誌","operation.more": "更多",diff --git a/web/i18n/resources.generated.d.ts b/web/i18n/resources.generated.d.tsindex 7dbdbbe6e8d..912a9374e6c 100644--- a/web/i18n/resources.generated.d.ts+++ b/web/i18n/resources.generated.d.ts@@ -571,7 +571,6 @@ export default interface Resources {duplicateTitle: 'Duplicate App'editApp: 'Edit Info'editAppTitle: 'Edit App Info'- editFailed: 'Failed to update app info'exportApp: 'Export App'exportFailed: 'Export failed''exportSecret.description': 'If selected, secret values will be included in the exported app package.'@@ -1762,6 +1761,7 @@ export default interface Resources {'operation.copyImage': 'Copy Image''operation.create': 'Create''operation.deSelectAll': 'Deselect All'+ 'operation.decreaseValue': 'Decrease value''operation.delete': 'Delete''operation.download': 'Download''operation.downloadFailed': 'Download failed. Please try again later.'@@ -1776,6 +1776,7 @@ export default interface Resources {'operation.imageCopied': 'Image copied''operation.imageCopyFailed': 'Could not copy the image. Please download it instead.''operation.in': 'in'+ 'operation.increaseValue': 'Increase value''operation.learnMore': 'Learn more''operation.log': 'Log''operation.more': 'More'