Skip to content

feat(frontend): show file format labels in FileExplorer - #368

Merged
javi11 merged 1 commit into
mainfrom
feat/file-format-labels
Feb 27, 2026
Merged

feat(frontend): show file format labels in FileExplorer#368
javi11 merged 1 commit into
mainfrom
feat/file-format-labels

Conversation

@javi11

@javi11 javi11 commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a getFormatLabel() utility in fileUtils.ts that maps common file extensions to human-readable labels (e.g. "RAR Archive", "ISO Image", "MKV Video", "PDF Document")
  • Adds iso to the archive extensions list so ISO files receive the FileArchive icon instead of the generic File icon
  • Replaces the generic "Type: file" row in FileCard with the format label (falls back to mime type, then "File")
  • Adds a "Format:" row above "Encryption:" in the FileInfoModal overview tab, rendered only when a recognized format label exists

Test plan

  • .rar file → card shows "RAR Archive", modal shows "Format: RAR Archive"
  • .7z file → card shows "7-Zip Archive", modal shows "Format: 7-Zip Archive"
  • .iso file → card shows FileArchive icon + "ISO Image", modal shows "Format: ISO Image"
  • .mkv file → card shows "MKV Video", modal shows "Format: MKV Video"
  • File with unrecognized extension → falls back to mime type or "File", no Format row in modal
  • bun run check passes with no TypeScript errors

🤖 Generated with Claude Code

…o modal

- Add `getFormatLabel()` utility that maps file extensions to human-readable
  labels (e.g. "RAR Archive", "ISO Image", "MKV Video")
- Add `iso` to archive extensions so ISO files get the FileArchive icon
- Replace generic "Type: file" row in FileCard with format-aware label
- Add "Format:" row above "Encryption:" in FileInfoModal overview tab,
  only rendered when the file has a recognized format

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@javi11
javi11 merged commit e6b5e32 into main Feb 27, 2026
1 check passed
@javi11
javi11 deleted the feat/file-format-labels branch February 27, 2026 15:31
yoshitaka420 pushed a commit to yoshitaka420/altmount that referenced this pull request Jun 1, 2026
…o modal (kipsilabs#368)

- Add `getFormatLabel()` utility that maps file extensions to human-readable
  labels (e.g. "RAR Archive", "ISO Image", "MKV Video")
- Add `iso` to archive extensions so ISO files get the FileArchive icon
- Replace generic "Type: file" row in FileCard with format-aware label
- Add "Format:" row above "Encryption:" in FileInfoModal overview tab,
  only rendered when the file has a recognized format

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant