Add extension filter and sort controls to status panel #63
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
state: Done
state: New
state: To Do
type: Bug
type: Feature
type: Task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Christoph/Gitty!63
Loading…
Reference in a new issue
No description provided.
Delete branch "filter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This change adds a filter-and-sort UI for the Status panel and the underlying filtering/sorting logic.
Summary
default,name,ext), pick sort direction (ascending/descending), toggle visibility per file extension, and reset filters.Important implementation notes (from the diff)
UI:
StatusPanel.sveltehiddenExtensions,sortKey,sortDescending, and menu positioning (filterMenuOpen,filterMenuX,filterMenuY).fileExtension,compareFiles,applyFilterAndSort,toggleExtensionVisible,clearStatusFilters, andtoggleFilterMenu.buildStatusTree(..., key, direction)andsortStatusTree(..., key, direction).availableExtensions,filtersActive,unstagedFiles,stagedFiles,treeDirection, andunstagedTree/stagedTreeare computed to incorporate filtering and sorting.filterMenuOpenand includes extension counts, checkboxes, sort controls and a reset button.Styling:
src/app.cssadds styles for.status-filter-btn,.status-filter-menu,.status-seg,.status-ext-list,.status-ext-row,.status-ext-box, and related classes to match the new menu UI.i18n:
src/lib/messages.tsadds message keys used by the filter UI (labels, hints, and reset text).Behavioral details you can verify from the diff
NO_EXTENSIONkey and are sorted to appear before extensions when sorting by extension ascending.applyFilterAndSort.extgroups by extension then falls back to filename ordering; sorting bynameordefaultpreserves name-based ordering.Testing
No test execution results were provided.
Recommended manual checks for the reviewer
Extensionand toggle ascending/descending — the tree/list order should reflect extension grouping and direction.status.filterNoMatchmessage rather than the empty-lane message.Notes / Risks
fileExtension,compareFiles, andapplyFilterAndSortif desired.No reviewer action beyond code review is required unless translations need updating or additional tests should be added.