mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
feat(activity): surface active work across the session picker, tool rail and mobile
This commit is contained in:
1 parent
be874ee07c
commit
d8f2fcf29c
46 files changed
+3120
-277
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { useActivityWindowMs } 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 windowMs = useActivityWindowMs()
|
||||
|
||||
return (
|
||||
<ActivityList
|
||||
windowMs={windowMs}
|
||||
title="Activity"
|
||||
hideWhenEmpty
|
||||
variant="compact"
|
||||
onNavigate={(item) => onNavigate(item.path)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user