Skip to content

Feature Add favicon - #1149

Merged
lodewiges merged 4 commits into
stagingfrom
feature/add-favicon
Dec 7, 2025
Merged

Feature Add favicon#1149
lodewiges merged 4 commits into
stagingfrom
feature/add-favicon

Conversation

@lodewiges

@lodewiges lodewiges commented Dec 7, 2025

Copy link
Copy Markdown
Contributor

i think this broke some time accidently

Summary by CodeRabbit

  • New Features

    • Added a visible instruction to include your name and a payment reference for saldo top-ups.
    • When online payments are configured, a link is shown to initiate a saldo top-up via iDEAL.
  • Chores

    • Added a favicon for browser tabs and bookmarks.

✏️ Tip: You can customize this high-level summary in your review settings.

Copilot AI review requested due to automatic review settings December 7, 2025 00:11
@coderabbitai

coderabbitai Bot commented Dec 7, 2025

Copy link
Copy Markdown

Warning

Rate limit exceeded

@lodewiges has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 10 minutes and 24 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between af360d9 and 934b543.

📒 Files selected for processing (1)
  • app/views/layouts/application.html.erb (1 hunks)

Note

Other AI code review bot(s) detected

CodeRabbit 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.

Walkthrough

Added a favicon link to the application layout and updated the user profile view to display a payment reference line plus a conditional iDEAL payment link when a Mollie API key is configured.

Changes

Cohort / File(s) Summary
Layout asset
app/views/layouts/application.html.erb
Added a <link rel="icon" href="/favicon.ico"> tag in the head to reference the favicon.
User profile / Payment link
app/views/users/show.html.erb
Inserted a static payment reference line ("include name and 'Inleg Zatladder' as a payment reference") and a conditional block that renders an iDEAL payment link when a Mollie API key is present.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Potential review focuses:

  • Verify the Mollie API key check and resulting link URL/params are correct and safe.
  • Confirm HTML escaping/i18n for the added text and link.
  • Ensure favicon path and rel attributes meet project conventions.

Possibly related PRs

Poem

🐰 A tiny token, bright and neat,
On tabs it hops with nimble feet.
A reference line and a payment gate,
Hop in, click through — your saldo’s fate! 🥕

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is largely incomplete and does not follow the required template. It lacks summary of changes, testing information, and proper context. Provide a complete description following the template: summarize changes, include testing steps, note any breaking changes, and explain the favicon addition and payment reference updates.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'Feature Add favicon' accurately describes the main change: adding a favicon link to the application layout.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 restores favicon support that was accidentally broken. The changes add standard favicon and icon files to the public directory and reference the favicon in the application layout.

Key Changes:

  • Added favicon.ico, icon.png, and apple-touch-icon files to support various platforms
  • Updated application layout to include favicon link tag

Reviewed changes

Copilot reviewed 1 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
app/views/layouts/application.html.erb Added favicon_link_tag to reference the favicon.ico file
public/favicon.ico Added standard favicon file for browser tab icons
public/icon.png Added PNG icon file for modern browsers and platforms
public/apple-touch-icon.png Added Apple touch icon for iOS home screen bookmarks
public/apple-touch-icon-precomposed.png Added precomposed Apple touch icon (likely a symlink or copy)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/views/layouts/application.html.erb Outdated
@codecov

codecov Bot commented Dec 7, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.22%. Comparing base (97d2fd7) to head (934b543).
⚠️ Report is 2 commits behind head on staging.

Additional details and impacted files
@@           Coverage Diff            @@
##           staging    #1149   +/-   ##
========================================
  Coverage    77.22%   77.22%           
========================================
  Files           54       54           
  Lines         1348     1348           
========================================
  Hits          1041     1041           
  Misses         307      307           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 876b71d and af360d9.

📒 Files selected for processing (1)
  • app/views/users/show.html.erb (1 hunks)

Comment on lines +126 to +132
<%= 'onder vermelding van je naam en \'Inleg Zatladder\'.' %>

<% if Rails.application.config.x.mollie_api_key.present? %>
<%= link_to add_payments_path do %>
<%= 'Klik hier om je saldo over te maken via iDEAL ' %>
<% end %>
<% end %>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Payment instruction changes don't match PR title "Add favicon".

The PR is titled "Add favicon" and the AI summary mentions favicon changes to app/views/layouts/application.html.erb, but that file wasn't provided for review. The changes here add payment reference instructions and an iDEAL link, which seem unrelated to favicon functionality. Please verify that the correct files are included in this PR or update the title to reflect the actual scope.

Additionally, the ERB string literals on lines 126 and 130 are redundant—plain text works fine in ERB templates without wrapping strings in <%= %> tags. Line 130 also has a trailing space.

Apply this diff to simplify the markup:

-                  <%= 'onder vermelding van je naam en \'Inleg Zatladder\'.' %>
+                  onder vermelding van je naam en 'Inleg Zatladder'.

                   <% if Rails.application.config.x.mollie_api_key.present? %>
                     <%= link_to add_payments_path do %>
-                      <%= 'Klik hier om je saldo over te maken via iDEAL ' %>
+                      Klik hier om je saldo over te maken via iDEAL
                     <% end %>
                   <% end %>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<%= 'onder vermelding van je naam en \'Inleg Zatladder\'.' %>
<% if Rails.application.config.x.mollie_api_key.present? %>
<%= link_to add_payments_path do %>
<%= 'Klik hier om je saldo over te maken via iDEAL ' %>
<% end %>
<% end %>
onder vermelding van je naam en 'Inleg Zatladder'.
<% if Rails.application.config.x.mollie_api_key.present? %>
<%= link_to add_payments_path do %>
Klik hier om je saldo over te maken via iDEAL
<% end %>
<% end %>
🤖 Prompt for AI Agents
In app/views/users/show.html.erb around lines 126 to 132, the changes add
payment instruction text and an iDEAL link that don't match the PR title "Add
favicon"—verify the PR scope and either update the title/description to include
payment changes or move these edits to a separate PR and include the actual
favicon changes (likely in app/views/layouts/application.html.erb). Also
simplify the ERB markup by replacing "<%= 'onder vermelding van je naam en
\'Inleg Zatladder\'.' %>" with plain text (no ERB tag), replace the link text
"<%= 'Klik hier om je saldo over te maken via iDEAL ' %>" with plain text
without the trailing space, and keep the conditional around link_to as-is;
ensure no extra whitespace remains.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@lodewiges
lodewiges merged commit ad53e7d into staging Dec 7, 2025
6 checks passed
@lodewiges
lodewiges deleted the feature/add-favicon branch December 7, 2025 00:39
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.

2 participants