flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Frontend] Standardize date/time rendering across pages

Open blurbeast opened this issue 2 weeks ago • 3 comments

Overview & Background

Timestamps render inconsistently: raw toLocaleString() in NotificationDropdown.tsx:244 and ActivityHistory.tsx:221,276, toLocaleDateString() in WebhookTable.tsx:9 and CashflowProjectionChart.tsx:11, explicit Intl.DateTimeFormat("en-US", ...) in dashboard-view.tsx:293-295 and DashboardOverview.tsx:74, and toISOString() in the CSV export (ActivityHistory.tsx:61). Some panels show seconds, others date-only; some use the raw browser locale, others pinned en-US; none show a timezone — despite a DeFi product where UTC matters. utils/format.ts:72-86 already defines formatDate/formatDateTime, but components bypass it.


Technical Specification & Architecture

  1. Route all display dates through formatDate/formatDateTime, adding timezone-aware options.
  2. Keep ISO only for exports.

Target Files

  • frontend/src/utils/format.ts
  • frontend/src/components/NotificationDropdown.tsx
  • frontend/src/components/dashboard/ActivityHistory.tsx
  • frontend/src/components/webhooks/WebhookTable.tsx
  • frontend/src/components/dashboard/CashflowProjectionChart.tsx
  • frontend/src/app/streams/[id]/stream-details-content.tsx

Acceptance Criteria

  • [ ] One date formatting path for display, one (ISO) for exports.
  • [ ] Timezone handling is explicit and documented.
  • [ ] No raw toLocaleString/toLocaleDateString on display paths.

blurbeast avatar Nov 18 '26 19:11 blurbeast

@xeron-droid has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

i can soove

ℹ️ Repo Maintainers: To accept this application, review their application or assign @xeron-droid to this issue.

xeron-droid avatar Nov 21 '26 07:11 xeron-droid

Congratulations, @xeron-droid! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @xeron-droid: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 21 '26 07:11 drips-wave[bot]

This issue has been completed by @xeron-droid as part of the Stellar Wave Program's 11th Wave 🥳

😎 @xeron-droid: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 24 '26 17:11 drips-wave[bot]