From 04a8f626e60949e51345b7afa124b5357e4cf1e7 Mon Sep 17 00:00:00 2001 From: James Koster Date: Thu, 30 May 2024 12:54:00 +0100 Subject: [PATCH] Pages data view: Add Pending and Private views --- .../sidebar-dataviews/default-views.js | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) 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 6a10e0cd95d7b3..e75faa60b92e90 100644 --- a/packages/edit-site/src/components/sidebar-dataviews/default-views.js +++ b/packages/edit-site/src/components/sidebar-dataviews/default-views.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { trash, pages, drafts } from '@wordpress/icons'; +import { trash, pages, drafts, unseen, inbox } from '@wordpress/icons'; /** * Internal dependencies @@ -99,6 +99,36 @@ export const DEFAULT_VIEWS = { ], }, }, + { + title: __( 'Pending' ), + slug: 'pending', + icon: inbox, + view: { + ...DEFAULT_PAGE_BASE, + filters: [ + { + field: 'status', + operator: OPERATOR_IS_ANY, + value: 'pending', + }, + ], + }, + }, + { + title: __( 'Private' ), + slug: 'private', + icon: unseen, + view: { + ...DEFAULT_PAGE_BASE, + filters: [ + { + field: 'status', + operator: OPERATOR_IS_ANY, + value: 'private', + }, + ], + }, + }, { title: __( 'Trash' ), slug: 'trash',