Skip to content

T3011 mc2 visual improvements#290

Closed
Danielgergely wants to merge 12 commits into14.0from
T3011-mc2-visual-improvements
Closed

T3011 mc2 visual improvements#290
Danielgergely wants to merge 12 commits into14.0from
T3011-mc2-visual-improvements

Conversation

@Danielgergely
Copy link
Copy Markdown
Member

@Danielgergely Danielgergely commented Feb 23, 2026

A lots of small changes, so bear with me :)

Home Page

### Title

  • Increase Welcome to MyCompassion:

Before:
Welcome to
After:
Welcome to

Dashboard Cards

  • Improved responsivity
  • Changed 'Give' color to white
  • Removed hard to distinguish icons from buttons

Before:
You are sponsoring
After:
image

My Sponsorships page

  • Tweaked child card background color
  • Applied uniform border radius and padding
  • Increased 'Pending activation' like texts size
  • Made whole card clickable (important for mobile users)

Before:
Bimenyimana
After:
Bimenyimana

Child page

  • Changed the color and size of the dates in the timeline

Before:
16022026
After:
16022026

  • Removed excessive space from gift cards in the timeline

Before:
Birthday gift
After:
Birthday gift

  • Tweaked the colors of the birthday and start sponsorship icons

Before:
Pasted Graphic 4
Pasted Graphic 12
After:
Pasted Graphic 3
Pasted Graphic 11

Letters page

  • Improved the way the letter cards look like by adding some padding, background color and tweaking the contrast of the texts

Before:
To Mishell
After:
To Mishell

  • Removed hard to distinguish icon from the "Write a letter to a child button"

Before:
Write a letter to a child
After:
Write a letter to a child

Gift Details page

  • Added a slight margin to the icons on the details page

Before:
The reality
After:
The reality

Gift basket page

  • Added uniform border radius and padding
  • Tweaked background color
  • Tweaked colors
  • Removed left border
  • Tweaked color of total

Before:
Clean Water
After:
image

  • Fixed the icon alignment in the 2025 themed button (centered it vertically and horizontally)

Before:
+ Add a gift
After:
+ Add a gift

My donations page

  • Added uniform border radius and padding to the donation items
  • Made the child sponsorship card clickable
  • Removed hard to distinguish icon and slightly adapted the text
  • Removed left border (the image below shows an alternative with a '25px border left' option)

Before:
Mishell
After:
Mishell
(Alternate option):
for Mother and child program

Footer

  • Centered the address icon vertically

Before:
Compassion Compassion Suisse Rue
After:
Compassion Compassion Suisse

- FIX: increased the size of the MyCompassion text
- FIX: the vignettes now scale properly between mobile and desktop
- FIX: removed small hard-to-view icons from call to action buttons
- FIX: changed new letter button from low-green to low-blue (to match vignette and main action button color)
- FIX: changed give text and icon color to pure-white
- FIX: changed bg color to low-eggshell
- FIX: increased size of pending indicator (was too small and difficult to read)
- FIX: added max-size to cards with auto margin
- FIX: added padding to parent container
- FIX: increased icon size
- FIX: removed margin from gift price
- FIX: changed date color and increased its size
- FIX: changed birthday and start sponsorship icon colors
- FIX: added background to letters
- FIX: added padding to parent for better display
- FIX: added uniform border radius and padding to donation item container
- FIX: added uniform border radius and padding to gifts total container
- FIX: child profile card is now clickable
- FIX: donation item is now clickable (optional) while making sure that the secondary link is doesn't propagate the click event to the parent and executes separate action
- REFACTOR: greatly simplified SponsorhipDonationItem
- FIX: removed icon from write a letter to a child button
- FIX: added top margin to donation detail icons
- FIX: tweaked colors of gift package items
- FIX: icons in the themed button are now centered vertically and horizontally
- FIX: removed align-items-lg-start from the address icon to make sure all icons are in line
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @Danielgergely, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request delivers a comprehensive set of visual and user experience improvements across various pages of the MyCompassion 2 interface. The changes aim to enhance readability, improve responsiveness, standardize design elements like borders and padding, and refine interactive components such as clickable cards and button aesthetics. The overall impact is a more polished, consistent, and user-friendly application.

