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

[TECH] Ajouter un sous-composant d'affichage de l'état d'une certification (PIX-16534). #11395

Conversation

Jeyffrey
Copy link
Contributor

@Jeyffrey Jeyffrey commented Feb 11, 2025

🥞 Problème

Dans l'objectif d'alléger le template admin/app/templates/authenticated/certifications/certification/informations.hbs, il est nécessaire de réussir à alléger son unique composant admin/app/components/certifications/certification/informations.gjs.

🥓 Proposition

Commencer à faire de la composition en créant un sous-composant qui gérera l'affichage de la partie "État".

🧃 Remarques

  1. Ajouter un test d'intégration pour le composant admin/app/components/certifications/certification/informations.gjs.
  2. Vu que le composant info-tag est utilisé uniquement dans la card "État", j'ai décidé de l'incorporer directement dans ce nouveau sous-composant.

😋 Pour tester

  • Tech : Vérifier le nouveau fichier de test spécifique à ce composant
  • Fonctionnellement : il ne doit y avoir aucune différence avec l'intégration juste sur cette partie là de la page de détail d'une certification :
image

@Jeyffrey Jeyffrey self-assigned this Feb 11, 2025
@pix-bot-github
Copy link

Une fois les applications déployées, elles seront accessibles via les liens suivants :

Les variables d'environnement seront accessibles via les liens suivants :

@Jeyffrey Jeyffrey force-pushed the pix-16534-create-certification-informations-state-component branch 5 times, most recently from 54914fd to 38d2886 Compare February 11, 2025 17:21
Comment on lines +9 to +14
{{#if @certification.isPublished}}
<PixTag @color="success">Publiée</PixTag>
{{/if}}
{{#if @certification.isCertificationCancelled}}
<PixTag @color="error">Annulée</PixTag>
{{/if}}
Copy link
Member

Choose a reason for hiding this comment

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

🥳 👍 et comme le tag annulée disparaîtra soon, encore moins d'intérêt à garder le CertificationInfoTag

Copy link
Member

@AndreiaPena AndreiaPena left a comment

Choose a reason for hiding this comment

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

testé func !

@Jeyffrey Jeyffrey force-pushed the pix-16534-create-certification-informations-state-component branch from 38d2886 to d042f5a Compare February 12, 2025 13:08
@alexandrecoin alexandrecoin added Tech Review OK 🚀 Ready to Merge Func Review OK PO validated functionally the PR and removed 👀 Tech Review Needed 👀 Func Review Needed Need PO validation for this functionally labels Feb 12, 2025
@pix-service-auto-merge pix-service-auto-merge merged commit b72d115 into dev Feb 12, 2025
9 of 11 checks passed
@pix-service-auto-merge pix-service-auto-merge deleted the pix-16534-create-certification-informations-state-component branch February 12, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants