Preserve the schedule while its time input is incomplete by rudycelekli · Pull Request #1168 · deeplethe/utopia · GitHub
Skip to content

Preserve the schedule while its time input is incomplete - #1168

Merged
WaylandYang merged 2 commits into
deeplethe:devfrom
rudycelekli:fix/schedule-incomplete-time-day-change-20261009
Oct 10, 2026
Merged

WaylandYang merged 2 commits into
deeplethe:devfrom
rudycelekli:fix/schedule-incomplete-time-day-change-20261009

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Changing weekdays while the time field is incomplete bypasses its input validation and submits a malformed or silently changed cron. Validate the complete time before any daily/weekly emission so the last valid schedule remains intact.

Validation: three actual weekday-handler regressions fail on baseline behavior (exported only for test access); all four invalid/valid controls pass fixed with the state-hook boundary controlled. Typecheck, style guard and production build pass.

Signed-off-by: Rudy Celekli <rudy@gradiahq.com>

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this. Confirmed: a weekday click while the time box held something like 25:00 sent a schedule the server refuses; the guard now uses the same pattern as the input. Checked on top of dev together with the other fixes from this batch that we are taking: typecheck clean, web tests and the affected crate tests pass. Thanks again.

This was referenced Oct 10, 2026
@WaylandYang
WaylandYang merged commit 35ac130 into deeplethe:dev Oct 10, 2026
6 checks passed
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.

2 participants