Skip to content

Commit

Permalink
DataViews: Mark the new Templates pages as stable (#57109)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Dec 15, 2023
1 parent ab04a95 commit 2ec7f37
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 483 deletions.
12 changes: 7 additions & 5 deletions packages/dataviews/src/view-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,13 @@ export default function ViewActions( {
}
>
<DropdownMenuGroup>
<ViewTypeMenu
view={ view }
onChangeView={ onChangeView }
supportedLayouts={ supportedLayouts }
/>
{ window?.__experimentalAdminViews && (
<ViewTypeMenu
view={ view }
onChangeView={ onChangeView }
supportedLayouts={ supportedLayouts }
/>
) }
<SortMenu
fields={ fields }
view={ view }
Expand Down
7 changes: 1 addition & 6 deletions packages/edit-site/src/components/page-main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
import PagePatterns from '../page-patterns';
import PageTemplateParts from '../page-template-parts';
import PageTemplates from '../page-templates';
import DataviewsTemplates from '../page-templates/dataviews-templates';
import PagePages from '../page-pages';
import { unlock } from '../../lock-unlock';

Expand All @@ -21,11 +20,7 @@ export default function PageMain() {
} = useLocation();

if ( path === '/wp_template/all' ) {
return window?.__experimentalAdminViews ? (
<DataviewsTemplates />
) : (
<PageTemplates />
);
return <PageTemplates />;
} else if ( path === '/wp_template_part/all' ) {
return <PageTemplateParts />;
} else if ( path === '/patterns' ) {
Expand Down
Loading

1 comment on commit 2ec7f37

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in 2ec7f37.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7223392426
📝 Reported issues:

Please sign in to comment.