Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent saving limit without weekday/time-of-day completed #1206

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

sloanelybutsurely
Copy link
Contributor

Adds a validation to the limit changeset to ensure at least one of the limit day of weeks is active. Also handles showing this in the UI either on submission or if the inputs of the day of weeks have changed.

🏹🐛 Users can save a limit with no days selected

Reviewer Checklist

  • Meets ticket's acceptance criteria
  • Any new or changed functions have typespecs
  • Tests were added for any new functionality (don't just rely on Codecov)
  • This branch was deployed to the staging environment and is currently running with no unexpected increase in warnings, and no errors or crashes.

@sloanelybutsurely sloanelybutsurely requested a review from a team as a code owner April 4, 2025 16:53
@sloanelybutsurely sloanelybutsurely requested review from dks-mbta and removed request for a team April 4, 2025 16:53
Adds a validation to the limit changeset to ensure at least one of the
limit day of weeks is active. Also handles showing this in the UI either
on submission or if the inputs of the day of weeks have changed.

[🏹🐛 Users can save a limit with no days selected](https://app.asana.com/0/584764604969369/1209887002402269/f)
@sloanelybutsurely sloanelybutsurely force-pushed the sloane/push-rpmyxymnvsoy branch from cbc8475 to 5c8373a Compare April 7, 2025 14:03
@sloanelybutsurely sloanelybutsurely merged commit b44ae65 into master Apr 7, 2025
10 checks passed
@sloanelybutsurely sloanelybutsurely deleted the sloane/push-rpmyxymnvsoy branch April 7, 2025 14:18
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