File tree Expand file tree Collapse file tree
plugins/statuspage/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @axis-backstage/plugin-statuspage ' : patch
3+ ---
4+
5+ Use EntityInfoCard as the entity card wrapper
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ The plugin provides three extensions out of the box:
1010- ` page:statuspage ` — mounts the full statuspage at ` /statuspage `
1111- ` entity-card:statuspage ` — renders the ` StatuspageEntityCard ` on entity pages
1212
13-
1413Configure the instance name for the page extension in ` app-config.yaml ` :
1514
1615``` yaml
Original file line number Diff line number Diff line change 1- import {
2- InfoCard ,
3- Progress ,
4- ResponseErrorPanel ,
5- } from '@backstage/core-components' ;
1+ import { Progress , ResponseErrorPanel } from '@backstage/core-components' ;
62import OpenInNewIcon from '@mui/icons-material/OpenInNew' ;
3+ import { EntityInfoCard } from '@backstage/plugin-catalog-react' ;
74import { useEntity } from '@backstage/plugin-catalog-react' ;
85import { ComponentsTable } from './ComponentsTable' ;
96import { ComponentGroupsList } from './ComponentGroupsList' ;
@@ -68,16 +65,16 @@ export const StatuspageEntityCard = () => {
6865
6966 if ( noComponents ) {
7067 return (
71- < InfoCard title = "Service Status" action = { linkAction } >
68+ < EntityInfoCard title = "Service Status" headerActions = { linkAction } >
7269 < Typography variant = "body2" color = "#FF5555" >
7370 The specified statuspage.io components could not be found. Check your
7471 annotation.
7572 </ Typography >
76- </ InfoCard >
73+ </ EntityInfoCard >
7774 ) ;
7875 }
7976 return (
80- < InfoCard title = "Service Status" action = { linkAction } >
77+ < EntityInfoCard title = "Service Status" headerActions = { linkAction } >
8178 { filteredComponents && filteredComponents . length > 0 && (
8279 < ComponentsTable components = { filteredComponents } />
8380 ) }
@@ -88,6 +85,6 @@ export const StatuspageEntityCard = () => {
8885 expanded = { ! fullStatuspage }
8986 />
9087 ) }
91- </ InfoCard >
88+ </ EntityInfoCard >
9289 ) ;
9390} ;
You can’t perform that action at this time.
0 commit comments