Skip to content

fix: adjust file picker for background image to allow folder navigation#61688

Open
cristianscheid wants to merge 1 commit into
masterfrom
fix/58645/background-file-picker
Open

fix: adjust file picker for background image to allow folder navigation#61688
cristianscheid wants to merge 1 commit into
masterfrom
fix/58645/background-file-picker

Conversation

@cristianscheid

Copy link
Copy Markdown
Member

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 use setMimeTypeFilter(['image/*']), which allows to navigate folders while mantaining the filter to only allow image selection.

Screenshots

Before After
Screenshot from 2026-07-01 07-44-10 Screenshot from 2026-07-01 07-45-57
Screenshot from 2026-07-01 07-46-06

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
@susnux

susnux commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

If possible it would be really great to have a small PlayWright test for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

3 participants