feat(frontend): show file format labels in FileExplorer - #368
Merged
Conversation
…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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
getFormatLabel()utility infileUtils.tsthat maps common file extensions to human-readable labels (e.g."RAR Archive","ISO Image","MKV Video","PDF Document")isoto the archive extensions list so ISO files receive theFileArchiveicon instead of the genericFileicon"Type: file"row inFileCardwith the format label (falls back to mime type, then"File")"Format:"row above"Encryption:"in theFileInfoModaloverview tab, rendered only when a recognized format label existsTest plan
.rarfile → card shows "RAR Archive", modal shows "Format: RAR Archive".7zfile → card shows "7-Zip Archive", modal shows "Format: 7-Zip Archive".isofile → card showsFileArchiveicon + "ISO Image", modal shows "Format: ISO Image".mkvfile → card shows "MKV Video", modal shows "Format: MKV Video"bun run checkpasses with no TypeScript errors🤖 Generated with Claude Code