Skip to content

Update date display to include year and fix consistency across list and details views #6405

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

Merged
merged 7 commits into from
May 7, 2025

Conversation

pa-lem
Copy link
Contributor

@pa-lem pa-lem commented May 5, 2025

Format is:

  • relative if < 7 days
  • d MMM for the current year
  • d MMM yyyy before

The tooltip with absolute value is still available on hover

image

@pa-lem pa-lem added type/bug Something isn't working as expected group/frontend Issue related to the frontend (React) labels May 5, 2025
@pa-lem pa-lem requested a review from a team as a code owner May 5, 2025 08:01
@pa-lem pa-lem changed the title Update date display to include year and fix consistency Update date display to include year and fix consistency accross list and details views May 6, 2025
@pa-lem pa-lem changed the title Update date display to include year and fix consistency accross list and details views Update date display to include year and fix consistency across list and details views May 6, 2025
Comment on lines +27 to +29
<span className="truncate">
<DateDisplay date={attributeData.value} />
</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why should we not display time anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the goal is to make it consistent, it's a request from CS

Copy link
Contributor Author

@pa-lem pa-lem May 6, 2025

Choose a reason for hiding this comment

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

and there was no details in the previous format, with the component it will be more clear since we have the tooltip for the absolute value and it adapts depending on how old the date is

@pa-lem pa-lem merged commit f1f0a68 into stable May 7, 2025
32 checks passed
@pa-lem pa-lem deleted the ple-dates branch May 7, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/frontend Issue related to the frontend (React) type/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants