Files
opencode-manager/frontend/src/components/activity/CompactActivityList.tsx
T
Chris Scott 8b6251d83b fix(activity): animate the braille spinner in SVG and tighten the activity lists
- Draw the TUI braille spinner as a 2x4 SVG dot cell stepped by declarative
  <animate> timelines derived from SPINNER_FRAMES: no JavaScript timer or React
  render per frame, and it keeps animating under prefers-reduced-motion so an
  active session never looks stalled
- Enlarge the spinner cell and dots so it stays legible next to 14px text
- Add a compact ActivityList variant for the mobile More drawer and Repos sheet:
  one flat list capped at five rows, single-line rows, no group subheadings
- Let ActivityList callers own navigation so a row tap navigates once instead of
  pushing a duplicate history entry
- Share the picker keyboard navigation between the session and project tabs and
  reuse the shared session merge helpers in the sidebar repo groups
2026-10-16 11:42:03 -04:00

21 lines
628 B
TypeScript

import { useActivityWindowMinutes } from '@/hooks/useActiveWork'
import { ActivityList } from '@/components/activity/ActivityList'
/**
* A compact, self-titled Activity section that renders nothing when empty.
* Reads the network through `useActiveWork`, so it must only be mounted while visible.
*/
export function CompactActivityList({ onNavigate }: { onNavigate: (path: string) => void }) {
const minutes = useActivityWindowMinutes()
return (
<ActivityList
minutes={minutes}
title="Activity"
hideWhenEmpty
variant="compact"
onNavigate={(item) => onNavigate(item.path)}
/>
)
}