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

feat: donation banner 2024 integration #9422

Merged
merged 7 commits into from
Nov 29, 2023
Merged

Conversation

Valimp
Copy link
Collaborator

@Valimp Valimp commented Nov 28, 2023

What

Integration of the new donation banner for 2024

Screenshot

Capture d’écran 2023-11-28 à 10 27 37

Related issue(s) and discussion

@stephanegigandet @raphael0202

@Valimp Valimp requested a review from a team as a code owner November 28, 2023 09:31
@github-actions github-actions bot added CSS Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. 🎁 donations 🌐 Translations labels Nov 28, 2023
@teolemon teolemon requested a review from galnaf November 28, 2023 10:36
msgstr ""

msgctxt "donation_text_2023_tertiary"
msgid "The food revolution starts with you !"
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no space before ! in English

Suggested change
msgid "The food revolution starts with you !"
msgid "The food revolution starts with you!"

<p class="donation-banner__secondary-text">[% lang("donation_text_2023_secondary") %]</p>
<p class="donation-banner__tertiary-text">[% lang("donation_text_2023_tertiary") %]</p>
</div>
<a class="donation-banner__donate" href="https://fr.openfoodfacts.org/faire-un-don-a-open-food-facts?utm_source=off&utf_medium=web&utm_campaign=donate-2023-a&utm_term=en-text-button">Donate</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use [% link %] in there I think, we can't hardcode the fr address

@stephanegigandet
Copy link
Contributor

Is half-logo.svg slightly rotated on purpose?

@Valimp
Copy link
Collaborator Author

Valimp commented Nov 28, 2023

there is no rotation on half-logo.svg.
This svg is cut at an angle. I just pick it on the canvas.

@Valimp
Copy link
Collaborator Author

Valimp commented Nov 29, 2023

@stephanegigandet I think it's all good for the pull request

@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4db37c4) 48.85% compared to head (55782e7) 48.84%.
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9422      +/-   ##
==========================================
- Coverage   48.85%   48.84%   -0.01%     
==========================================
  Files          66       66              
  Lines       20376    20380       +4     
  Branches     4889     4891       +2     
==========================================
  Hits         9955     9955              
- Misses       9162     9166       +4     
  Partials     1259     1259              

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

<p class="donation-banner__secondary-text">[% lang("donation_text_2023_secondary") %]</p>
<p class="donation-banner__tertiary-text">[% lang("donation_text_2023_tertiary") %]</p>
</div>
<a class="donation-banner__donate" href="[% link %]?utm_source=off&utf_medium=web&utm_campaign=donate-2023-a&utm_term=en-text-button">Donate</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

"Donate" should be a translatable string

<p class="donation-banner-footer__secondary-text">[% lang("donation_text_2023_secondary") %]</p>
<p class="donation-banner-footer__tertiary-text">[% lang("donation_text_2023_tertiary") %]</p>
</div>
<a class="donation-banner-footer__donate" href="https://fr.openfoodfacts.org/faire-un-don-a-open-food-facts?utm_source=off&utf_medium=web&utm_campaign=donate-2023-a&utm_term=en-text-button">Donate</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

There's still an hardcoded link, + a "Donate" string

Copy link

sonarcloud bot commented Nov 29, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@stephanegigandet stephanegigandet left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@stephanegigandet stephanegigandet enabled auto-merge (squash) November 29, 2023 13:25
@stephanegigandet stephanegigandet merged commit 7f9331b into main Nov 29, 2023
14 checks passed
@stephanegigandet stephanegigandet deleted the donation-banner branch November 29, 2023 13:52
@alexgarel
Copy link
Member

Kudos @Valimp :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS 🎁 donations Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. 🌐 Translations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New donation banner for 2024
4 participants