From 3c28db8a2f8c7071257b2f0b814524ee48412749 Mon Sep 17 00:00:00 2001 From: Theo Gautier Date: Thu, 14 Dec 2023 14:51:21 +0100 Subject: [PATCH] retours revue --- assets/icons/actions/filter.svg | 2 +- components/action/ActionRow.tsx | 3 ++- components/action/FiltresStatutsActions.tsx | 1 + components/action/OngletActions.tsx | 5 +++-- components/action/TableauActionsJeune.tsx | 9 +++++++- components/action/TagStatutAction.tsx | 23 +++++++++++++++------ components/action/propsStatutsActions.ts | 5 ----- components/agenda-jeune/AgendaRow.tsx | 17 ++++++++++++++- interfaces/action.ts | 1 - 9 files changed, 48 insertions(+), 18 deletions(-) diff --git a/assets/icons/actions/filter.svg b/assets/icons/actions/filter.svg index 23a53cac5..639cb8d84 100644 --- a/assets/icons/actions/filter.svg +++ b/assets/icons/actions/filter.svg @@ -1 +1 @@ - + diff --git a/components/action/ActionRow.tsx b/components/action/ActionRow.tsx index 47f042863..29f1b7d7b 100644 --- a/components/action/ActionRow.tsx +++ b/components/action/ActionRow.tsx @@ -74,7 +74,8 @@ export default function ActionRow({ action, jeuneId }: ActionRowProps) { setAfficherFiltresStatuts(!afficherFiltresStatuts)} aria-label='Statut - Filtrer les actions' + title='Filtrer les actions par statut' className='flex items-center p-4 w-full h-full' > Statut diff --git a/components/action/OngletActions.tsx b/components/action/OngletActions.tsx index d2ac6468e..3567886b4 100644 --- a/components/action/OngletActions.tsx +++ b/components/action/OngletActions.tsx @@ -114,7 +114,7 @@ export default function OngletActions({ filtresParEtatsQualification, tri ).then(({ actions, metadonnees }) => { - if (filtresParStatuts.includes(StatutAction.EnRetard)) + /*if (filtresParStatuts.includes(StatutAction.EnRetard)) setActionsAffichees( actions.filter( (action) => @@ -122,7 +122,8 @@ export default function OngletActions({ action.status === StatutAction.EnCours ) ) - else setActionsAffichees(actions) + else */ + setActionsAffichees(actions) setNombrePages(metadonnees.nombrePages) setIsLoading(false) diff --git a/components/action/TableauActionsJeune.tsx b/components/action/TableauActionsJeune.tsx index c58a4f3ce..29fd9d135 100644 --- a/components/action/TableauActionsJeune.tsx +++ b/components/action/TableauActionsJeune.tsx @@ -67,6 +67,12 @@ export default function TableauActionsJeune({ const headerColumnWithButtonHover = 'rounded-base hover:bg-primary_lighten' const columnHeaderButtonStyle = 'flex items-center w-full h-full p-4' + function getOrdreTriParDate() { + return `Trier les actions ordre ${ + getIsSortedDesc() ? 'antéchronologique' : 'chronologique' + }` + } + function filtrerActionsParStatuts(statutsSelectionnes: StatutAction[]) { setStatutsValides(statutsSelectionnes) onFiltres({ @@ -113,7 +119,8 @@ export default function TableauActionsJeune({