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

Merged
merged 7 commits into from
Dec 10, 2024

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
@cpreisinger cpreisinger requested a review from stepchud November 25, 2024 17:04
…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
Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

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

LGTM

@stepchud stepchud merged commit e884e22 into dev Dec 10, 2024
11 checks passed
@stepchud stepchud deleted the 275-fix/evaluation-form-weight-points-limit branch December 10, 2024 00:36
cpreisinger added a commit that referenced this pull request Dec 10, 2024
…-form-cancelation-modal

* 'dev' of github.com:GSA/Challenge_platform: (52 commits)
  [275-FIX] Fix for max input values for scale types (#288)
  Update app/views/evaluator_submission_assignments/_unassigned_submission_row.html.erb
  Update .codeclimate.yml rubocop name
  Disable rubocop check on flash before render
  quick syntax fix
  179 | Adjust sorting scope and evaluation status
  quick syntax fix
  update status colors
  179 | Adjust sorting scope and evaluation status
  Rename stat summary for evaluation submission assignments
  179 | Add tests, update statuses, and colors
  179 | Update flash, closing date, and error status
  179 | Update tests for display scores
  179 | Remove unused argument in display_score
  179 | Update tests wip
  179 | Update ordered by status query
  179 | Update the display score to check for assignment completion
  179 | Update js to use assignment
  179 | Update route for evaluation submission assignments
  77 | Update recused conditional
  ...
cpreisinger added a commit that referenced this pull request Dec 10, 2024
…SA/Challenge_platform into 249/protect-eval-form-after-start-date

* '249/protect-eval-form-after-start-date' of github.com:GSA/Challenge_platform: (53 commits)
  249 Protect eval form updates after start_date
  [275-FIX] Fix for max input values for scale types (#288)
  Update app/views/evaluator_submission_assignments/_unassigned_submission_row.html.erb
  Update .codeclimate.yml rubocop name
  Disable rubocop check on flash before render
  quick syntax fix
  179 | Adjust sorting scope and evaluation status
  quick syntax fix
  update status colors
  179 | Adjust sorting scope and evaluation status
  Rename stat summary for evaluation submission assignments
  179 | Add tests, update statuses, and colors
  179 | Update flash, closing date, and error status
  179 | Update tests for display scores
  179 | Remove unused argument in display_score
  179 | Update tests wip
  179 | Update ordered by status query
  179 | Update the display score to check for assignment completion
  179 | Update js to use assignment
  179 | Update route for evaluation submission assignments
  ...
cpreisinger added a commit that referenced this pull request Dec 11, 2024
…enge_platform into 237/eval-form-phase-uniqueness

* '237/eval-form-phase-uniqueness' of github.com:GSA/Challenge_platform: (56 commits)
  237 Add unique phase constraint on eval forms
  Bump rubocop from 1.68.0 to 1.69.1
  Bump selenium-webdriver from 4.26.0 to 4.27.0
  [304] Collapsible Column Layout (#310)
  [275-FIX] Fix for max input values for scale types (#288)
  Update app/views/evaluator_submission_assignments/_unassigned_submission_row.html.erb
  Update .codeclimate.yml rubocop name
  Disable rubocop check on flash before render
  quick syntax fix
  179 | Adjust sorting scope and evaluation status
  quick syntax fix
  update status colors
  179 | Adjust sorting scope and evaluation status
  Rename stat summary for evaluation submission assignments
  179 | Add tests, update statuses, and colors
  179 | Update flash, closing date, and error status
  179 | Update tests for display scores
  179 | Remove unused argument in display_score
  179 | Update tests wip
  179 | Update ordered by status query
  ...
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