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

Page groupe d’indicateurs sous forme de liste #3531

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

}
return a.identifiant.localeCompare(b.identifiant);
});
const SousIndicateurs = ({ enfantsIds }: Props) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Super d'avoir enlevé de la logique de fetch du composant 👌

/>
</button>
{displayExportButton && (
<ExportButton
Copy link
Contributor

Choose a reason for hiding this comment

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

Idem, cool d'avoir sorti la logique de l'export dans un component séparé


type Props = {
pageName: ExportIndicateursPageName; // tracking
pageName?: ExportIndicateursPageName; // tracking
Copy link
Contributor

Choose a reason for hiding this comment

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

Pas une remarque mais une question de curiosité : pourquoi avoir mis pageName en optionnel ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pageName est utilisé pour tracker l'export via le bouton présent dans la liste de badges, mais je n'utilise pas ce bouton donc ce n'était pas très pertinent de conserver cette prop en obligatoire. Dans mon cas, la pageName pour le tracking est définie dans le composant <IndicateurToolbar/> qui contient le bouton d'export.

Copy link
Contributor

Choose a reason for hiding this comment

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

Pas une question directement liée à ce commit, mais plus généralement, pourquoi est-ce que les noms des fichiers du dossier indicateurs-list sont en kebab-case, et non en camelCase ? J'imagine que c'est une convention de nommage de l'équipe, si c'est le cas peux-tu me dire la règle, s'il te plaît ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Je ne saurais pas te dire, pour moi il n'y a pas encore eu de consensus sur les conventions de nommage, c'est encore un sujet en cours

Copy link
Contributor

Choose a reason for hiding this comment

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

Merci, je note !

@mariheck mariheck force-pushed the TET-3930/page-groupe-indicateurs branch from e1fe2a3 to cb5bddd Compare January 23, 2025 09:44
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