feat: cute spinners

This commit is contained in:
Brooklyn Nicholson 2026-04-08 13:45:34 -05:00
parent b50d81f212
commit af0f4a52fe
11 changed files with 1429 additions and 240 deletions

View file

@ -0,0 +1,26 @@
import { Box, Text } from 'ink'
import type { Theme } from '../theme.js'
import type { ActivityItem } from '../types.js'
export function ActivityLane({ items, t }: { items: ActivityItem[]; t: Theme }) {
if (!items.length) {
return null
}
const visible = items.slice(-4)
return (
<Box flexDirection="column" marginTop={1}>
{visible.map(item => {
const color = item.tone === 'error' ? t.color.error : item.tone === 'warn' ? t.color.warn : t.color.dim
return (
<Text color={color} dimColor={item.tone === 'info'} key={item.id}>
{t.brand.tool} {item.text}
</Text>
)
})}
</Box>
)
}