[PULSE-4] Goals & Events dashboard block and settings UI #5

Merged
uz1mani merged 8 commits from staging into main 2026-02-04 15:04:10 +00:00
7 changed files with 381 additions and 2 deletions
Showing only changes of commit 5c3f6f8516 - Show all commits

View File

@@ -378,7 +378,7 @@ export default function SiteDashboardPage() {
</div>
<div className="mb-8">
<GoalStats goalCounts={goalCounts} siteId={siteId} dateRange={dateRange} />
<GoalStats goalCounts={goalCounts} />
</div>
<DatePicker

View File

@@ -7,13 +7,11 @@ import type { GoalCountStat } from '@/lib/api/stats'
interface GoalStatsProps {
goalCounts: GoalCountStat[]
siteId: string
dateRange: { start: string; end: string }
}
const LIMIT = 10
export default function GoalStats({ goalCounts, siteId, dateRange }: GoalStatsProps) {
export default function GoalStats({ goalCounts }: GoalStatsProps) {
const list = (goalCounts || []).slice(0, LIMIT)
const hasData = list.length > 0