Repository navigation
feat: one folder view, a padded picker, and ways back - #304
Merged
Merged
Conversation
The picker and the folder cards named --space-5, a token that does not exist, so the dialog had no padding and its rows touched its edges. They now use the tokens that exist, with more room per row. Filing a track no longer indents the root's folders under Unfiled, which is a choice beside them, not their parent. The tag editor gets a Back arrow above its header, back to wherever it was opened from, or to the songs list when there is nowhere to go back to; it shows while the track loads too. Signed-off-by: InstaZDLL <github.105mh@8shield.net>
Contributor
2 tasks done
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.
What the owner found using the Folders page on the dev server after #302 and #303.
One folder view: the filed folders
The page drew the disk tree (#301) beside the filed one (#302). A file uploaded into the folder Test then showed in Test under Filed and in Received under On disk. Both were true, and the owner read it as the file manager contradicting itself.
The Folders page now draws the filed tree only. A track has one place there: its folder, or Unfiled.
pages/folders-page.tsxis the filed view, moved fromcomponents/filed-folders.tsxwithgit mv. The view switch and the disk view are gone, and the root is titled Folders./folderstakes?folder=only: empty for the root,unfiled, or a folder id. Links, the delete redirect and the upload screen's way back follow.getDiskTree,diskTreeQuery, the disk types,RECEIVED_FOLDER,SongTable'scaptions, the view-switch style, and 8 translation keys per language.GET /libraries/{id}/treekeeps its contract for any client that wants it.The folder picker had no padding
.folder-pickerand.folder-listusedvar(--space-5). The spacing tokens go--space-4, then--space-6, so there is no--space-5: the padding resolved to nothing. A scan of every stylesheet for variables used but never defined finds only those two.--space-6of padding, a34remwidth, and taller rows. The cards get their bottom margin.nestedprop onFolderPicker.Dark-theme screenshots were checked on desktop and mobile.
A way back
A shared
PageBackarrow sits above the header. It goes back to wherever the page was opened from, using the router's history rather than the browser's. With nowhere to go back to:Tests
Playwright:
/songs, and fails if Back always callshistory.back()./folders.Each inversion ran on a build that compiles.
Validation
refresh.css),tsc, 190 unit tests, build