Highlights

  • Home Page Enhancements: Increased the "Welcome to MyCompassion" title size, improved dashboard card responsiveness, changed the 'Give' button color to white, and removed icons from dashboard buttons for a cleaner look.
  • My Sponsorships Page Refinements: Tweaked child card background color, applied uniform border radius and padding, increased the size of 'Pending activation' texts, and made the entire child card clickable for better mobile usability.
  • Child Page Timeline Updates: Adjusted the color and size of dates in the timeline, reduced excessive space from gift cards, and tweaked the colors of birthday and start sponsorship icons.
  • Letters Page Visuals: Improved letter card appearance with added padding, background color, and text contrast, and removed the icon from the "Write a letter to a child" button.
  • Gift Details Page Adjustments: Added a slight top margin to icons on the details page for better alignment.
  • Gift Basket Page Styling: Applied uniform border radius and padding, tweaked background and text colors, removed the left border, adjusted the total amount color, and fixed icon alignment in themed buttons.
  • My Donations Page Improvements: Added uniform border radius and padding to donation items, made the child sponsorship card clickable, removed hard-to-distinguish icons, and removed the left border from donation items.
  • Footer Alignment: Centered the address icon vertically in the footer.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • my_compassion/static/src/css/child_profile_timeline.css
    • Increased the width and height of .cd-timeline__img from 40px to 50px and added margin-left: -5px.
    • Increased the width and height of .cd-timeline__img .pictogram from 45px to 55px.
    • Added a new CSS rule for .cd-timeline__content > p.text-muted to set margin-bottom: 0.
    • Added new CSS rules for .cd-timeline__date to set color: #11265e and font-size: 16px.
  • my_compassion/static/src/css/letter_card.css
    • Added CSS rules for .dropdown > button.blue and .dropdown > button.green to set specific text colors.
  • my_compassion/static/src/css/my2_children_card.css
    • Added CSS rules for .children-card to set max-width: 400px and margin: 0 auto.
    • Added CSS rule for .children-card > div to set border-radius: 25px.
    • Added CSS rule for .children-card .pending to set font-size: 1.2rem.
  • my_compassion/static/src/css/my2_dashboard.css
    • Increased font-size of .dashboard-banner h1 to 2rem.
    • Added media query for max-width: 639px to adjust min-width of .grid-item-container and remove padding-left from div.pl-3.
  • my_compassion/static/src/css/my2_donation_item.css
    • Removed border-left: 5px solid;.
    • Added border-radius: 25px; and padding: 10px 15px;.
  • my_compassion/static/src/css/my2_gift_package.css
    • Added CSS rules for .donation-item-container .action-button to set position: relative; z-index: 3;.
    • Added CSS rules for #gifts-total-container to set border-radius: 25px; padding: 10px 15px;.
  • my_compassion/templates/components/my2_children_card.xml
    • Changed bg-high-eggshell to bg-low-eggshell and added position-relative to the child card div.
    • Added a stretched-link anchor tag to make the entire card clickable.
    • Changed the class for 'Pending activation' text from small to pending.
  • my_compassion/templates/components/my2_donation_item.xml
    • Added event.stopPropagation() to onclick attributes for both link and event actions to prevent parent click events.
    • Modified i and span classes within DonationItemButton to support large_icon and font-italic styling.
    • Added redirect_link and redirect_label variables for making donation items clickable.
    • Refactored the SponsorshipDonationItem template to use conditional logic for CSP vs. child sponsorships more cleanly, setting name, image, href, secondary_buttons, primary_button, redirect_link, and redirect_label dynamically.
    • Changed the price display class from an empty class to lead.
  • my_compassion/templates/components/my2_letter_card.xml
    • Added dynamic background color class (bg-high-green or bg-high-blue) to the letter card based on letter.direction.
    • Changed the title text color class from text-core-blue to text-off-black.
    • Added dynamic color class (blue or green) to the dropdown button based on letter.direction.
    • Changed the letter date text color class from text-mid-grey to text-low-grey.
  • my_compassion/templates/components/my2_sponsor_child_timeline_batch.xml
    • Changed bg-high-pink to bg-mid-yellow for birthday gift timeline images.
    • Changed bg-high-green to bg-mid-green and bg-low-black to bg-pure-white for start sponsorship timeline images.
  • my_compassion/templates/pages/my2_child_letters.xml
    • Added p-4 padding to the letters container div.
    • Removed icon and icon_color attributes from the "Write a letter to a child" button definition.
  • my_compassion/templates/pages/my2_children.xml
    • Added p-0 p-sm-3 padding to the row containing child cards.
  • my_compassion/templates/pages/my2_dashboard.xml
    • Added grid-item-container class to DashboardGridItem.
    • Removed icon and icon_color attributes from "A new letter has arrived!", "Write to Your sponsored child", "See my terminated sponsorships", and "My donations" buttons.
    • Changed the color of "A new letter has arrived!" button from low-green to low-blue.
    • Changed the color of the "Give" button from high-brown to pure-white.
  • my_compassion/templates/pages/my2_donation_details.xml
    • Added mt-1 class to icon-alert-circle and icon-check-heart for top margin.
  • my_compassion/templates/pages/my2_gift_package.xml
    • Changed price_color and recipient_color from low-green to mid-green.
    • Changed bg_color from mid-eggshell to low-eggshell.
    • Changed primary_button color from low-green to mid-green.
    • Added id="gifts-total-container" to the total amount div.
    • Removed px-3 pt-3 pb-2 and added d-flex align-items-center m-0 to the total amount div, and changed text colors to text-off-black.
  • theme_compassion_2025/templates/components/buttons/ThemedButton.xml
    • Added d-flex align-items-center justify-content-center classes to the button icon span for vertical and horizontal centering.
  • theme_compassion_2025/views/footer.xml
    • Removed align-items-lg-start from the footer address div.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a wide range of visual improvements across the MyCompassion portal, enhancing the user interface and experience, particularly on mobile devices. The changes are well-implemented, focusing on better responsiveness, consistent styling, and improved component behaviors like making entire cards clickable.

