Add validation to number of seats input
What does this MR do and why?
Related to #444480
Adds input field validation for both maximum seat limits and minimum seat limit.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Maximum exceeded | Not enough seats |
---|---|
How to set up and validate locally
- Navigate to a purchase flow, for example
http://localhost:3000/-/subscriptions/new?plan_id=2c92c0f876e0f4cc0176e176a08f1b70
- Attempt to type 0 seats and see the error message
- Modify this line to have a set maximum seat value (ex: 20)
- Change the seats to exceed your maximum seats and see the error message
- Other integer values should not render error messages
Edited by Laura Callahan