diff --git a/.changeset/heavy-elephants-nail.md b/.changeset/heavy-elephants-nail.md new file mode 100644 index 0000000000..71e57f1d14 --- /dev/null +++ b/.changeset/heavy-elephants-nail.md @@ -0,0 +1,7 @@ +--- +'@backstage/core-app-api': minor +--- + +# test + +Deprecated the `homepage` config as the component that used it - `HomepageTimer` - has been removed and replaced by the `HeaderWorldClock` in the home plugin diff --git a/.changeset/stupid-pens-occur.md b/.changeset/stupid-pens-occur.md index 5ddac159a1..d8af9a447a 100644 --- a/.changeset/stupid-pens-occur.md +++ b/.changeset/stupid-pens-occur.md @@ -1,7 +1,5 @@ --- -'@backstage/core-app-api': patch -'@backstage/core-components': patch -'@backstage/plugin-config-schema': patch +'@backstage/core-components': minor --- -Removed the `HomepageTimer` and its related config as it has been replaced by the `HeaderWorldClock` in the Home plugin and was deprecated over a year ago +**BREAKING**: Removed the `HomepageTimer` as it has been replaced by the `HeaderWorldClock` in the Home plugin and was deprecated over a year ago. diff --git a/app-config.yaml b/app-config.yaml index 977b07612f..758095c096 100644 --- a/app-config.yaml +++ b/app-config.yaml @@ -420,6 +420,16 @@ costInsights: kind: 'PINTS_OF_ICE_CREAM' unit: 'ice cream pint' rate: 5.5 +homepage: + clocks: + - label: UTC + timezone: UTC + - label: NYC + timezone: 'America/New_York' + - label: STO + timezone: 'Europe/Stockholm' + - label: TYO + timezone: 'Asia/Tokyo' pagerduty: eventsBaseUrl: 'https://events.pagerduty.com/v2' jenkins: diff --git a/packages/core-app-api/config.d.ts b/packages/core-app-api/config.d.ts index 77778ef4f3..ae876f7fe0 100644 --- a/packages/core-app-api/config.d.ts +++ b/packages/core-app-api/config.d.ts @@ -89,6 +89,20 @@ export interface Config { name?: string; }; + /** + * This config was used by the HomepageTimer but has been replaced by the HeaderWorldClock in the home plugin + * + * @deprecated in favor of the HeaderWorldClock which is found in the home plugin + */ + homepage?: { + clocks?: Array<{ + /** @visibility frontend */ + label: string; + /** @visibility frontend */ + timezone: string; + }>; + }; + /** * Configuration that provides information on available configured authentication providers. */