mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix(site): move analytics date range above cards (#23158)
This commit is contained in:
@@ -63,12 +63,6 @@ export const UserAnalyticsDialog: FC<UserAnalyticsDialogProps> = ({
|
||||
<SectionHeader
|
||||
label="Analytics"
|
||||
description="Review your personal chat usage and cost breakdowns."
|
||||
action={
|
||||
<div className="flex items-center gap-2 text-xs text-content-secondary">
|
||||
<BarChart3Icon className="h-4 w-4" />
|
||||
<span>{dateRange.rangeLabel}</span>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
<DialogClose asChild>
|
||||
<Button
|
||||
@@ -82,6 +76,11 @@ export const UserAnalyticsDialog: FC<UserAnalyticsDialogProps> = ({
|
||||
</DialogClose>
|
||||
</div>
|
||||
|
||||
<div className="mb-4 flex w-fit items-center gap-2 text-xs text-content-secondary">
|
||||
<BarChart3Icon className="h-4 w-4" />
|
||||
<span>{dateRange.rangeLabel}</span>
|
||||
</div>
|
||||
|
||||
<ChatCostSummaryView
|
||||
summary={summaryQuery.data}
|
||||
isLoading={summaryQuery.isLoading}
|
||||
|
||||
Reference in New Issue
Block a user