diff --git a/web/src/pages/DashboardPage.tsx b/web/src/pages/DashboardPage.tsx index 3530c34..088da41 100644 --- a/web/src/pages/DashboardPage.tsx +++ b/web/src/pages/DashboardPage.tsx @@ -916,6 +916,7 @@ export default function DashboardPage() { transactions={data.recentTransactions} hasData={hasTx} rangeLabel={useTrendWindowPagination ? trendWindowLabel : undefined} + userTimezone={userTimezone} /> @@ -1117,6 +1118,7 @@ export default function DashboardPage() { transactions={data.recentTransactions} hasData={hasTx} rangeLabel={useTrendWindowPagination ? trendWindowLabel : undefined} + userTimezone={userTimezone} /> )} @@ -1278,19 +1280,29 @@ function RecentTransactionsPanel({ transactions, hasData, rangeLabel, + userTimezone, }: { transactions: DashboardResponse["recentTransactions"]; hasData: boolean; rangeLabel?: string; + userTimezone: string; }) { const title = rangeLabel ? "Transactions in window" : "Recent transactions"; const visibleTransactions = transactions.slice(0, 10); + const currentMonthLabel = new Intl.DateTimeFormat("en-US", { + month: "long", + year: "numeric", + timeZone: userTimezone, + }).format(new Date()); if (!hasData) { return (

{title}

{rangeLabel ?
{rangeLabel}
: null} +
+ Tip: Records defaults to This month ({currentMonthLabel}). +

{title}

{rangeLabel ?
{rangeLabel}
: null} +
+ Tip: Records defaults to This month ({currentMonthLabel}). +
{/* Desktop table view */}
@@ -1358,7 +1373,7 @@ function RecentTransactionsPanel({ ))}
- + View more