Skip to content

Conversation

@yaira2
Copy link
Member

@yaira2 yaira2 commented Jul 14, 2025

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Confirmed that both the action on toolbar toggle button correctly toggle the filter header
  2. Confirmed that the visibility of the header persists across sessions
  3. Confirmed that folder contents are correctly filtered when entering text
  4. Confirmed that the text box is cleared when switching folders
  5. Confirmed that the header is hidden on the home page

@yaira2 yaira2 marked this pull request as draft July 14, 2025 14:48
@Lukiluc29
Copy link
Contributor

Is this related to this request? #4813

@yaira2
Copy link
Member Author

yaira2 commented Jul 14, 2025

No, this is to separate file search from filtering in preparation for #16029.

@yaira2 yaira2 marked this pull request as ready for review July 14, 2025 22:36
@yaira2 yaira2 marked this pull request as draft July 14, 2025 22:36
@yaira2 yaira2 marked this pull request as ready for review July 15, 2025 02:55
@yaira2 yaira2 requested review from 0x5bfa and hishitetsu July 15, 2025 02:55
@yaira2 yaira2 added the ready for review Pull requests that are ready for review label Jul 15, 2025
Copy link
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Behavior wise, looks good to me.

if (IsOn)
{
var filterTextBox = (MainWindow.Instance.Content as Frame)?.FindDescendant("FilterTextBox") as AutoSuggestBox;
filterTextBox?.Focus(FocusState.Programmatic);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably recommend to create a method

ContentPageContext.ShellPage?.TryFocusItemFilterTextBox();

@yaira2 yaira2 force-pushed the ya/Filter branch 7 times, most recently from e17dbcd to 4353e98 Compare July 15, 2025 20:51
@yaira2 yaira2 merged commit 68d16a2 into main Jul 15, 2025
8 checks passed
@yaira2 yaira2 deleted the ya/Filter branch July 15, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants