Added nml loading

This commit is contained in:
Ben committed 2026-07-03 16:40:40 +02:00
1 parent 3ace90179b
commit cc254e9a9b
10 files changed
+400 -59

No files matched your search

+20 -2
View File
@@ -3,9 +3,18 @@ interface Props {
total: number
sourceName: string
loading?: boolean
collectionName?: string | null
onChangeCollection?: () => void
}
export function StatusBar({ showing, total, sourceName, loading }: Props) {
export function StatusBar({
showing,
total,
sourceName,
loading,
collectionName,
onChangeCollection,
}: Props) {
return (
<div className="flex items-center gap-3 border-t border-line bg-ink-900 px-4 py-2 text-xs text-muted">
<span className="font-medium text-text">{sourceName}</span>
@@ -23,7 +32,16 @@ export function StatusBar({ showing, total, sourceName, loading }: Props) {
)}
</span>
)}
<span className="ml-auto text-faint">konduktor · phase 3</span>
{collectionName && (
<button
onClick={onChangeCollection}
className="ml-auto flex items-center gap-1.5 rounded px-2 py-0.5 text-faint hover:bg-ink-800 hover:text-text"
title="Change collection"
>
<span className="text-[11px]">⎘</span>
<span className="max-w-[220px] truncate font-mono text-[11px]">{collectionName}</span>
</button>
)}
</div>
)
}