-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
DataViews: make dataviews powered page patterns stable #58139
Conversation
Size Change: -1.87 kB (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
@@ -1,42 +1,421 @@ | |||
/** | |||
* WordPress dependencies | |||
*/ | |||
import { __ } from '@wordpress/i18n'; |
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.
The changes in this file are just copy/pasting dataviews-patterns.js
. These can be skipped from the review.
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.
I was surprised that GitHub didn't say the file moved.
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.
There are changes in other files (imports), not sure if that's the reason.
@@ -9,9 +9,8 @@ import { privateApis as routerPrivateApis } from '@wordpress/router'; | |||
import { unlock } from '../../lock-unlock'; | |||
import { useIsSiteEditorLoading } from './hooks'; | |||
import Editor from '../editor'; | |||
import DataviewsPatterns from '../page-patterns/dataviews-patterns'; |
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 file is the only that really changes.
849a323
to
e339b81
Compare
} ); | ||
this.list = this.content.getByRole( 'list' ); | ||
} | ||
} |
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.
Feels like there's an opportunity to test our new screens better. Maybe we should adapt the tests instead?
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.
Yeah, we need to add tests for every new page. I am unsure if I'll have time for that before RC, but can commit to do it in a follow-up.
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.
I agree we should adapt the tests. If the plan is to do it a follow up, maybe just skip them for now?
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.
Sure, I can skip them 4506147 Though I'm skeptical we can reuse any of that code (that's why I removed in the first place).
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.
I added tasks for adding e2e test for every page in the tracking issue.
e339b81
to
a8ef160
Compare
There are a few things (styles, other components, etc.) that we may want to remove. I'll do that in a separate follow-up, to make sure I don't miss any styles. |
Flaky tests detected in 4506147. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7637031084
|
Gave it a quick test. Didn't spot any issues, and I really enjoyed the improved UX 👍 |
f2e5be8
to
4506147
Compare
Milestoned this for 17.6, so it's not missed. |
Part of #55083
What?
This PR makes the dataviews-powered Patterns page stable.
Why?
It's considered to have feature-parity with the existing.
How?
page-patterns/index.js
with those ofpage-patterns/dataviews-patterns.js
and removes the latter.Testing Instructions
Load the "Side Editor > Patterns" page with and without the "admin views" experiment enabled and verify that the dataviews-powered page is loaded.