1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/frontend/src
Thomas Heartman 5c74c34cbf
chore: Add date to archive vs creation tooltip (#10578)
Makes it easier to understand what piece of data you're looking at. The
raw date isn't available directly, but we have the formatted version for
the tooltip, so we'll display that.

This PR changes the format to be more in line with the UX sketches (just
numbers and separators instead of words). In theory, it should also be
possible to [adjust the
locale](https://www.npmjs.com/package/chartjs-adapter-date-fns#locale-support-via-scale-options)
(in this case, it should be to the user's chosen locale), but I can't
seem to make that option work. I don't want to spend more time on that
right now, unless we get feedback on it. However, _yes_ the format is
american, and _yes_, that puts months ahead of days. However, you also
have the date in longer form on the x axis, so I think you'll be able to
work it out.


Before:
<img width="279" height="139" alt="image"
src="https://github.com/user-attachments/assets/5c71e708-9d9f-412a-acbb-7d28e5071d5a"
/>


After: 
<img width="246" height="154" alt="image"
src="https://github.com/user-attachments/assets/13a4f5b3-281b-4003-8aae-a248578fead8"
/>
2025-09-01 07:19:47 +00:00
..
__mocks__
assets feat: GitHub auth (#10406) 2025-07-24 15:25:25 +01:00
component chore: Add date to archive vs creation tooltip (#10578) 2025-09-01 07:19:47 +00:00
constants delete legacy constraint accordion (#10110) 2025-06-11 12:22:55 +02:00
contexts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
hooks feat: make impact metrics config save call (#10576) 2025-08-29 11:26:11 +02:00
interfaces chore(AI): filterFlagsToArchive flag cleanup (#10565) 2025-08-29 08:44:28 +02:00
openapi chore: orval with impact metrics (#10573) 2025-08-29 09:23:38 +02:00
themes Update chart colors to increase contrasts between the A series. (#10579) 2025-09-01 08:22:44 +02:00
types
utils feat: Display example date for date formatting reasons (#10444) 2025-07-31 11:07:32 +02:00
index.tsx feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
setupTests.ts
vite-env.d.ts