background-agents icon indicating copy to clipboard operation
background-agents copied to clipboard

Expand timezone selection in automations

Open open-inspect opened this issue 8 months ago • 1 comments

Problem

The automations UI only exposes a short hard-coded list of timezones, even though the backend accepts any valid IANA timezone. This blocks users whose local or desired timezone is not included in the current shortlist.

Why this is a good first issue

This is a meaningful UX improvement with a fairly contained scope in the web app. It does not require deep backend changes because timezone validation already exists server-side.

Current behavior

  • The automation form hard-codes COMMON_TIMEZONES in packages/web/src/components/automations/automation-form.tsx:16.
  • The control plane already accepts any valid IANA timezone in packages/control-plane/src/routes/automations.ts:123.

Suggested direction

Update the automations timezone picker so users can choose from a fuller set of valid IANA timezones instead of the current hard-coded shortlist. A good solution should keep the picker usable and searchable while making it possible to select any valid timezone.

Acceptance criteria

  • Users can select timezones beyond the current COMMON_TIMEZONES list.
  • The UI remains searchable and reasonably easy to use.
  • The selected timezone continues to submit successfully to the existing backend validation.
  • Any related tests are updated if needed.

Files to start with

  • packages/web/src/components/automations/automation-form.tsx
  • packages/control-plane/src/routes/automations.ts

open-inspect avatar Mar 19 '26 07:03 open-inspect

Hi, I'd like to take this one.

The issue is that the automations UI only exposes a short hard-coded timezone list (COMMON_TIMEZONES), but the backend accepts any valid IANA timezone.

My plan is to replace the hard-coded COMMON_TIMEZONES list in automation-form.tsx with Intl.supportedValuesOf('timeZone') to provide the full IANA timezone set, while keeping the existing searchable picker UX.

Please let me know if you'd prefer a different approach.

Bingtagui404 avatar Mar 19 '26 09:03 Bingtagui404