fix: adjust file picker for background image to allow folder navigation#61688
Open
cristianscheid wants to merge 1 commit into
Open
fix: adjust file picker for background image to allow folder navigation#61688cristianscheid wants to merge 1 commit into
cristianscheid wants to merge 1 commit into
Conversation
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
8 tasks
susnux
approved these changes
Jul 1, 2026
Contributor
|
If possible it would be really great to have a small PlayWright test for this |
artonge
approved these changes
Jul 1, 2026
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
Currently, the file picker to change user background (under
settings/user/theming) does not allow to navigate folders when searching for a file. Instead, it only shows files from root directory on "All files" tab.This happens because of
setFilter((node) => node.mime.startsWith('image/')), which causes folders to be filtered out from results. This PR changes this line to usesetMimeTypeFilter(['image/*']), which allows to navigate folders while mantaining the filter to only allow image selection.Screenshots
Checklist
3. to review, feature component)stable32)AI (if applicable)