mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
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
This commit is contained in:
1 parent
d8f2fcf29c
commit
8b6251d83b
24 files changed
+858
-787
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { useActivityWindowMs } from '@/hooks/useActiveWork'
|
||||
import { useActivityWindowMinutes } from '@/hooks/useActiveWork'
|
||||
import { ActivityList } from '@/components/activity/ActivityList'
|
||||
|
||||
/**
|
||||
@@ -6,11 +6,11 @@ import { ActivityList } from '@/components/activity/ActivityList'
|
||||
* Reads the network through `useActiveWork`, so it must only be mounted while visible.
|
||||
*/
|
||||
export function CompactActivityList({ onNavigate }: { onNavigate: (path: string) => void }) {
|
||||
const windowMs = useActivityWindowMs()
|
||||
const minutes = useActivityWindowMinutes()
|
||||
|
||||
return (
|
||||
<ActivityList
|
||||
windowMs={windowMs}
|
||||
minutes={minutes}
|
||||
title="Activity"
|
||||
hideWhenEmpty
|
||||
variant="compact"
|
||||
|
||||
Reference in new issue
Block a user