Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions workspaces/homepage/.changeset/graduate-homepage-nfs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@red-hat-developer-hub/backstage-plugin-homepage': major
---

**BREAKING:** Graduate NFS homepage exports from `/alpha` to the primary entry point, and move OFS exports to `./legacy`.
`/alpha` now only re-exports translations.

Note: Dynamic plugin config must use `module: Legacy` now.
2 changes: 2 additions & 0 deletions workspaces/homepage/docs/cards/catalog-starred.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: CatalogStarredEntitiesCard
module: Legacy
- mountPoint: home.page/cards
importName: CatalogStarredEntitiesCard
module: Legacy
config:
props:
groupByKind: true
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/entity-section.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: EntitySection
module: Legacy
config:
layouts:
xl: { w: 12, h: 7 }
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/featured-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: FeaturedDocsCard
module: Legacy
```

## Available props
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/headline.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: Headline
module: Legacy
config:
layouts:
xl: { h: 1 }
Expand Down
2 changes: 2 additions & 0 deletions workspaces/homepage/docs/cards/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: MarkdownCard
module: Legacy
config:
layouts:
xl: { w: 6, h: 4 }
Expand All @@ -34,6 +35,7 @@ dynamicPlugins:
* [GitHub RHDH Plugins](https://github.com/redhat-developer/rhdh-plugins)
- mountPoint: home.page/cards
importName: Markdown
module: Legacy
config:
layouts:
xl: { w: 6, h: 4, x: 6 }
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/onboarding-section.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: OnboardingSection
module: Legacy
config:
layouts:
xl: { w: 12, h: 6 }
Expand Down
6 changes: 6 additions & 0 deletions workspaces/homepage/docs/cards/placeholder.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 1, h: 1 }
Expand All @@ -26,6 +27,7 @@ dynamicPlugins:
debugContent: '1'
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 1, h: 1, x: 1 }
Expand All @@ -39,6 +41,7 @@ dynamicPlugins:
debugContent: '2'
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 1, h: 1 }
Expand All @@ -53,6 +56,7 @@ dynamicPlugins:

- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 12, h: 1 }
Expand All @@ -67,6 +71,7 @@ dynamicPlugins:

- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 1, h: 1 }
Expand All @@ -80,6 +85,7 @@ dynamicPlugins:
debugContent: '5'
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 1, h: 1, x: 1 }
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/quick-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: QuickAccessCard
module: Legacy
config:
layouts:
xl: { h: 8 }
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/recently-visited.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: RecentlyVisitedCard
module: Legacy
```

## Contributions
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: SearchBar
module: Legacy
config:
layouts:
xl: { w: 10, h: 1, x: 1 }
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/template-section.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: TemplateSection
module: Legacy
config:
layouts:
xl: { w: 12, h: 5 }
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/top-visited.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: TopVisitedCard
module: Legacy
```

## Contributions
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/cards/worldclock.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: WorldClock
module: Legacy
config:
layouts:
xl: { w: 12, h: 1 }
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/create-a-new-card.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Cards commonly uses the [InfoCard](https://backstage.io/storybook/?path=/story/l
mountPoints:
- mountPoint: home.page/cards
importName: YourHomePageCard
module: Legacy
config:
layout: ...
props: ...
Expand Down
11 changes: 11 additions & 0 deletions workspaces/homepage/docs/defaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage
module: Legacy
mountPoints:
- mountPoint: home.page/cards
importName: OnboardingSection
module: Legacy
config:
layouts:
xl: { w: 12, h: 6 }
Expand All @@ -43,6 +45,7 @@ dynamicPlugins:
xxs: { w: 12, h: 14 }
- mountPoint: home.page/cards
importName: EntitySection
module: Legacy
config:
layouts:
xl: { w: 12, h: 7 }
Expand All @@ -53,6 +56,7 @@ dynamicPlugins:
xxs: { w: 12, h: 15 }
- mountPoint: home.page/cards
importName: TemplateSection
module: Legacy
config:
layouts:
xl: { w: 12, h: 5 }
Expand All @@ -74,9 +78,11 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicCustomizableHomePage
module: Legacy
mountPoints:
- mountPoint: home.page/cards
importName: OnboardingSection
module: Legacy
config:
layouts:
xl: { w: 12, h: 6 }
Expand All @@ -87,6 +93,7 @@ dynamicPlugins:
xxs: { w: 12, h: 14 }
- mountPoint: home.page/cards
importName: EntitySection
module: Legacy
config:
layouts:
xl: { w: 12, h: 7 }
Expand All @@ -97,6 +104,7 @@ dynamicPlugins:
xxs: { w: 12, h: 15 }
- mountPoint: home.page/cards
importName: TemplateSection
module: Legacy
config:
layouts:
xl: { w: 12, h: 5 }
Expand All @@ -108,8 +116,10 @@ dynamicPlugins:
# Additional cards available in "Add widget" dialog
- mountPoint: home.page/cards
importName: RecentlyVisitedCard
module: Legacy
- mountPoint: home.page/cards
importName: TopVisitedCard
module: Legacy
```

