${s
? html`
${this.formatCount(s.artists)} artists
·
${this.formatCount(s.recordings)} recordings
·
${this.formatCount(s.releaseGroups)} albums
·
${this.formatCount(s.totalRows)} total
${s.lastBuilt
? html`·
updated ${this.timeAgo(s.lastBuilt)}`
: nothing}
${s.tiers?.length > 0 && s.tiers.some((t) => t.state === 'running' || t.state === 'pending' || t.state === 'error')
? html`
${s.tiers.map(
(t) => html`
${this.tierIcon(t.state)}
${t.name}
${t.state === 'running' && t.total > 0
? html`${t.completed}/${t.total}`
: nothing}
${t.state === 'error'
? html`${t.error}`
: nothing}
`,
)}
`
: nothing}
${!s.building && s.ready
? html`
Index ready
`
: !s.building && !s.ready && s.totalRows === 0
? html`
Index empty — build will start after library scan
`
: !s.building && !s.ready
? html`
Waiting for index build…
`
: nothing}
`
: html`
Loading status…
`}