DataViews: make list layout the default for templates with the experiment enabled#57933
Conversation
|
Size Change: +162 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
|
I thought that this would be the default for the Templates screen in 6.5, so I'm wondering if it should not be hidden under the experiments? |
|
@carolinan We're still trying to assess whether we can make the list view replace the existing screens. The biggest blocker for now is this PR #57938 But both options are still on the table for 6.5.
|
ntsekouras
left a comment
There was a problem hiding this comment.
I guess we can land this and iterate, thanks!
| // Switch to table layout. | ||
| await page.getByLabel( 'View options' ).click(); | ||
| await page.getByRole( 'menuitem', { name: 'Layout' } ).click(); | ||
| await page.getByRole( 'menuitemradio', { name: 'Table' } ).click(); |
There was a problem hiding this comment.
Maybe we should start dividing some tests per view..
| }; | ||
|
|
||
| const DEFAULT_VIEW = { | ||
| type: LAYOUT_TABLE, |
There was a problem hiding this comment.
I've got a minimal follow-up #57960
I realized that we may still want to use the table layout when the experiment is disabled ("site editor > templates > manage all templates"), as the list layout is not stable yet.
|
Probably not a big deal but a small observation: The 'old' list view is sorted alphabetically which is different to the default sort order for the new one. Should they match (#57114)? It could be good to decide which views (and their configs) to include. IE do we do something like Patterns and provide pre-filtered views additional to the All templates list? This could go some way to mimicking the old template list which is grouped by theme/plugin/custom. Alternatively we look into adding a 'group by field' view option (#57967) and group by author as the default behavior. |
Part of #55083
What?
This PR makes the dataviews powered-page the default for the Templates page root.
Before:
Gravacao.do.ecra.2024-01-17.as.19.49.16.mov
After:
Gravacao.do.ecra.2024-01-17.as.19.47.44.mov
Why?
It's the target flow we want.
How?
Testing Instructions