From 44242d03b4fd25b28ad20ec3f2d82f876385b969 Mon Sep 17 00:00:00 2001
From: yyh <92089059+lyzno1@users.noreply.github.com>
Date: Wed, 29 Apr 2026 15:56:36 +0800
Subject: [PATCH 1/2] fix(web): disable pnpm dependency checks during Docker
build (#35686)
---
packages/dify-ui/src/toast/__tests__/index.spec.tsx | 12 +-----------
web/Dockerfile | 1 +
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/packages/dify-ui/src/toast/__tests__/index.spec.tsx b/packages/dify-ui/src/toast/__tests__/index.spec.tsx
index 1e302618c5..e02f6828ac 100644
--- a/packages/dify-ui/src/toast/__tests__/index.spec.tsx
+++ b/packages/dify-ui/src/toast/__tests__/index.spec.tsx
@@ -125,19 +125,9 @@ describe('@langgenius/dify-ui/toast', () => {
expect(onClose).toHaveBeenCalledTimes(1)
})
- it('should respect custom timeout values including zero', async () => {
+ it('should keep zero-timeout toasts persistent', async () => {
const screen = await render()
- toast('Custom timeout', {
- timeout: 1000,
- })
- await expect.element(screen.getByText('Custom timeout')).toBeInTheDocument()
-
- await vi.advanceTimersByTimeAsync(1000)
- await vi.waitFor(() => {
- expect(document.body).not.toHaveTextContent('Custom timeout')
- })
-
toast('Persistent', {
timeout: 0,
})
diff --git a/web/Dockerfile b/web/Dockerfile
index 8bf016c1ba..868a26b1ca 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -41,6 +41,7 @@ COPY . .
WORKDIR /app/web
ENV NODE_OPTIONS="--max-old-space-size=4096"
+ENV pnpm_config_verify_deps_before_run=false
RUN pnpm build && pnpm build:vinext
From 35bfe26a3a8c566f020254630f39d490ff835948 Mon Sep 17 00:00:00 2001
From: JzoNg
Date: Wed, 29 Apr 2026 16:07:42 +0800
Subject: [PATCH 2/2] fix(web): default metrics
---
.../components/metric-section/builtin-metric-card.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/app/components/evaluation/components/metric-section/builtin-metric-card.tsx b/web/app/components/evaluation/components/metric-section/builtin-metric-card.tsx
index ed1ec8f4bf..eb661e3a14 100644
--- a/web/app/components/evaluation/components/metric-section/builtin-metric-card.tsx
+++ b/web/app/components/evaluation/components/metric-section/builtin-metric-card.tsx
@@ -54,7 +54,7 @@ const BuiltinMetricCard = ({
-
{metric.label}
+
{metric.label}