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,25 @@
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
interface ActivityCountPillProps {
|
||||
needsInput: number
|
||||
running: number
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function ActivityCountPill({ needsInput, running, className }: ActivityCountPillProps) {
|
||||
const total = needsInput + running
|
||||
if (total === 0) return null
|
||||
|
||||
return (
|
||||
<span
|
||||
aria-hidden="true"
|
||||
className={cn(
|
||||
'flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[10px] font-semibold leading-none',
|
||||
needsInput > 0 ? 'bg-warning text-warning-foreground' : 'bg-primary text-primary-foreground',
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{total}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user