You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: fix truncated timestamps in sandbox logs and events and unify date formats (#445)
Consistent date/time/number formatting
### What changed
Pinned locale-sensitive formatting to en-US across the dashboard so
timestamps, dates, and numbers render identically for every viewer (the
timezone offset still follows the user's local zone). This keeps
fixed-width columns stable and avoids SSR/client hydration mismatches.
Affected surfaces: logs, events tab, sandboxes list, templates
list/detail, sandbox header (started/ended), stopped banner, chart
tooltips, monitoring memory marker, billing add-on dialog, and the
calendar labels.
Widened timestamp columns to fit the full stamp and stop truncation —
logs 164px → 190px, events tab 174px → 190px.
Time-range picker boundary messages now use the picker's own YYYY/MM/DD
HH:MM:SS format instead of a browser-localized string, so "cannot be
before/after …" messages match the input fields and can be typed
straight back in.
Refactors
- Extracted a shared formatRelativeDateTime helper for the sandbox
header (uses date-fns isToday/isYesterday), removing duplicated logic
across started-at/ended-at.
- Logs timestamp cell now uses the shared formatLocalLogStyleTimestamp
(with a -- fallback for invalid timestamps).
- Timezone resolution in the shared formatter is now opt-in
(includeTimezone) to skip an expensive Intl call on hot virtualized
rows.
| Before | After |
|--------|--------|
| <img width="163" height="351" alt="Screenshot 2026-06-19 at 16 36 27
(1)"
src="https://github.com/user-attachments/assets/90dd20ef-3ff6-43ed-8a7b-510a2bee4db3"
/> | <img width="261" height="319" alt="Screenshot 2026-06-21 at 18 31
30"
src="https://github.com/user-attachments/assets/f6515e67-6c23-4226-a08a-cd0905bfd7a5"
/> |
| <img width="991" height="623" alt="Screenshot 2026-06-19 at 18 18 29
(1)"
src="https://github.com/user-attachments/assets/21edd023-2034-4809-a42f-5481585f1b4d"
/> | <img width="1034" height="371" alt="Screenshot 2026-06-21 at 18 31
42"
src="https://github.com/user-attachments/assets/7240a7b0-6c03-4c96-b3ea-be99cfee72c7"
/> |
0 commit comments