Skip to content

#4644 disable buttons after clicking confirm on distribution/request#4667

Merged
cielf merged 4 commits into
rubyforgood:mainfrom
jimmyli97:4644-disable-doubleclick
Sep 30, 2024
Merged

#4644 disable buttons after clicking confirm on distribution/request#4667
cielf merged 4 commits into
rubyforgood:mainfrom
jimmyli97:4644-disable-doubleclick

Conversation

@jimmyli97
Copy link
Copy Markdown
Contributor

@jimmyli97 jimmyli97 commented Sep 26, 2024

Resolves #4644

Description

  • Disables all buttons on confirmation modals for distribution/requests after clicking "Yes it's correct"
  • Rspecs for above
  • Makes "Yes it's correct" buttons green

note that I was unable to reproduce any issues as a result of double clicking or clicking on multiple buttons after clicking on "Yes it's correct", so the rspecs check for disabled buttons only

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

passes test suite
manual testing by disabling form submission (set form action to javascript: void(0);) and modal hiding (comment out the hide modal line in assets/controllers/confirmation_controller.js#submitForm()) in dev tools

Screenshots

New color (same color as "Submit Essentials Request"):
image
image

Disabled buttons:
image

@jimmyli97 jimmyli97 marked this pull request as draft September 26, 2024 02:41
@jimmyli97 jimmyli97 force-pushed the 4644-disable-doubleclick branch from 3dfb1cc to d4712b2 Compare September 27, 2024 01:50
@jimmyli97 jimmyli97 changed the title WIP #4644 disable buttons after clicking confirm on distribution/request #4644 disable buttons after clicking confirm on distribution/request Sep 27, 2024
@jimmyli97 jimmyli97 marked this pull request as ready for review September 27, 2024 01:58
@cielf
Copy link
Copy Markdown
Collaborator

cielf commented Sep 28, 2024

@jimmyli97 FYI: We had an urgent fix that required all the senior contributors this week , so we didn't get to look at this. Hopefully this week will go better.

@dorner
Copy link
Copy Markdown
Collaborator

dorner commented Sep 30, 2024

All good on my end! @cielf did you want to take a look?

@cielf
Copy link
Copy Markdown
Collaborator

cielf commented Sep 30, 2024

Will do. Probably tomorrow, maybe Tuesday.

Copy link
Copy Markdown
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

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

LGTM

@cielf cielf merged commit 728568a into rubyforgood:main Sep 30, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 6, 2024

@jimmyli97: Your PR #4644 disable buttons after clicking confirm on distribution/request is part of today's Human Essentials production release: 2024.10.06.
Thank you very much for your contribution!

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.

Disable doubleclick and dialog close on distribution, request confirmations. (Urgent)

3 participants