GSA / Challenge_platform

The GSA Challenge.gov platform for managing challenges
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

Evaluation Form: Limit criteria points / weight field input to 4 digits #275

Open stepchud opened 2 weeks ago

stepchud commented 2 weeks ago

As a user, I want to enter reasonable numbers for criteria points / weight.

Based on Feedback from QA, this number is not limited in the UI and it can cause errors. We should restrict the input to 4 digits (<= 9999) and <= 100 for weighted scale.

Technical Notes

Could use HTML input max attribute here

Acceptance Criteria

Disregard the following if this work does not include any UI changes

Out of Scope

stepchud commented 1 week ago

There is still an issue with the collapsible criteria accordion.

Steps to reproduce:

  1. Create a form with Point Scale Type
  2. Add a criteria worth more than 100 points
  3. Collapse the criteria
  4. Switch the form to Weighted Scale Type

Expected:

Actual:

stepchud commented 1 week ago

☝️ @cpreisinger Can you take a look at the issue in the comment above?