Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Palette's Journal

Critical UX/Accessibility Learnings
1 change: 1 addition & 0 deletions .github/workflows/model-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
REAL_DATA_MIN_DAYS: 7
LEARNED_KFOLDS: 5
LEARNED_MAX_VAL_LOSS: 0.2
FORECAST_BACKTEST_STALE_DAYS: '7'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
25 changes: 17 additions & 8 deletions src/components/dashboard/dashboard-header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client'

import { RefreshCcw } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'

/**
* DashboardHeader - Ramp/Brex Dashboard Header Strip
Expand All @@ -26,14 +27,22 @@ export function DashboardHeader({
{/* Date range selector would go here */}
{/* Export button would go here */}
{onRefresh && (
<button
onClick={onRefresh}
disabled={isLoading}
className="p-1.5 text-[#9CA3AF] hover:text-[#333333] transition-colors rounded-md hover:bg-[#FAFAFA]"
aria-label="Refresh"
>
<RefreshCcw className={`size-4 ${isLoading ? 'animate-spin' : ''}`} />
</button>
<Tooltip>
<TooltipTrigger asChild>
<button
onClick={onRefresh}
disabled={isLoading}
className="p-1.5 text-[#9CA3AF] hover:text-[#333333] transition-colors rounded-md hover:bg-[#FAFAFA]"
aria-label="Refresh"
aria-busy={isLoading ? 'true' : undefined}
>
<RefreshCcw className={`size-4 ${isLoading ? 'animate-spin' : ''}`} />
</button>
</TooltipTrigger>
<TooltipContent>
<p>Refresh dashboard</p>
</TooltipContent>
</Tooltip>
)}
{/* Account menu would go here */}
</div>
Expand Down
Loading