I've identified a couple of critical issues: a typo in a CSS class name and the use of an undefined variable in a template, both of which will likely cause rendering errors. Additionally, I've provided several recommendations of 'medium' severity to improve code maintainability, such as replacing hardcoded CSS values with variables from your design system and avoiding the use of !important where possible. Addressing these points will help ensure the long-term quality and consistency of the codebase.

- REFACTOR: removed custom css styling and utilized new scss classes whenever possible
- FIX: fixed incorrect default image for csp donation image
- FEAT: added two new classes to _borders.scss
@Danielgergely
Copy link
Copy Markdown
Member Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a wide range of visual improvements across the application, enhancing user experience and modernizing the interface. The changes are well-described and align with the provided before/after screenshots. Key improvements include better responsiveness, updated color schemes, consistent styling with uniform padding and border-radius, and making larger areas clickable for better mobile usability. The refactoring of the SponsorshipDonationItem template is particularly noteworthy, as it significantly improves code readability and maintainability by reducing duplication. Overall, this is a solid set of enhancements. I have one minor suggestion for a button label to make it more concise.

Copy link
Copy Markdown
Contributor

@NoeBerdoz NoeBerdoz left a comment

Choose a reason for hiding this comment

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

@Danielgergely Thanks a ton for all of these propositions!

There are some really solid UX improvements in here! Only a few doesn't respect Compassion's design guideline

Concerned propositions that should be rework, or removed: Dashboard Cards, Tweaked the colors of the birthday and start sponsorship icons). To ensure that it respect Compassion's design regarding the colors, you can refer to this document in our Figma (present on top left)

Image

And I have to say, it's a bit hard to review so much changes in one PR, i would be very thankful if you can split those changes by grouping them in different PR's (e.g., 1. Global SCSS/Buttons, 2. Dashboard, 3. Donations/Gifts, 4. Timeline/Children, 5. Letters), and you can refer all of them to the ticket T3011.

Also, make sure that all changes follows a mobile first approach, a hard to distinguish icon on desktop may be beautiful on mobile ;)

- FIX: timeline icons now use the original colors (high-pink, high-green + low-black)
- FIX: donation card text and icon use the original high-brown color
@Danielgergely
Copy link
Copy Markdown
Member Author

I will close this PR because the changes have been moved to 5 different smaller ones for better reviewability:

@Danielgergely Danielgergely deleted the T3011-mc2-visual-improvements branch February 27, 2026 10:36
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