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

[283] Eval Form: Cancelation modal #315

Merged
merged 9 commits into from
Dec 11, 2024
Merged

Conversation

cpreisinger
Copy link
Contributor

@cpreisinger cpreisinger commented Dec 10, 2024

#283

Adds a new modal for confirming redirects/actions

…-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 cpreisinger self-assigned this Dec 10, 2024
@r-bartlett-gsa r-bartlett-gsa added this to the Sprint 12/17/24 milestone Dec 10, 2024
@r-bartlett-gsa r-bartlett-gsa linked an issue Dec 10, 2024 that may be closed by this pull request
6 tasks
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.

I like the reusability of this for any other modals that just do confirmation with a redirect, but I think for consistency it should be stimulus. Let me know if that doesn't make sense here or you disagree.

app/javascript/confirmation_modal.js Outdated Show resolved Hide resolved
app/javascript/confirmation_modal.js Outdated Show resolved Hide resolved
…-form-cancelation-modal

* 'dev' of github.com:GSA/Challenge_platform:
  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)
…lenge_platform into 283/eval-form-cancelation-modal

* '283/eval-form-cancelation-modal' of github.com:GSA/Challenge_platform:
@cpreisinger cpreisinger requested a review from stepchud December 11, 2024 04:52
@cpreisinger
Copy link
Contributor Author

Codeclimate failure for "similar" code blocks in the javascript. Should we suppress this warning?

Comment on lines +7 to +10
data-modal-confirm-redirect="<%= defined?(confirm_redirect) ? confirm_redirect : '' %>"
data-modal-cancel-redirect="<%= defined?(cancel_redirect) ? cancel_redirect : '' %>"
data-modal-confirm-action="<%= defined?(confirm_action) ? confirm_action : '' %>"
data-modal-cancel-action="<%= defined?(cancel_action) ? cancel_action : '' %>"
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

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.

very 🆒 😎

@stepchud stepchud merged commit a1ae489 into dev Dec 11, 2024
11 checks passed
@stepchud stepchud deleted the 283/eval-form-cancelation-modal branch December 11, 2024 21:19
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.

Eval Form: Cancelation modal
3 participants