Add 5-second auto-refresh for dashboard Activity feed
All checks were successful
Build and Push Docker Image / build (push) Successful in 9m0s
All checks were successful
Build and Push Docker Image / build (push) Successful in 9m0s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -121,6 +121,10 @@ export function DashboardContent({ editionId, sessionName }: DashboardContentPro
|
||||
{ editionId, limit: 8 },
|
||||
{ enabled: !!editionId, refetchInterval: 30_000 }
|
||||
)
|
||||
const { data: liveActivity } = trpc.dashboard.getRecentActivity.useQuery(
|
||||
{ limit: 8 },
|
||||
{ enabled: !!editionId, refetchInterval: 5_000 }
|
||||
)
|
||||
|
||||
if (isLoading) {
|
||||
return <DashboardSkeleton />
|
||||
@@ -268,7 +272,7 @@ export function DashboardContent({ editionId, sessionName }: DashboardContentPro
|
||||
</AnimatedCard>
|
||||
|
||||
<AnimatedCard index={6}>
|
||||
<ActivityFeed activity={recentActivity} />
|
||||
<ActivityFeed activity={liveActivity ?? recentActivity} />
|
||||
</AnimatedCard>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user