The customizable homepage provides:
Expand All @@ -134,6 +144,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: Headline
module: Legacy
config:
layouts:
xl: { h: 1 }
Expand Down
9 changes: 9 additions & 0 deletions workspaces/homepage/docs/header.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage # or DynamicCustomizableHomePage for customizable homepage
module: Legacy
config:
props:
title: 'Howdy {{firstName}} or {{dispayName}}'
Expand Down Expand Up @@ -73,6 +74,7 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage # or DynamicCustomizableHomePage
module: Legacy
config:
props:
title: Our custom RHDH instance
Expand All @@ -94,6 +96,7 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage # or DynamicCustomizableHomePage
module: Legacy
config:
props:
title: Welcome to your RHDH instance!
Expand All @@ -119,6 +122,7 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage # or DynamicCustomizableHomePage
module: Legacy
config:
props:
title: Welcome back!
Expand Down Expand Up @@ -151,6 +155,7 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage # or DynamicCustomizableHomePage
module: Legacy
config:
props:
localClock:
Expand All @@ -168,6 +173,7 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage # or DynamicCustomizableHomePage
module: Legacy
config:
props:
localClock:
Expand All @@ -187,6 +193,7 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage # or DynamicCustomizableHomePage
module: Legacy
config:
props:
localClock:
Expand All @@ -205,6 +212,7 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage # or DynamicCustomizableHomePage
module: Legacy
config:
props:
localClock:
Expand Down Expand Up @@ -247,6 +255,7 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicHomePage # or DynamicCustomizableHomePage
module: Legacy
config:
props:
worldClocks:
Expand Down
7 changes: 7 additions & 0 deletions workspaces/homepage/docs/layout-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
props:
showBorder: true
Expand Down Expand Up @@ -64,6 +65,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 6, h: 2 }
Expand All @@ -90,6 +92,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 6, h: 2 }
Expand All @@ -103,6 +106,7 @@ dynamicPlugins:
debugContent: left
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 6, h: 2, x: 6 }
Expand All @@ -129,6 +133,7 @@ dynamicPlugins:
mountPoints:
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 4, h: 2 }
Expand All @@ -142,6 +147,7 @@ dynamicPlugins:
debugContent: left
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 4, h: 2, x: 4 }
Expand All @@ -155,6 +161,7 @@ dynamicPlugins:
debugContent: center
- mountPoint: home.page/cards
importName: Placeholder
module: Legacy
config:
layouts:
xl: { w: 4, h: 2, x: 8 }
Expand Down
1 change: 1 addition & 0 deletions workspaces/homepage/docs/user-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ dynamicPlugins:
dynamicRoutes:
- path: /
importName: DynamicCustomizableHomePage
module: Legacy
```
4 changes: 2 additions & 2 deletions workspaces/homepage/packages/app-legacy/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ import {
FeaturedDocsCard,
WorldClock,
HomePageCardMountPoint,
} from '@red-hat-developer-hub/backstage-plugin-homepage';
import { homepageTranslations } from '@red-hat-developer-hub/backstage-plugin-homepage/alpha';
homepageTranslations,
} from '@red-hat-developer-hub/backstage-plugin-homepage/legacy';

const identityProviders: IdentityProviders = [
'guest',
Expand Down
Loading
Loading