Repository navigation
feat(ui): add sortable column headers to the file list - #76
Merged
Merged
Conversation
Add a sticky header row (Name, Size, Last modified) to the file browser. Clicking a header sorts by that column; clicking it again flips the direction. Folders stay above files and keep name order, names sort naturally and case-insensitively, and undated files stay last. Folder actions move into their own column so they no longer sit under "Last modified". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RR6wV54o4jV23tysVcT8HK
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
The file browser had no column headers, so a long listing could not be reordered. This adds a sticky header row (Name, Size, Last modified) where clicking a header sorts by that column.
Behaviour
aria-sortis set on the header cells.file2beforefile10).Note
Sorting is client-side and covers the pages loaded so far. In folders with more than 1,000 objects, the order updates when "Load more" fetches the next page.
Changes
src/renderer/lib/sortEntries.ts(new, with unit tests): pure sort logic and header toggle state.src/renderer/components/files/FileBrowser.tsx: header row and sorted listing.FileBrowser.test.tsx: header click andaria-sorttests.src/renderer/i18n/locales/*.json: four newfiles.column*keys per locale.Testing
npm run lintpasses with no new warnings,npm run typecheckpasses, andnpm testpasses (602 tests).npm start) against a real bucket.🤖 Generated with Claude Code
https://claude.ai/code/session_01RR6wV54o4jV23tysVcT8HK