Skip to content

654 ajouter plusieurs erreursreco par critère#1458

Open
emma11y wants to merge 61 commits into
mainfrom
654-ajouter-plusieurs-erreursreco-par-critère

Hidden character warning

The head ref may contain hidden characters: "654-ajouter-plusieurs-erreursreco-par-crit\u00e8re"
Open

654 ajouter plusieurs erreursreco par critère#1458
emma11y wants to merge 61 commits into
mainfrom
654-ajouter-plusieurs-erreursreco-par-critère

Conversation

@emma11y

@emma11y emma11y commented Mar 27, 2026

Copy link
Copy Markdown
Collaborator

closes #654

Avant de merger la pull request, s’assurer que :

  • Les checks GitHub passent (lint...).
  • Les tests Cypress ont été lancés en local (dans le cas d’une correction de bug ou d’une nouvelle fonctionnalité).

@emma11y emma11y linked an issue Mar 27, 2026 that may be closed by this pull request
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm March 27, 2026 16:27 Inactive
@hissalht hissalht had a problem deploying to ara-654-ajouter-plusieu-is1tsm April 2, 2026 13:24 Failure
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 2, 2026 14:46 Inactive
@emma11y emma11y force-pushed the 654-ajouter-plusieurs-erreursreco-par-critère branch from 8c47440 to 04b1d89 Compare April 2, 2026 15:00
@hissalht hissalht had a problem deploying to ara-654-ajouter-plusieu-is1tsm April 2, 2026 15:00 Failure
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 2, 2026 15:41 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 3, 2026 08:45 Inactive
@hissalht hissalht had a problem deploying to ara-654-ajouter-plusieu-is1tsm April 3, 2026 15:54 Failure
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 3, 2026 16:06 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 9, 2026 13:57 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 9, 2026 15:45 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 10, 2026 14:18 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 10, 2026 14:51 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 08:33 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 08:57 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 09:15 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 09:39 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 10:23 Inactive
@emma11y emma11y force-pushed the 654-ajouter-plusieurs-erreursreco-par-critère branch from 8101ea6 to b3db248 Compare April 15, 2026 10:27
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 10:28 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 10:32 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 12:34 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 12:40 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 12:41 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 12:47 Inactive
@hissalht hissalht temporarily deployed to ara-654-ajouter-plusieu-is1tsm April 15, 2026 13:36 Inactive
@emma11y emma11y marked this pull request as ready for review April 15, 2026 14:44
@emma11y emma11y self-assigned this Apr 15, 2026
@emma11y emma11y requested a review from hissalht April 15, 2026 14:45
Comment on lines +25 to +26
const item = { ...props.item };
item[field] = value as never;

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.

as never ?

Pourquoi pas juste faire

const item = { ...props.item, [field]: value };

D’ailleurs, on peut typer value pour éviter any

function handleItemChange(
  field: keyof NotCompliantItem,
  value: NotCompliantItem[keyof NotCompliantItem]
) {
}

@bellangerq bellangerq force-pushed the 654-ajouter-plusieurs-erreursreco-par-critère branch from 6be9266 to 4ad3bb7 Compare June 25, 2026 10:59
userImpact: CriterionResultUserImpact | null;
quickWin: boolean;
};

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.

Ce type ne corresponds pas à ce que renvoie l’API.

On peut utiliser components["schemas"]["NotCompliantItem"] qui est généré par le back et corresponds à ce que renvoie l’API.

Je vois que l’id est défini comme possiblement undefined, je suppose pour pouvoir représenter un nouvel NotCompliantItem qu’on envoie à l’API pour en créer un. Dans ce cas, il vaut mieux utiliser le type généré correspondant.

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.

Ajouter plusieurs erreurs/reco par critère

6 participants