Skip to content

1174 le succès dun upload nest pas restitué#1183

Draft
yaaax wants to merge 20 commits intomainfrom
1174-le-succès-dun-upload-nest-pas-restitué

Hidden character warning

The head ref may contain hidden characters: "1174-le-succ\u00e8s-dun-upload-nest-pas-restitu\u00e9"
Draft

1174 le succès dun upload nest pas restitué#1183
yaaax wants to merge 20 commits intomainfrom
1174-le-succès-dun-upload-nest-pas-restitué

Conversation

@yaaax
Copy link
Collaborator

@yaaax yaaax commented Sep 3, 2025

closes #1174

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é).

@yaaax yaaax linked an issue Sep 3, 2025 that may be closed by this pull request
@yaaax yaaax requested review from bellangerq and hissalht September 3, 2025 12:48
@hissalht hissalht temporarily deployed to ara-1174-le-succes-dun--cbsdkh September 3, 2025 12:51 Inactive
@yaaax yaaax force-pushed the 1174-le-succès-dun-upload-nest-pas-restitué branch from 8013e92 to 636588b Compare September 3, 2025 13:29
@hissalht hissalht temporarily deployed to ara-1174-le-succes-dun--cbsdkh September 3, 2025 13:29 Inactive
Copy link
Collaborator

@bellangerq bellangerq left a comment

Choose a reason for hiding this comment

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

J'ai review tout le code, pas encore testé fonctionnellement.

Par contre les 9 premiers commits sont pas vraiment liés à la PR 😬


function handleFileChange() {
async function handleFileChange() {
await nextTick();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Je questionne l'utilité d'un nextTick() au tout début d'une fonction ?

yaaax added 18 commits October 8, 2025 15:31
… in rendered AuditGenerationPage component.
Makes W3C validator happy.
… to make w3c validator happy (p cannot be a child of span)
…without typescript installed globally
…on hide function.

Useful when deleting uploaded example images in CriteriumNotCompliantAccordion: on modal conceal, the button that has triggered the modal disclosure does not exist anymore.

+ clean and improve code
* default formatter: eslint
* use TypeScript tsserver.js installed in node_modules ("typescript"
  package)
… composable.

* One unique global modal in the App
* Uses the DsfrModal
* For tbe moment only handles "confirm" use case with 2 action buttons:
  "confirm" and "cancel"
* Uses "useConfirmDialog" composable from vueuse
* Upload / delete files linked to a criterium (example images)
* Upload / delete global files (observations)
* Handle file upload / file delete errors
… and rework CriteriumNotCompliantAccordion and NotesModal accordingly
* Introduce inline delete within Observations modal (because using a modal on top of
  another modal is forbidden)
* Use fileHandler in AuditGenerationCriterium and CriteriumNotCompliantAccordion
* Better handle upload/delete errors
* More precise confirm messages (using file name)
@yaaax yaaax force-pushed the 1174-le-succès-dun-upload-nest-pas-restitué branch from c5e55cb to e9a7256 Compare October 8, 2025 13:36
@yaaax
Copy link
Collaborator Author

yaaax commented Oct 8, 2025

J'ai review tout le code, pas encore testé fonctionnellement.

Par contre les 9 premiers commits sont pas vraiment liés à la PR 😬

J’ai revu l’ensemble des commentaires.
Merci beaucoup pour la relecture attentive, j’ai corrigé pas mal de petites choses.

Pour ce qui est des commits de "clean", j’ai effectivement un peu débordé 🫤

@yaaax yaaax requested a review from bellangerq October 8, 2025 13:53
@hissalht hissalht temporarily deployed to ara-1174-le-succes-dun--pbi18c October 8, 2025 14:00 Inactive
@yaaax yaaax marked this pull request as draft October 15, 2025 16:56
@hissalht hissalht temporarily deployed to ara-1174-le-succes-dun--fhaabz October 28, 2025 13:57 Inactive
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.

Le succès d’un upload n’est pas restitué

3 participants