From 212d4a8c05b0a765c84b95dbaefb37d636bbfec3 Mon Sep 17 00:00:00 2001 From: James Koster Date: Tue, 18 Jun 2024 15:10:33 +0100 Subject: [PATCH] Pages data view: Update status icons (#62136) Co-authored-by: jameskoster Co-authored-by: ntsekouras Co-authored-by: afercia Co-authored-by: jasmussen Co-authored-by: richtabor Co-authored-by: carolinan Co-authored-by: hanneslsm --- .../sidebar-dataviews/default-views.js | 18 +++++++++++++----- packages/icons/src/index.js | 4 ++++ packages/icons/src/library/drafts.js | 2 +- packages/icons/src/library/not-allowed.js | 16 ++++++++++++++++ packages/icons/src/library/pending.js | 16 ++++++++++++++++ packages/icons/src/library/published.js | 16 ++++++++++++++++ packages/icons/src/library/scheduled.js | 16 ++++++++++++++++ 7 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 packages/icons/src/library/not-allowed.js create mode 100644 packages/icons/src/library/pending.js create mode 100644 packages/icons/src/library/published.js create mode 100644 packages/icons/src/library/scheduled.js 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 e75faa60b92e90..e7c2471fe44bc7 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,15 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { trash, pages, drafts, unseen, inbox } from '@wordpress/icons'; +import { + trash, + pages, + drafts, + published, + scheduled, + pending, + notAllowed, +} from '@wordpress/icons'; /** * Internal dependencies @@ -57,7 +65,7 @@ export const DEFAULT_VIEWS = { { title: __( 'Published' ), slug: 'published', - icon: pages, + icon: published, view: { ...DEFAULT_PAGE_BASE, filters: [ @@ -72,7 +80,7 @@ export const DEFAULT_VIEWS = { { title: __( 'Scheduled' ), slug: 'future', - icon: pages, + icon: scheduled, view: { ...DEFAULT_PAGE_BASE, filters: [ @@ -102,7 +110,7 @@ export const DEFAULT_VIEWS = { { title: __( 'Pending' ), slug: 'pending', - icon: inbox, + icon: pending, view: { ...DEFAULT_PAGE_BASE, filters: [ @@ -117,7 +125,7 @@ export const DEFAULT_VIEWS = { { title: __( 'Private' ), slug: 'private', - icon: unseen, + icon: notAllowed, view: { ...DEFAULT_PAGE_BASE, filters: [ diff --git a/packages/icons/src/index.js b/packages/icons/src/index.js index 5ee2eb6ba50c20..c5d5976dd2d5f7 100644 --- a/packages/icons/src/index.js +++ b/packages/icons/src/index.js @@ -160,6 +160,7 @@ export { default as moreHorizontalMobile } from './library/more-horizontal-mobil export { default as moreVertical } from './library/more-vertical'; export { default as moveTo } from './library/move-to'; export { default as navigation } from './library/navigation'; +export { default as notAllowed } from './library/not-allowed'; export { default as notFound } from './library/not-found'; export { default as overlayText } from './library/overlay-text'; export { default as pageBreak } from './library/page-break'; @@ -168,6 +169,7 @@ export { default as page } from './library/page'; export { default as pages } from './library/pages'; export { default as paragraph } from './library/paragraph'; export { default as payment } from './library/payment'; +export { default as pending } from './library/pending'; export { default as percent } from './library/percent'; export { default as positionCenter } from './library/position-center'; export { default as positionLeft } from './library/position-left'; @@ -196,6 +198,7 @@ export { default as previous } from './library/previous'; export { default as next } from './library/next'; export { default as offline } from './library/offline'; export { default as preformatted } from './library/preformatted'; +export { default as published } from './library/published'; export { default as pullLeft } from './library/pull-left'; export { default as pullRight } from './library/pull-right'; export { default as pullquote } from './library/pullquote'; @@ -220,6 +223,7 @@ export { default as rss } from './library/rss'; export { default as search } from './library/search'; export { default as seen } from './library/seen'; export { default as unseen } from './library/unseen'; +export { default as scheduled } from './library/scheduled'; export { default as separator } from './library/separator'; export { default as settings } from './library/settings'; export { default as shadow } from './library/shadow'; diff --git a/packages/icons/src/library/drafts.js b/packages/icons/src/library/drafts.js index 8744c35dfd4dbe..14e2c3a9345f1b 100644 --- a/packages/icons/src/library/drafts.js +++ b/packages/icons/src/library/drafts.js @@ -8,7 +8,7 @@ const drafts = ( ); diff --git a/packages/icons/src/library/not-allowed.js b/packages/icons/src/library/not-allowed.js new file mode 100644 index 00000000000000..cafebb60b7c628 --- /dev/null +++ b/packages/icons/src/library/not-allowed.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const notAllowed = ( + + + +); + +export default notAllowed; diff --git a/packages/icons/src/library/pending.js b/packages/icons/src/library/pending.js new file mode 100644 index 00000000000000..c1c7e326ebe3ef --- /dev/null +++ b/packages/icons/src/library/pending.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const pending = ( + + + +); + +export default pending; diff --git a/packages/icons/src/library/published.js b/packages/icons/src/library/published.js new file mode 100644 index 00000000000000..c23745caca7459 --- /dev/null +++ b/packages/icons/src/library/published.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const published = ( + + + +); + +export default published; diff --git a/packages/icons/src/library/scheduled.js b/packages/icons/src/library/scheduled.js new file mode 100644 index 00000000000000..84c2f01546e6da --- /dev/null +++ b/packages/icons/src/library/scheduled.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const scheduled = ( + + + +); + +export default scheduled;