Skip to content

Fix automation schedule range connectors - #5102

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-missing-range-connector-in-automation-schedu-thr_u9bd3yzyar
Oct 7, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-missing-range-connector-in-automation-schedu-thr_u9bd3yzyar

Conversation

@ymichael

@ymichael ymichael commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Cron humanizer post-processing replaced "and" with a comma, then stripped commas after AM/PM. This removed connectors from hour ranges and separate times in the Automations list and detail page.

What changed

Format time ranges as 9AM-5:59PM before conjunction cleanup and preserve commas between separate times, such as 9AM, 5PM Mon, Wed, Fri. Add formatter cases for ranges, multiple times, and other schedules.

How you verified

  • Four hour-range cases and two separate-time cases failed before their respective fixes and passed afterward.
  • All 20 formatter tests passed: pnpm exec turbo run test --filter=bb-plugin-automations -- src/format-schedule.test.ts.
  • pnpm exec turbo run typecheck lint --filter=bb-plugin-automations passed; lint reported five existing warnings and no errors.
  • Reviewed before/after Chromium screenshots of the actual list row and detail components in Ladle at 390px and 1280px widths. The temporary range fixture was restored after capture.
  • git diff --check passed.

AGENT GENERATED

## Human comments

## What was wrong

Cron humanizer post-processing converted "and" to a comma and then
removed the comma after AM/PM. Hour ranges and lists of separate times consequently lost their
connectors in the Automations list and detail page.

## What changed

Convert "between X and Y" time ranges to "X-Y" before the general
conjunction cleanup. Keep existing formatting for other schedules and
preserve commas between separate times, and add hour-range and non-range cases to the format-schedule tests.

## How you verified

- Four hour-range cases failed on the original formatter and passed
  after the fix. Two separate-time cases also failed before their repair
  and passed after it; all 20 format-schedule tests passed with
  `pnpm exec turbo run test --filter=bb-plugin-automations -- src/format-schedule.test.ts`.
- `pnpm exec turbo run typecheck lint --filter=bb-plugin-automations`
  passed; lint reported five existing warnings and zero errors.
- Reviewed before/after Chromium screenshots at 390px and 1280px in
  Ladle using the actual list row and detail components with a temporary
  range fixture. Restored the story after capture.
- `git diff --check` passed.

> AGENT GENERATED
@ymichael
ymichael merged commit 43a8bf4 into main Oct 7, 2026
37 checks passed
@ymichael
ymichael deleted the bb/fix-missing-range-connector-in-automation-schedu-thr_u9bd3yzyar branch October 7, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant