-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add Donation modal #2972
Add Donation modal #2972
Conversation
dem4ron
commented
Sep 22, 2022
•
edited
Loading
edited
app/css/ui-kit/filters.css
Outdated
|
||
.filter-shadow-huge { | ||
-webkit-filter: drop-shadow(0px 4px 128px rgba(79, 114, 205, 0.8)); | ||
filter: drop-shadow(0px 4px 128px rgba(79, 114, 205, 0.8)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do this via tailwind, which removes the need for the extra webkit variant: https://tailwindcss.com/docs/drop-shadow#arbitrary-values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was actually unused. It might have been used at some point in this PR, but upon doing a grep, I couldn't find any references to it. I've removed it.
@iHiD about modal a11y: |
|
app/javascript/components/modals/student/finish-mentor-discussion-modal/DonationStep.tsx
Outdated
Show resolved
Hide resolved
@dem4ron @ErikSchierboom Can we get this green pls (might just need a rebase). Then can one of you update the OP so I know what I need to do get it over the line. Thanks. |
My latest commit should have fixed the failing test. |
…r, lazyload donation form
601ee96
to
703996d
Compare
* Reorganise MentoringSession's donation data * Update mentoring_session_test * Pass down camelized data * Pass donation data down to sidepanel modal initiator
@dem4ron This just needs the "don't close when clicking the background" thing setting and then I think your bit is done. |
And also just check my comments. |
* Change button text, remove static booleans * Change default values * Update celebration text * Update celebration step * Update urls * Use confirmParamsReturnUrl everywhere * Add successfulDonationStep * Update xstate * Change width of SuccessfulDonationStep's container modal * Change nyan cat height * Change continue text * Apply suggestions from code review * Update test * Remove recaptcha sitekey * Change text in test * Fix more tests
@@ -17,7 +17,7 @@ def to_s | |||
recaptcha_site_key: ENV.fetch('RECAPTCHA_SITE_KEY', Exercism.secrets.recaptcha_site_key), | |||
links: { | |||
settings: Exercism::Routes.donations_settings_url, | |||
donate: Exercism::Routes.donate_url | |||
confirm_params_return_url: Exercism::Routes.donate_url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely sure about the name. What is this link used for? We usually don't use a _url
suffix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This goes into stripe.confirmPayment.options.confirmParams.[returnUrl | return_url]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably rename it slightly to something like donate_return_url
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm ok with the confirm_params_return
bit as it's in the scope of the form, but agree it probably shouldn't have the _url
prefix. Pragmatically I don't care if its hard to change it, but if it's just a couple of renames it would be better to be consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but the reason I chose this name is because this is exactly what the API accepts. so it is pretty specific.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the reason I was suggesting donate_return_url
(actually, redirect_to_after_donation
or something like that might be better) is because it isn't coupled to Stripe. I feel that's an implementation detail 🤷
app/javascript/components/modals/student/FinishMentorDiscussionModal.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>