T3003 decouple theme from child protection page#286
T3003 decouple theme from child protection page#286Danielgergely wants to merge 4 commits into14.0from
Conversation
Danielgergely
commented
Feb 17, 2026
- FIX: added new form validation attributes to .js file
- REFACTOR: changed required="true" to required="required"
- REFACTOR: removed 2025 theme buttons and titles from child protection page
- REFACTOR: extended the validation logic to include all the check boxes
- REFACTOR: removed theme_compassion_2025 from website_child_protection/manifest.py dependency list
- FEAT: created override templates for the child protection page and thank you page
- FEAT: aded template to manifes
- REFACTOR: added ids to templates in website child protection for easier identification
- STYLE: pre-commit
… charter - FIX: added new form validation attributes to .js file - REFACTOR: changed required="true" to required="required" - REFACTOR: removed 2025 theme buttons and titles from child protection page - REFACTOR: extended the validation logic to include all the check boxes - REFACTOR: removed theme_compassion_2025 from website_child_protection/__manifest__.py dependency list
- FEAT: created override templates for the child protection page and thank you page - FEAT: aded template to manifes - REFACTOR: added ids to templates in website child protection for easier identification - STYLE: pre-commit
Summary of ChangesHello @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 aims to improve the modularity and maintainability of the child protection page by decoupling its direct dependency on a specific theme module. It achieves this by moving theme-specific styling and components into dedicated override templates within the theme itself, while simultaneously enhancing the form's validation logic to ensure all required checkboxes are explicitly agreed upon before submission. Highlights
🧠 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
Using Gemini Code AssistThe 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
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 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
|
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request effectively decouples the website_child_protection module from theme_compassion_2025 by removing the direct dependency and using template overrides for theming. The changes are well-structured, including updates to form validation on both the frontend and backend. I've added a few review comments with suggestions to fix a typo, improve component usage for better maintainability, and align with modern Python syntax.
website_child_protection/templates/child_protection_charter.xml
Outdated
Show resolved
Hide resolved
website_child_protection/wizards/agreement_child_protection_charter_form.py
Outdated
Show resolved
Hide resolved
- FEAT: added de/fr/it translation to the 2025 theme for the overridden child protection and thank you pages - FIX: pre-commit -> using attributes instead of replace - STYLE: pre-commit - FIX: removed commented out old translations from website_child_protection .po files - FIX: added z-index: -1 to thank you page section so it does not cover the language selector - FIX: removed explicit type in super().create()
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request effectively decouples the theme_compassion_2025 from the website_child_protection module by removing the direct dependency and using override templates for styling. The form validation has also been improved to handle multiple checkboxes. The changes are logical and well-implemented. I've included a couple of comments on potential issues regarding an incomplete translation file and the use of an inline style that could affect the layout.