From 82d2ba473bd385aef1b089b1a00d4b0708921fa6 Mon Sep 17 00:00:00 2001 From: "@daniel-lxs" <57051444+daniel-lxs@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:11:09 +0000 Subject: [PATCH] fix: preserve timezone cadence search --- .../automations/AutomationsSettings.render.client.test.tsx | 5 +++++ .../settings/automations/CustomAutomationsSection.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/settings/automations/AutomationsSettings.render.client.test.tsx b/apps/web/src/components/settings/automations/AutomationsSettings.render.client.test.tsx index 643204d66..0aaa6d5dd 100644 --- a/apps/web/src/components/settings/automations/AutomationsSettings.render.client.test.tsx +++ b/apps/web/src/components/settings/automations/AutomationsSettings.render.client.test.tsx @@ -1543,6 +1543,11 @@ describe('AutomationsSettings', () => { 'Daily at 09:00 AM (America/New York), in Production →', ), ).toBeInTheDocument(); + fireEvent.change( + screen.getByRole('textbox', { name: 'Search automations' }), + { target: { value: 'America/New York' } }, + ); + expect(screen.getByText('Daily scan')).toBeInTheDocument(); fireEvent.click( screen.getByRole('button', { name: 'Configure Daily scan' }), ); diff --git a/apps/web/src/components/settings/automations/CustomAutomationsSection.tsx b/apps/web/src/components/settings/automations/CustomAutomationsSection.tsx index db6579775..ba9b7bb98 100644 --- a/apps/web/src/components/settings/automations/CustomAutomationsSection.tsx +++ b/apps/web/src/components/settings/automations/CustomAutomationsSection.tsx @@ -592,7 +592,7 @@ export function CustomAutomationsSection({ [ row.name, row.prompt, - cadenceLabel(row), + cadenceLabel(row, schedulingTimeZone), environmentName, destinationName, destinationLabel,