-
Notifications
You must be signed in to change notification settings - Fork 3
Introduce Automatic payments #1150
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
base: staging
Are you sure you want to change the base?
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughA single view template is updated to display additional instruction text for bank transfers and add a conditional link to an iDEAL payment gateway. The changes include a new line instructing users to mention their name and organization reference, and a link that appears when the Mollie API is configured. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes No complex logic or structural changes. Single template file with straightforward text addition and simple conditional rendering based on API configuration presence. Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Pull request overview
This PR re-adds the Mollie payment link functionality to the user profile page, allowing users to add credit to their account via iDEAL payment when the Mollie API is configured.
- Adds additional instruction text for manual bank transfer payments
- Re-introduces the iDEAL payment link when Mollie API key is configured
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/views/users/show.html.erb (1)
126-132: Simplify string quoting andlink_tousage in the new Mollie/iDEAL blockThe new content works as-is, but can be made a bit clearer/cleaner:
- Line 126: using single quotes with an escaped
'hurts readability; switching to double quotes avoids the escape.- Lines 128–131: the block-form
link_tois overkill for static text and you have a trailing space in the string.A more concise version:
<%= "Dat kan naar #{Rails.application.config.x.company_iban} t.n.v. #{Rails.application.config.x.company_name}" %> <%= "onder vermelding van je naam en 'Inleg Zatladder'." %> <% if Rails.application.config.x.mollie_api_key.present? %> <%= link_to 'Klik hier om je saldo over te maken via iDEAL', add_payments_path %> <% end %>This keeps behavior identical while improving readability and removing the stray trailing space.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
app/views/users/show.html.erb(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Build
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## staging #1150 +/- ##
===========================================
- Coverage 77.62% 72.49% -5.14%
===========================================
Files 54 55 +1
Lines 1341 1487 +146
===========================================
+ Hits 1041 1078 +37
- Misses 300 409 +109 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Checklist
origin/staging(git checkout staging ; git pull ; bundle exec rails db:reset ; git checkout BRANCH ; bundle exec rails db:migrate).Summary
Shortly summarize the changes in this pull request. Does it concern changes in the UI, add some screenshots. Are there related issues solved? Please, mention them (with 'fixes #xyz', see https://github.com/blog/1506-closing-issues-via-pull-requests), so they can be resolved automatically when merging this pull request.
Other information
If there is some other relevant and important information for this pull request, mention it here. For example, related pull requests or newly introduced conventions, packages or other dependencies.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.