Skip to content

Conversation

@NoeBerdoz
Copy link
Contributor

No description provided.

@NoeBerdoz NoeBerdoz self-assigned this Jan 17, 2025
- It ain't much, but it's honest work
- I'm wondering if it wouldn't be better to just do vanilla javascript instead
- (here for comparison with the owl version)
SamBachmann and others added 30 commits January 5, 2026 12:30
* [FEAT] Add displaying for the start of a sponsorship into the timeline

* [DOC] Add doc to my2_child_timeline.xml

* Add logic for "started sponsorship" event on the timeline

* Update my_compassion/controllers/my2_children.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Forgot Pre-commit

* [FIX] Supress magic number and solidify implementation

* [FIX] Change the beginning of a sponsorship to start date

* [T2741] FIX display start of sponsorship for all partner linked to a child

* [T2741] FIX make the query more resistant

* [T2741] FIX restrict query scoop

Prevent too board query

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [T2741] FIX restrict query scoop

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: NoeBerdoz <44669187+NoeBerdoz@users.noreply.github.com>
…213)

* [FIX] Sow the write a letter button if hte sponsors can write.

* [FIX] Add the is_writter to the partner model

* [FIX] Redirect the user when reaching the letter creation if they are not a writer.

* [STYLE] Refactor the is_writer compute method.

* [STYLE] Run precommit

* [FIX] Make the _compute_is_writer method session agnostic + Clean comments

* [T2800][STYLE] Run precommit
* Add dropdown button component definition

* Create ThemedDropdownButton component

* Refactor the code of the themed button dropdown

* Add vertical trasition mirroring on the dropdown button icon

* Add comments to the dropdown button

* Add component call

* Refactoring

* Revert "Refactoring"

This reverts commit 0c67ee3.

* Refactor

* Refactor

* Refacoring the CSS styling

* Refactof the style + Fix vertical allignment

* Fix small UI issue

* Update comments of component

* Fix sytax errors

* Refactor

* Update comments

* [FIX] Update the design of the dropdown toggle button

* Add dynamic side selection of the drop down button

* Update comments

* [STYLE] Refactor

* [STYLE] Refactoring

* [STYLE] Remove unecessary empty template

* [STYLE] Remove magic numbers

* Update theme_compassion_2025/views/template_header.xml

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [FIX] Revert changes in login_template

* [STYLE] Update comments

* [STYLE] Update naming of templates

* Revert "[STYLE] Uncomment weird stuff"

This reverts commit 34ced61.

* [STYLE] Update naming of templates

* [STYLE] Revert unrelated changes

* feat: bring language_selector in the menu

* fix: force dropdown-menu to position itself relative to the language selector button

* feat: add optimal dropdown display on mobile

* feat: add primary blue color on dropdown item selection

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: NoeBerdoz <berdoznoe@gmail.com>
* [T2781] FEAT : Add the capability to a ThemedButtonComponent to open a dropdown menu

* [T2781] FIX : change `data-toggle` by `t-att-data-custom` for the dropdown capabilities

* [T2781] FEAT : Change user menu and sign in button to use theme compassion 2025

* [T2781] run precommit

* [T2781] FIX redirect for public user

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [T2781] REFACTOR remove inline css

* [T2781] REFACTOR remove fragile selector

* [T2781] FIX pre-commit

* feat: add styling and primary blue color on dropdown item selection

