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

[BO - Listes] Standardisation des formulaires de filtres #3460

Merged
merged 20 commits into from
Dec 23, 2024

Conversation

emilschn
Copy link
Collaborator

@emilschn emilschn commented Dec 16, 2024

Ticket

#3376

Description

Standardisation des formulaire de filtres de listes du BO. Utilisation est FormType pour ne plus se poser la question et avoir des trucs gérés aléatoirement.

Changements apportés

  • Suppression au passage des pages des comptes expirés ou inactifs. J'ai gardé les requêtes au cas où pour plus tard.
  • Renommage des pages Account en User pour standardiser aussi.
  • Standardisation du JS pour validation du formulaire dès changement de liste déroulante (en attendant de passer tout en Ajax)

Pré-requis

make composer
npm run watch

Tests

@emilschn emilschn requested review from hmeneuvrier, numew and sfinx13 and removed request for hmeneuvrier December 17, 2024 09:22
@emilschn emilschn changed the title [WIP] [BO - Listes] Standardisation des formulaires de filtres [BO - Listes] Standardisation des formulaires de filtres Dec 17, 2024
@emilschn emilschn marked this pull request as ready for review December 17, 2024 09:28
@emilschn emilschn force-pushed the feature/3376-standard-list-filters branch from 65b4634 to 8881831 Compare December 17, 2024 11:19
Copy link
Collaborator

@numew numew left a comment

Choose a reason for hiding this comment

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

Quelques remarques et questions.
Test Ko :
La pré sélection de filtre via retour sur fil d'ariane ne fonctionne plus sur :

  • liste des partenaires
  • auto affectation (ce doit garder en mémoire un truc précédent parce que quand je sélectionne le 34 et que je vais sur un détail, en revenant ca me filtre sur le 30)
  • Idem pour comptes archivés, j'ai des erreurs au retours
    Screenshot 2024-12-17 at 16-22-26 Comptes archivés ou sans territoires et_ou partenaires - Histologe

@emilschn emilschn force-pushed the feature/3376-standard-list-filters branch from 8881831 to b2a97fd Compare December 18, 2024 08:58
@emilschn
Copy link
Collaborator Author

Quelques remarques et questions. Test Ko : La pré sélection de filtre via retour sur fil d'ariane ne fonctionne plus sur :

* liste des partenaires

* auto affectation (ce doit garder en mémoire un truc précédent parce que quand je sélectionne le 34 et que je vais sur un détail, en revenant ca me filtre sur le 30)

* Idem pour comptes archivés, j'ai des erreurs au retours
  ![Screenshot 2024-12-17 at 16-22-26 Comptes archivés ou sans territoires et_ou partenaires - Histologe](https://private-user-images.githubusercontent.com/7130780/396569183-1895fb36-a7af-414b-9320-46acc2f16f82.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzQ1MTI1NjMsIm5iZiI6MTczNDUxMjI2MywicGF0aCI6Ii83MTMwNzgwLzM5NjU2OTE4My0xODk1ZmIzNi1hN2FmLTQxNGItOTMyMC00NmFjYzJmMTZmODIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMThUMDg1NzQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mjg2NzM5MThmMjQ1NDk1ZjEwNjRiYWQzYTkyZWZlOWRlMjZhOWM5NjY5YjdlNTUzNGI3MDYyNjk3ODhhODc1YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.1h9D5_-Vj8YVA9cflJ-bw2l8rtxDhbjDttmjrA1Bpoo)

Ok c'est corrigé !
Merci, je n'avais pas du tout pensé à ça...

@emilschn emilschn force-pushed the feature/3376-standard-list-filters branch from 524caa5 to 5c4c07d Compare December 18, 2024 14:16
Copy link
Collaborator

@hmeneuvrier hmeneuvrier left a comment

Choose a reason for hiding this comment

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

Tests ok, quelques suggestions pour le code

@emilschn emilschn force-pushed the feature/3376-standard-list-filters branch from 09a3e08 to ec8a562 Compare December 20, 2024 10:45
Copy link
Collaborator

@hmeneuvrier hmeneuvrier left a comment

Choose a reason for hiding this comment

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

il reste un petit "account" qui traine. Désolée je ne l'avais pas vu la première fois. Sinon tout le reste est ok. La fonction twig pour le pluriel c'est cool.
Je refais quelques tests

@emilschn emilschn force-pushed the feature/3376-standard-list-filters branch from cca4419 to d99519b Compare December 20, 2024 14:13
Copy link
Collaborator

@hmeneuvrier hmeneuvrier left a comment

Choose a reason for hiding this comment

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

OK pour moi

Copy link
Collaborator

@numew numew left a comment

Choose a reason for hiding this comment

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

Ok (ajout d'un mini commit de nettoyage)

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
10.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@numew numew merged commit 89fe134 into develop Dec 23, 2024
3 of 4 checks passed
@hmeneuvrier hmeneuvrier deleted the feature/3376-standard-list-filters branch January 1, 2025 14:41
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.

3 participants