Skip to content

feat: add new resources#794

Merged
desoindx merged 1 commit into
developfrom
feat/resources
Jun 2, 2025
Merged

feat: add new resources#794
desoindx merged 1 commit into
developfrom
feat/resources

Conversation

@desoindx
Copy link
Copy Markdown
Contributor

No description provided.

@desoindx desoindx requested a review from Copilot May 19, 2025 12:02
Copy link
Copy Markdown

Copilot AI left a comment

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 adds new resource references and updates locale entries for various consumer actions.

  • Removed the “pompe-chaleur” resource and replaced it with updated resource IDs and links
  • Added 11 new locale keys in each language (e.g., agir-livraison, gagner-place, etc.)
  • Extended overScreenCategoryValues with additional category-specific resource blocks

Reviewed Changes

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

Show a summary per file
File Description
src/providers/locales/fr.json Added new French keys and removed pompe-chaleur
src/providers/locales/es.json Added new Spanish keys and removed pompe-chaleur
src/providers/locales/en.json Added new English keys and removed pompe-chaleur
src/components/shareable/overScreens/Values/Category.tsx Expanded overScreenCategoryValues with resource blocks per category
src/components/shareable/overScreens/Values/OsezChanger.tsx Updated two resource links/images
Comments suppressed due to low confidence (4)

src/providers/locales/fr.json:565

  • [nitpick] The locale key 'epargnonsnosressources' is inconsistent with other keys that use hyphens. Consider renaming it to 'epargnons-nos-ressources' for naming consistency.
"epargnonsnosressources": "Évaluer votre besoin réel avant d’acheter",

src/providers/locales/es.json:565

  • [nitpick] The locale key 'epargnonsnosressources' in Spanish is inconsistent with other keys that use hyphens. Consider renaming it to 'epargnons-nos-ressources' for consistency across languages.
"epargnonsnosressources": "Evalúa tu necesidad real antes de comprar",

src/providers/locales/en.json:565

  • [nitpick] The locale key 'epargnonsnosressources' in English is inconsistent with other keys that use hyphens. Consider renaming it to 'epargnons-nos-ressources' (or a suitable English equivalent) for consistency.
"epargnonsnosressources": "Assess your real need before buying",

src/components/shareable/overScreens/Values/Category.tsx:407

  • New branches for category.slug values like 'repas', 'boisson', etc., should be accompanied by unit tests to verify that the correct resources render for each category.
if (category.slug === 'repas') {

},
}
}
if (category.slug === 'repas') {
Copy link

Copilot AI May 19, 2025

Choose a reason for hiding this comment

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

The overScreenCategoryValues function has grown large with repeated conditional blocks. Consider extracting resource definitions into a configuration map or separate data structure to reduce duplication and improve readability.

Copilot uses AI. Check for mistakes.
@desoindx desoindx merged commit dd3f0db into develop Jun 2, 2025
3 checks passed
@desoindx desoindx deleted the feat/resources branch June 2, 2025 08:58
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