* fix: pre-commit

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: NoeBerdoz <berdoznoe@gmail.com>
… cannot receive letters (#220)

* [FIX] Add condition to prevent payonly sponspor to load letters

* [STYLE] Run precommit

* [STYLE] Reformat code

* [STYLE] Refactor code and rename variables

* [T2818][FIX] Force the new letter notification to be displayed only if the direction of the letter is beneficiary->Sponsor
* [T2829] FIX: Remove the 'new' word in mc2's dashboard

* [T2829] FIX: Set pictogram's color to white on a filled button ('My donations')

* [T2829] FIX: Modify the help text in the children dropdown selector

* [T2829] FIX: On the 'My donations' page, modify the text which allows to download tax receipt

* [T2829] FIX: Change the color of the download button on the card to 'low-blue'

* [T2829] FIX: External links (sport for children and together) are opened in a new windows

---------

Co-authored-by: ecino <ecino@users.noreply.github.com>
* [T2468] FEAT: init test structure

* [T2468] FEAT: first test case => gift, monthly

* [T2468] FEAT: first test case => gift, monthly

* [T2468] FEAT: better logging in test

* [T2468] FEAT: created functional setup method for test run

* [T2468] FEAT: added second tour for donating trough a fund

* [T2468] FEAT: browser now running theme still not present

* [T2468] FEAT: approach with playwright

* [T2468] FEAT: test finally running

* [T2468] FEAT: minimalize browser flags that test runs successfully

* [T2468] REFACTOR: better structure in setUp of the test

* [T2468] REFACTOR: better logging

* [T2468] REFACTOR: remove useless test with playwright

* [T2468] REFACTOR: renaming of tour

* [T2468] FEAT: setup MOCK_DATA correctly

* [T2468] FEAT: test_single_one_time_gift_with_suggested_amount

* [T2468] FEAT: test_single_monthly_gift_with_suggested_amount

* [T2468] REFACTOR: better logging

* [T2468] FEAT: single_one_time_gift_with_custom_amount

* [T2468] FEAT: single_monthly_gift_with_custom_amount

* [T2468] FIX: single_monthly_gift_with_custom_amount

* [T2468] FEAT: test_full_flow_add_and_remove_item

* [T2468] FEAT: test_add_several_gifts

* [T2468] FEAT: test_full_flow_add_and_edit_item

* [T2468] FEAT: single_one_time_gift_through_modal

* [T2468] FEAT: try_to_submit_empty_custom_amount

* [T2468] REFACTOR: misleading use of "gift" instead of "fund"

* Update my_compassion/static/src/js/tours/donation_tour.js

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [T2468] REFACTOR: updated assertEqual Messagesa

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [T2468] REFACTOR: updated init test logs

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [T2468] FIX: misleading use of "gift" instead of "fund"

* [T2468] REFACTOR: remove unnecessary logs during tours

* [T2468] FEAT: create svg and pictogram in setup instead of searching one on DB

* [T2468] FIX: remove unnecessary Assertion

* [T2468] FIX: remove unnecessary includtion in assets_frontend

* [T2468] REFACTOR: pre-commit

* [T2468] REFACTOR: pre-commit

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* [T2702] FEAT: implement target user tag into event banner model

* [T2702] FEAT: implement filter into controller

* [T2702] FEAT: implement filter into controller

* [T2702] REFACTOR: pre-commit

* [T2702] REFACTOR: pre-commit

* [T2702] FEAT: add info text to target_route_ids and target_partner_tags fields

* [T2702] FEAT: remove mt-4 to unify our "theme" with no margin right after the nav-bar

* [T2702] FEAT: unify margin of banner top and bottom

* [T2702] Fix: prepend banner directly into "main"

* [T2702] REFACTOR: pre-commit

* [T2702] REFACTOR: pre-commit

* [T2702] REFACTOR: pre-commit

* Rename field according to convention

---------

Co-authored-by: ecino <ecino@users.noreply.github.com>
* [T2782] FIX phone number is an optional field

* Apply suggestion from @gemini-code-assist[bot]

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: ecino <ecino@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* [T2874][TRANSALTION] Update string (Lu-Ven: 9.00-14.00)

* [T2874][TRANSALTION] Update string "surgical interrvention""

* [T2874][TRANSALTION] Update string "Back to gift package""

* [T2874][STYLE] Run precommit

* [T2874][TRANSALTION] Update string about data protection

* [T2874][TRANSALTION] Update string related to letters languages from sponsors

* [T2874][TRANSALTION] Update string "Gift Package""

* [T2874][TRANSALTION] Update string "Gift to your sponsored children""

* [T2874][TRANSALTION] Update string "Give the Gift of Compassion""

* [T2874][TRANSALTION] Update string "Hearts grow stronger with each act of love through your sponsorship."

* [T2874][TRANSALTION] Update string related to write and pray aknowledgments

* [T2874][TRANSALTION] Update string related to Write &Pray explanations

* [T2874][TRANSALTION] Update string "Send a donation""

* [T2874][TRANSALTION] Update string related to visiting supported children

* [T2874][TRANSLATION] Update string "Welcome to the new"

* [T2874][TRANSLATION] Update string "Write to your child"

* [T2874][TRANSLATION] Update string related to Write&Pray explanations

* [T2874][TRANSLATION] Update string "Your Sponsorships"

* [T2874][TRANSLATION] Update string "Your Gift Package is empty"

* [T2874][TRANSLATION] Update string "Population living on less than $2/day"

---------

Co-authored-by: NoeBerdoz <berdoznoe@gmail.com>
* [T2874] Run moulinette

* [T2874] Run precommit

* [T2874][Style] Simplify lines

* Revert Moulinette

This reverts commit 4269a62.

Revert "[T2874] Run moulinette"

This reverts commit d3717e5.

Revert "[T2874] Run precommit"

This reverts commit 788bb6f.

* [T2874] Run moulinette + Precommit + add starting and ending space handling

* [T2874][STYLE] Simplify line

* [T2874] [STYLE] Use proper xml non breaking space
* [T2820] REFACTOR Move the displaying of brith date logic to my2_children controller

* [T2820] FIX precommit formating

* [T2820] Fix typo

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [T2820] REFACTOR simplify the logic for lang

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: NoeBerdoz <berdoznoe@gmail.com>
* [T2896][FIX] Add translation request route

* [T2896][STYLE] Run precommit

* remove unwanted header

---------

Co-authored-by: NoeBerdoz <44669187+NoeBerdoz@users.noreply.github.com>
* [T2842] FIX: Move the 'New sponsorship' button between active ans terminated sponsorship

* [T2842] STYLE: Run pre commit

* [T2842] FIX: Replace 'Title component' with a simple 'p' tag

* [T2842] STYLE: Run pre commit

---------

Co-authored-by: NoeBerdoz <berdoznoe@gmail.com>
* [T2777] FIX : Remove Frequency component from gift page

* [T2777] FIX : Prevent gift frequency to be monthly and fix it to one_time

* [T2777] precommit formating

* [T2777] FIX : Ensure frequency to be in ('one_time', 'monthly')

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [T2777] precommit formating on my2_donations.py

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…age (#232)

* [T2851] FIX: Adding of support of 'target' and 'rel' props in banner and button

* [T2851] REFACTORE: Move the security logic from banner component in to themed button

* [T2851] FIX: Use more robust rel attribute security logic

* [T2851] REFACTORE: Sanitize rel tokens

---------

Co-authored-by: ecino <ecino@users.noreply.github.com>
… page behavior (#223)

* [FEATURE] Add new view for child when no longer sponsored

* [FIX] Add view to manifest

* [STYLE] Center the child profile picture on desktop also

* [STYLE] Merge the timeline view into one and condition on the sponsorship status of the child

* [T2833][FIX] Remove the declaration of the view specific when child is not sponsored

* [T2833][STYLE] Refactor variable namming in the view

* [T2833][STYLE] Run precommit

* [T2833][STYLE] Add back the comments

* [T2833][STYLE] Goback and remove duplication of child portrait

* [T2833][STYLE] Condition the centering of the portrait

* [T2833][STYLE]Condition the displaying of the componenet on the sponsorship state

* [T8233][FIX] Add safe fallback when no sponsorship is given to the view

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [T2833][STYLE] Run precommit

* [T2833][FIX] Condition so tha tthe compnenet are removed only if hte sponsors is an ex-sponsor

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: ecino <ecino@users.noreply.github.com>
…234)

* [T2846] FIX redirect "Choose for me" btn when the user is Write & Pray

* [T2846] FIX improve readability of the url
* feat: extend child interaction count by including pictures

* feat: add the title for child pictures

* feat: add child pictures to sponsorship timeline

* feat: render child picture items in timeline

* feat: make child picture items clickable with t-att-href link

* fix: pre-commit

---------

Co-authored-by: jordyBSK <dylan.bossoku@jobtrek.ch>
Co-authored-by: NoeBerdoz <berdoznoe@gmail.com>
* [T2834][FEATURE] Add result of the random sampling of sponsorships

* [T2834][FEATURE] Add a "Choose for me again" and a "See them all button" when sampling a child

* [T2834][FIX] Bind See them all btn to refresh

* [T2834][FEATURE] Replace "X children found" by "A child has been choosen"  when a ramdom child is sampled

* [T2834][STYLE]Fix comments and remove useless imports

* [T2834][FIX] Simplify the conditioning of  the button hiding

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [T2834][STYLE] Refactor code

* [T2834][FIX] Add safety null checks

* [T2834][STYLE] Change strings

* [T2834][STYLE] Remove useless imports

* [T2834][FIX] Fix syntax

* refactor: simplify recordset check condition

* refactor: fix param comment

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: NoeBerdoz <44669187+NoeBerdoz@users.noreply.github.com>
* [T2898] FIX: user menu component

# FEAT: added optional y-padding to buttons
# FEAT: new 'Login' variant for buttons
# FEAT: new circular option for buttons

# STYLE: Changed the restrictive 'login' class name to a more general one: 'slim'
# FIX: Conditional styling of the slim/compact sign-in button
* [T2899] FIX language selection dropdown

# Added the language selector to appear after the user icon (@media md+)
# Update the media breakpoints in the language selector to break at sm
# Retained current language selector for mobile version

* [T2899] STYLE - GCA suggestions

# Removed redundant ml-lg-3 from mobile view selector
# Added ml-lg-3 to default selector
# Removed redundant css margin styling

* [T2899] - STYLE added line break for readability

* [T2899] STYLE pre-commit formatting

---------

Co-authored-by: NoeBerdoz <berdoznoe@gmail.com>
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.