Skip to content

Commit

Permalink
Pages data view: Add Pending and Private views (#62138)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: jasmussen <[email protected]>
  • Loading branch information
3 people committed May 31, 2024
1 parent 4ca6528 commit d8977b4
Showing 1 changed file with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down

1 comment on commit d8977b4

@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 d8977b4.
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/9320047542
📝 Reported issues:

Please sign in to comment.