mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
- 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
21 lines
628 B
TypeScript
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)}
|
|
/>
|
|
)
|
|
}
|