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] Migrer en GJS les composants organization-learners de pixOrga (Pix 15749) #10834

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

machestla
Copy link
Contributor

🎄 Problème

Le format GJS va devenir le format par défaut d'ici la fin de l'édition Polaris de Ember

🎁 Proposition

Faire la migration des composants du dossier organizationLearner de Pix Orga au format GJS

🧦 Remarques

🎅 Pour tester

  • CI verte
  • Vérifier les pages en front

@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 :

Copy link
Contributor

@Alexandre-Monney Alexandre-Monney left a comment

Choose a reason for hiding this comment

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

Tech ok, rien de bloquant 👍 🐈‍⬛

import Component from '@glimmer/component';
import Date from '../../ui/date';
import ParticipationStatus from '../../ui/participation-status';
import Type from '../../campaign/detail/type';
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: Appeler ce composant CampaignType serait un peu plus explicite ?

Comment on lines 21 to 25
<p>{{t
"pages.organization-learner.activity.empty-state"
organizationLearnerFirstName=this.firstName
organizationLearnerLastName=this.lastName
}}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<p>{{t
"pages.organization-learner.activity.empty-state"
organizationLearnerFirstName=this.firstName
organizationLearnerLastName=this.lastName
}}</p>
<p>{{t
"pages.organization-learner.activity.empty-state"
organizationLearnerFirstName=(capitalize @firstName)
organizationLearnerLastName=(capitalize @lastName)
}}</p>

Je pense que tu peux faire comme ça. Et du coup tu peux supprimer les deux getters et ne plus passer par une classe pour ce composant ci 😇

@@ -0,0 +1,37 @@
import ParticipationRow from './participation-row';
import Header from '../../table/header';
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: Pareil que le commentaire précédent, appeler ce composant TableHeader?

@machestla machestla force-pushed the PIX-15749-change-js-and-hbs-into-gjs-component branch from 5a5e1b2 to 0307011 Compare December 17, 2024 15:20
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.

3 participants