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

437 fixbug correction front ulam listes des missions #443

Closed

Conversation

aleckvincent
Copy link
Collaborator

No description provided.

@aleckvincent aleckvincent linked an issue Nov 26, 2024 that may be closed by this pull request
Copy link

Coverage Report for frontend

Status Category Percentage Covered / Total
🟢 Lines 76.24% (🎯 50%) 1974 / 2589
🟢 Statements 76.13% (🎯 50%) 2054 / 2698
🟢 Functions 73.13% (🎯 50%) 509 / 696
🟢 Branches 68.73% (🎯 50%) 910 / 1324
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
frontend/src/features/common/utils/dates-for-humans.ts 100% 80% 100% 100%
Generated in workflow #1349 for commit 48dd7d6 by the Vitest Coverage Report Action

Copy link

Overall Project 47.01%

There is no coverage information present for the Files changed

@@ -51,11 +52,15 @@ const formatShortDate = (date: DateTypes): string => formatDate(date, SHORT_DAY_

const formatTime = (date: DateTypes): string => formatDate(date, SHORT_TIME, EMPTY_SHORT_TIME)

const formatDateFormMissionUlamName = (date: DateTypes): string =>
formatDate(date, MISSION_ULAM_NAME_FORMAT, EMPTY_FRENCH_DAY_MONTH_YEAR)
Copy link
Collaborator

Choose a reason for hiding this comment

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

il existe un hook useDate dans V2, c'est ce qu'il faut utiliser.
Il ne doit pas avoir de dépendance entre V2 et V1

import {
formatDateForFrenchHumans,
formatDateFormMissionUlamName
} from '@common/utils/dates-for-humans.ts'
import MissionCompletenessForStatsTag from './mission-completeness-for-stats-tag.tsx';
import MissionStatusTag from './mission-status-tag.tsx';
import MissionOpenByTag from '@features/pam/mission/components/elements/mission-open-by-tag.tsx';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pareil, pas de dépendances entre v1 et V2, si le component existe pas coté v2, le recréer, dans la bonne arborescence v2/common/components/(ui/elements/layout)

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.

fixbug: correction front ULAM listes des missions
2 participants