feat(cloud): Apps-style tabs, categories and federated file search #84

Merged
ai merged 2 commits from cloud-tabs-search into main 2026-07-15 09:02:57 +00:00
Showing only changes of commit df90cdaac9 - Show all commits

View File

@ -436,8 +436,9 @@ function categoryOf(nameOrMime: string): Exclude<CategoryId, 'all'> {
return 'documents'
}
const FALLBACK_SECTION: ContentSection = contentSections[2]!
function categoryMeta(cat: Exclude<CategoryId, 'all'>): ContentSection {
return contentSections.find(s => s.id === cat) ?? contentSections[2]
return contentSections.find(s => s.id === cat) ?? FALLBACK_SECTION
}
function formatSize(bytes: number): string {