Skip to content

feat(graph): categories repartition graph#297

Open
Sophia-San wants to merge 1 commit intomainfrom
122-vue-densemble-graphique-répartition-par-catégories

Hidden character warning

The head ref may contain hidden characters: "122-vue-densemble-graphique-r\u00e9partition-par-cat\u00e9gories"
Open

feat(graph): categories repartition graph#297
Sophia-San wants to merge 1 commit intomainfrom
122-vue-densemble-graphique-répartition-par-catégories

Conversation

@Sophia-San
Copy link
Copy Markdown
Collaborator

image

Ajout du graph Répartition par catégories

@Sophia-San Sophia-San requested a review from sarod May 6, 2026 10:53
@Sophia-San Sophia-San self-assigned this May 6, 2026
@Sophia-San Sophia-San linked an issue May 6, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown
Collaborator

@sarod sarod left a comment

Choose a reason for hiding this comment

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

Super @Sophia-San
Merci pour le taff.
J'approuve avec une modification mineure nécéssaire sur l'alignement de la définition de ce qui est Hateful

};

const HATEFUL_CATEGORIES = Object.values(HatefulCategory).filter(
(c) => c !== HatefulCategory.ABSENCE_DE_CYBERHARCELEMENT,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Etant donnée que le backend renvoie les labels de catégories directement Je ne suis pas sûr que HatefulCategory tel que définit actuellement est beaucoup de sens. Mais bon ce n'est pas gràave pour cette PR.

postComments: readonly PostComment[],
): CategoryStat[] => {
const hatefulComments = postComments.filter(
(c) => c.classification?.[0] && c.classification[0] !== ABSENCE_LABEL,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔧 isCommentHateful de post-utils.ts devrait être aligné sur cette définition afin d'éviter les désalignement de chiffres.

Les deux pourraît déléguer à une méthode isCategoryHateful(categoryLabel: string): boolean

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.

[Vue d'ensemble] Graphique répartition par catégories

2 participants