Repository navigation
Conversation
5 tasks done
This branch has not been deployed
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 SFTP file table gains clickable Name, Size, Type, Modified and Permissions headers using MyGo's existing sorting API. Click the active column to reverse direction or another column to start ascending. Directories stay first, sizes/timestamps/permissions use their numeric values, type uses the current localized label, and equal values use complete name ties. Selection, keyboard cursor, refresh and rename/reveal follow names; sort choices stay independent per session.
The sorting audit also fixes excessive UI-thread work for large mixed-case directories. Folded text keys are computed once per row, lightweight indices are sorted, and ordered entries are copied back into the original slice to preserve reveal's shared-slice semantics. Median 100,000-row name sorting improves from 1,946.703 ms / 213.370 MB allocated to 190.305 ms / 16.810 MB over three runs. Sorting stays synchronous and uses O(n) scratch storage, including for numeric columns. Bilingual behavior/development docs and the existing header screenshots are included.
Closes #242
Testing
TestFileSortAuditAllocationGrowth: 1,000 rows allocate 28,138 objects against a 4,100 budget. The fixed regression passes without a wall-clock threshold.78c2f91passes.go test -race ./... -count=1 -timeout 20mcompletes: app has 341 passing, 16 skipped and only the three failures already reproduced on unchanged upstream (TestBackgroundImage,TestBackgroundReadsOffUIThread,TestCommandBarPage). Other packages pass or have no tests. No races, timeouts or unfinished tests.English and Simplified Chinese screenshots (descending order)
Prepared with Codex.