From 4a7bf32c352a6a157e296c0622e8ae61e26bcfec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Mon, 27 May 2024 14:22:03 +0200 Subject: [PATCH] Pages sidebar: adds published & scheduled items (#62021) Co-authored-by: oandregal Co-authored-by: ntsekouras --- .../sidebar-dataviews/default-views.js | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/packages/edit-site/src/components/sidebar-dataviews/default-views.js b/packages/edit-site/src/components/sidebar-dataviews/default-views.js index 7610adb006509f..6a10e0cd95d7b3 100644 --- a/packages/edit-site/src/components/sidebar-dataviews/default-views.js +++ b/packages/edit-site/src/components/sidebar-dataviews/default-views.js @@ -54,6 +54,36 @@ export const DEFAULT_VIEWS = { icon: pages, view: DEFAULT_PAGE_BASE, }, + { + title: __( 'Published' ), + slug: 'published', + icon: pages, + view: { + ...DEFAULT_PAGE_BASE, + filters: [ + { + field: 'status', + operator: OPERATOR_IS_ANY, + value: 'publish', + }, + ], + }, + }, + { + title: __( 'Scheduled' ), + slug: 'future', + icon: pages, + view: { + ...DEFAULT_PAGE_BASE, + filters: [ + { + field: 'status', + operator: OPERATOR_IS_ANY, + value: 'future', + }, + ], + }, + }, { title: __( 'Drafts' ), slug: 'drafts',