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

[275-FIX] Fix for max input values for scale types #288

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

cpreisinger
Copy link
Contributor

@cpreisinger cpreisinger commented Nov 25, 2024

For this PR I ended up expanding all the accordions and just blanking all points/weights if two conditions were met

  • The user was swapping to a weighted scale type
  • The user had at least one criteria where the points/weight was > 100
    A confirmation alert also shows up currently and prevents scale type switching if it isn't confirmed

An additional update on this PR was changing the way the inputs worked for points/weight to validate their length on blur using reportValidity HTML5 validations. This was to prevent being able to temporarily circumvent min and max values by typing

Possible alteration to make it more inline with the initial comment if we want would be:

  • Make it always expand all criteria after a scale change (this would allow normal HTML5 validations to trigger)
  • Don't blank out values

#275

@cpreisinger cpreisinger self-assigned this Nov 25, 2024
@r-bartlett-gsa r-bartlett-gsa added this to the Sprint 12/03/24 milestone Nov 25, 2024
@r-bartlett-gsa r-bartlett-gsa linked an issue Nov 25, 2024 that may be closed by this pull request
7 tasks
…com:GSA/Challenge_platform into 275-fix/evaluation-form-weight-points-limit

* '275-fix/evaluation-form-weight-points-limit' of github.com:GSA/Challenge_platform:
  [183] Rubocop: enable documentation cop (#282)
  230 Dependent destroy for assignment evaluations
  230 Add evaluation association to assignment
  update schema annotation
  230 Fix evaluation submission assignment spec
  230 Remove status, add submission assignment
  230 Add submissions and constraints to evalutions
  230 Fix codeclimate comment validation errors
  230 Initial commit of evaluation and score backend
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.

Evaluation Form: Limit criteria points / weight field input to 4 digits
3 participants