-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard: Incorporate the rest of the filters into FiltersProvider #11851
Conversation
Size Change: +949 B (0%) Total Size: 2.65 MB
ℹ️ View Unchanged
|
Plugin builds for 03cc6ce are ready 🛎️!
|
This pull request introduces 1 alert when merging b6ea60f into 5efe289 - view on LGTM.com new alerts:
|
@mwritter There seems to be valid test failures here. Let's get those fixed. |
@spacedmonkey For sure, I was off for the 4th and 5th 🇺🇸 - Im looking into them 👍 |
@@ -82,7 +82,7 @@ describe('Publish panel in document tab', () => { | |||
await page.keyboard.type('auth'); | |||
|
|||
// wait for search results | |||
await page.waitForTimeout(200); | |||
await page.waitForTimeout(500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is being addressed in #11782
@spacedmonkey - That search "dropdown" is populated with story titles, based on your screenshot none of those stories have titles so there are 'No options available' to select in that "dropdown". |
expect(statusFilter.filterId).toBe('New'); | ||
}); | ||
|
||
it('should be able to update the sortObject if the acceptable keys are use', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Probably missing a letter for used
here
expect(filter.filterId).toBeNull(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be helpful to have some more comments in these tests to indicate what you're trying to test / do in each case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or, alternatively, separate the use cases of these tests instead of all in one
Need to wait until the bot leaves a comment saying that the PR is available for testing. Right now this doesn't happen when a draft PR is set to ready for review. It's only triggered when pushing some changes to a non-draft PR. I just merged main into this branch, so in a few minutes the bot will leave a comment and only then will this PR begin to be available for testing on the QA site. Hope that makes sense. |
…ogleForCreators/web-stories-wp into feature/11789_Incorporate_All_Filters
I hadn't realized that the bot didn't update its initial commenting in picking up on the latest changes, makes sense. Thanks for that! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial look at the PR and the functionality in the QA environment looks good so far. I had some super small pieces of feedback but looks good to me.
Ah, my bad for not realizing that the bot did add comments earlier but then the PR was converted to a draft again, which means the ZIPs were never updated. That's indeed very confusing! I'll try to think of a good way to address that. |
Context
Move all filters/sorting logic into one place.
Summary
Incorporates the 'status', 'keyword search', and 'sort' in the FiltersProvider.
Relevant Technical Choices
Moving all the filters/sort into one place and using a hook to tap into them is more maintainable than prop drilling.
To-do
The way we use 'tracking' when 'searching' may need to be updated now that the logic has been moved. Possibly more refactoring to remove old/unnecessary logic.
User-facing changes
Testing Instructions
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
No
Does this PR change what data or activity we track or use?
Possibly - I do believe we'll need to update the search tracking
Does this PR have a legal-related impact?
No
Checklist
Type: XYZ
label to the PRFixes #11668
Fixes #11789
Fixes #11780