feat(header): move mobile reports into the More menu and compact the header

This commit is contained in:
Chris Scott committed 2026-10-18 19:27:03 -04:00
1 parent 7f5c242fe0
commit db40b71108
9 files changed
+232 -66

No files matched your search

@@ -1,19 +1,25 @@
import { MoreVertical } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { ScheduleReportsBadge } from '@/components/notifications/ScheduleReportsBadge'
import { useUnreadScheduleRuns } from '@/hooks/useSchedules'
import { useMobileTabBar } from '@/hooks/useMobileTabBar'
export function SessionMoreButton() {
const { open } = useMobileTabBar()
const { data } = useUnreadScheduleRuns()
const total = data?.total ?? 0
const failed = data?.failed ?? 0
return (
<Button
variant="outline"
size="sm"
onClick={() => open('more')}
className="md:hidden h-10 w-10 p-0 text-foreground border-border hover:bg-accent"
aria-label="More"
className="relative md:hidden h-10 w-10 p-0 text-foreground border-border hover:bg-accent"
aria-label={total > 0 ? `More, ${total} unread reports` : 'More'}
>
<MoreVertical className="w-5 h-5" />
<ScheduleReportsBadge total={total} failed={failed} />
</Button>
)
}