From c15845ef332615b294e07b1b2718a9917323e4d2 Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Wed, 28 Aug 2024 15:36:37 -0400 Subject: [PATCH] docs: fixing repoStatus tag icons (#1796) * docs: fixing repoStatus tag icons * docs: update var name from iconname to iconName --------- Co-authored-by: Adam Johnson --- docs/_plugins/shortcodes/repoStatus.cjs | 24 ++++++++----- docs/design-code-status/index.md | 46 +++---------------------- 2 files changed, 21 insertions(+), 49 deletions(-) diff --git a/docs/_plugins/shortcodes/repoStatus.cjs b/docs/_plugins/shortcodes/repoStatus.cjs index 0c06efb909..0912e2d487 100644 --- a/docs/_plugins/shortcodes/repoStatus.cjs +++ b/docs/_plugins/shortcodes/repoStatus.cjs @@ -7,45 +7,53 @@ const STATUS_LEGEND = { color: 'gray', variant: 'filled', icon: html`Planned`, + iconName: 'notification-fill', }, 'In Progress': { description: 'In the design or development process', color: 'green', variant: 'outline', - icon: html`✔️`, + icon: html`WIP`, + iconName: 'harvey-ball-50', }, 'Ready': { description: 'Ready to use and approved by all team members', color: 'green', variant: 'filled', icon: html`✔️`, + iconName: 'check-circle-fill', }, 'Deprecated': { description: 'No longer supported by RHDS', color: 'orange', variant: 'filled', icon: html`Deprecated`, + iconName: 'close-circle-fill', }, 'N/A': { description: 'Not planned, not available, or does not apply', color: 'gray', variant: 'outline', icon: html`N/A`, + iconName: 'ban', }, 'Beta': { color: 'purple', variant: 'outline', icon: html`Beta`, + iconName: 'build-fill', }, 'Experimental': { color: 'orange', variant: 'outline', icon: html`Beta`, + iconName: 'experimental', }, 'New': { color: 'cyan', variant: 'outline', icon: html`New`, + iconName: 'new-fill', }, }; @@ -103,8 +111,8 @@ function repoStatusList({ repoStatus, heading = 'Status', level = 2 } = {}) {
${listItem.name}:
- - ${listItem.status}${STATUS_LEGEND[listItem.status].icon.trim()} + + ${listItem.status}
`.trim()).join('\n').trim()} @@ -147,12 +155,12 @@ function repoStatusTable({ repoStatus }) { ${listItem.name} ${listItem.overallStatus !== 'Available' ? - `${listItem.overallStatus}${STATUS_LEGEND[listItem.overallStatus].icon}` : ''} + `${listItem.overallStatus}` : ''} ${listItem.libraries.map(lib => html` - - ${lib.status}${STATUS_LEGEND[lib.status].icon.trim()} + + ${lib.status} `).join('\n').trim()} @@ -202,8 +210,8 @@ function repoStatusChecklist({ repoStatus, heading = 'Status checklist', level = ${listItem.name} - - ${listItem.status}${STATUS_LEGEND[listItem.status].icon.trim()} + + ${listItem.status} diff --git a/docs/design-code-status/index.md b/docs/design-code-status/index.md index a8015627e0..7964f6b3ff 100644 --- a/docs/design-code-status/index.md +++ b/docs/design-code-status/index.md @@ -31,21 +31,8 @@ A detailed synopsis of our web components and their implementation status. - + Planned - - - - - - - - @@ -54,15 +41,8 @@ A detailed synopsis of our web components and their implementation status. - + In progress - - - - - @@ -71,12 +51,8 @@ A detailed synopsis of our web components and their implementation status. - + Ready - - - - @@ -85,13 +61,8 @@ A detailed synopsis of our web components and their implementation status. - + Deprecated - - - - - @@ -100,15 +71,8 @@ A detailed synopsis of our web components and their implementation status. - + N/A - - - -