config: {config.mock}
diff --git a/plugins/catalog-react/src/alpha/blueprints/EntityContentBlueprint.ts b/plugins/catalog-react/src/alpha/blueprints/EntityContentBlueprint.ts
index 4ff9d83282..dadf059922 100644
--- a/plugins/catalog-react/src/alpha/blueprints/EntityContentBlueprint.ts
+++ b/plugins/catalog-react/src/alpha/blueprints/EntityContentBlueprint.ts
@@ -64,38 +64,45 @@ export const EntityContentBlueprint = createExtensionBlueprint({
},
},
*factory(
- {
- loader,
- defaultPath,
- defaultTitle,
- defaultGroup,
- filter,
- routeRef,
- }: {
+ params: {
+ /**
+ * @deprecated Use the `path` param instead.
+ */
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
+ /**
+ * @deprecated Use the `path` param instead.
+ */
+ defaultTitle?: [Error: `Use the 'title' param instead`];
+ title: string;
+ /**
+ * @deprecated Use the `path` param instead.
+ */
+ defaultGroup?: [Error: `Use the 'group' param instead`];
+ group?: keyof typeof defaultEntityContentGroups | (string & {});
loader: () => Promise
;
- defaultPath: string;
- defaultTitle: string;
- defaultGroup?: keyof typeof defaultEntityContentGroups | (string & {});
routeRef?: RouteRef;
filter?: string | EntityPredicate | ((entity: Entity) => boolean);
},
{ node, config },
) {
- const path = config.path ?? defaultPath;
- const title = config.title ?? defaultTitle;
- const group = config.group ?? defaultGroup;
+ const path = config.path ?? params.path;
+ const title = config.title ?? params.title;
+ const group = config.group ?? params.group;
- yield coreExtensionData.reactElement(ExtensionBoundary.lazy(node, loader));
+ yield coreExtensionData.reactElement(
+ ExtensionBoundary.lazy(node, params.loader),
+ );
yield coreExtensionData.routePath(path);
yield entityContentTitleDataRef(title);
- if (routeRef) {
- yield coreExtensionData.routeRef(routeRef);
+ if (params.routeRef) {
+ yield coreExtensionData.routeRef(params.routeRef);
}
- yield* resolveEntityFilterData(filter, config, node);
+ yield* resolveEntityFilterData(params.filter, config, node);
if (group) {
yield entityContentGroupDataRef(group);
diff --git a/plugins/catalog-react/src/alpha/converters/convertLegacyEntityContentExtension.test.tsx b/plugins/catalog-react/src/alpha/converters/convertLegacyEntityContentExtension.test.tsx
index 971e8a5eca..81da89d052 100644
--- a/plugins/catalog-react/src/alpha/converters/convertLegacyEntityContentExtension.test.tsx
+++ b/plugins/catalog-react/src/alpha/converters/convertLegacyEntityContentExtension.test.tsx
@@ -82,8 +82,8 @@ describe('convertLegacyEntityContentExtension', () => {
const converted = convertLegacyEntityContentExtension(LegacyExtension, {
name: 'other',
- defaultPath: '/other',
- defaultTitle: 'Other',
+ path: '/other',
+ title: 'Other',
filter: 'my-filter',
});
diff --git a/plugins/catalog-react/src/alpha/converters/convertLegacyEntityContentExtension.tsx b/plugins/catalog-react/src/alpha/converters/convertLegacyEntityContentExtension.tsx
index 719eb9c6d5..d9638286cb 100644
--- a/plugins/catalog-react/src/alpha/converters/convertLegacyEntityContentExtension.tsx
+++ b/plugins/catalog-react/src/alpha/converters/convertLegacyEntityContentExtension.tsx
@@ -37,8 +37,18 @@ export function convertLegacyEntityContentExtension(
overrides?: {
name?: string;
filter?: string | EntityPredicate | ((entity: Entity) => boolean);
- defaultPath?: string;
- defaultTitle?: string;
+ path?: string;
+ title?: string;
+
+ /**
+ * @deprecated Use the `path` param instead.
+ */
+ defaultPath?: [Error: `Use the 'path' override instead`];
+
+ /**
+ * @deprecated Use the `path` param instead.
+ */
+ defaultTitle?: [Error: `Use the 'title' override instead`];
},
): ExtensionDefinition {
const element = ;
@@ -77,8 +87,8 @@ export function convertLegacyEntityContentExtension(
name: overrides?.name ?? name,
params: {
filter: overrides?.filter,
- defaultPath: overrides?.defaultPath ?? `/${kebabCase(infix)}`,
- defaultTitle: overrides?.defaultTitle ?? startCase(infix),
+ path: overrides?.path ?? `/${kebabCase(infix)}`,
+ title: overrides?.title ?? startCase(infix),
routeRef: mountPoint && convertLegacyRouteRef(mountPoint),
loader: async () => compatWrapper(element),
},
diff --git a/plugins/catalog-unprocessed-entities/report-alpha.api.md b/plugins/catalog-unprocessed-entities/report-alpha.api.md
index fa64ed329a..7ce172f4a9 100644
--- a/plugins/catalog-unprocessed-entities/report-alpha.api.md
+++ b/plugins/catalog-unprocessed-entities/report-alpha.api.md
@@ -82,7 +82,8 @@ const _default: FrontendPlugin<
>;
inputs: {};
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/catalog-unprocessed-entities/src/alpha/plugin.tsx b/plugins/catalog-unprocessed-entities/src/alpha/plugin.tsx
index cfe81eccc8..f3f68cc23f 100644
--- a/plugins/catalog-unprocessed-entities/src/alpha/plugin.tsx
+++ b/plugins/catalog-unprocessed-entities/src/alpha/plugin.tsx
@@ -51,7 +51,7 @@ export const catalogUnprocessedEntitiesApi = ApiBlueprint.make({
/** @alpha */
export const catalogUnprocessedEntitiesPage = PageBlueprint.make({
params: {
- defaultPath: '/catalog-unprocessed-entities',
+ path: '/catalog-unprocessed-entities',
routeRef: convertLegacyRouteRef(rootRouteRef),
loader: () =>
import('../components/UnprocessedEntities').then(m =>
diff --git a/plugins/catalog/report-alpha.api.md b/plugins/catalog/report-alpha.api.md
index cfbbc5388e..44247ad676 100644
--- a/plugins/catalog/report-alpha.api.md
+++ b/plugins/catalog/report-alpha.api.md
@@ -893,10 +893,13 @@ const _default: FrontendPlugin<
kind: 'entity-content';
name: 'overview';
params: {
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
+ defaultTitle?: [Error: `Use the 'title' param instead`];
+ title: string;
+ defaultGroup?: [Error: `Use the 'group' param instead`];
+ group?: keyof defaultEntityContentGroups | (string & {});
loader: () => Promise;
- defaultPath: string;
- defaultTitle: string;
- defaultGroup?: keyof defaultEntityContentGroups | (string & {});
routeRef?: RouteRef;
filter?: string | EntityPredicate | ((entity: Entity) => boolean);
};
@@ -1070,7 +1073,8 @@ const _default: FrontendPlugin<
kind: 'page';
name: undefined;
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
@@ -1190,7 +1194,8 @@ const _default: FrontendPlugin<
kind: 'page';
name: 'entity';
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/catalog/src/alpha/entityContents.tsx b/plugins/catalog/src/alpha/entityContents.tsx
index 165ed33e04..bc4556fdda 100644
--- a/plugins/catalog/src/alpha/entityContents.tsx
+++ b/plugins/catalog/src/alpha/entityContents.tsx
@@ -47,9 +47,9 @@ export const catalogOverviewEntityContent =
},
factory: (originalFactory, { node, inputs }) => {
return originalFactory({
- defaultPath: '/',
- defaultTitle: 'Overview',
- defaultGroup: 'overview',
+ path: '/',
+ title: 'Overview',
+ group: 'overview',
loader: async () => {
const LazyDefaultLayoutComponent = reactLazy(() =>
import('./DefaultEntityContentLayout').then(m => ({
diff --git a/plugins/catalog/src/alpha/pages.test.tsx b/plugins/catalog/src/alpha/pages.test.tsx
index 47b3efbd0a..cc83b9168b 100644
--- a/plugins/catalog/src/alpha/pages.test.tsx
+++ b/plugins/catalog/src/alpha/pages.test.tsx
@@ -116,8 +116,8 @@ describe('Entity page', () => {
const overviewEntityContent = EntityContentBlueprint.make({
name: 'overview',
params: {
- defaultPath: '/overview',
- defaultTitle: 'Overview',
+ path: '/overview',
+ title: 'Overview',
loader: async () => Mock Overview content
,
},
});
@@ -125,9 +125,9 @@ describe('Entity page', () => {
const techdocsEntityContent = EntityContentBlueprint.make({
name: 'techdocs',
params: {
- defaultPath: '/techdocs',
- defaultTitle: 'TechDocs',
- defaultGroup: 'documentation',
+ path: '/techdocs',
+ title: 'TechDocs',
+ group: 'documentation',
loader: async () => Mock TechDocs content
,
},
});
@@ -135,9 +135,9 @@ describe('Entity page', () => {
const apidocsEntityContent = EntityContentBlueprint.make({
name: 'apidocs',
params: {
- defaultPath: '/apidocs',
- defaultTitle: 'ApiDocs',
- defaultGroup: 'documentation',
+ path: '/apidocs',
+ title: 'ApiDocs',
+ group: 'documentation',
loader: async () => Mock ApiDocs content
,
},
});
diff --git a/plugins/catalog/src/alpha/pages.tsx b/plugins/catalog/src/alpha/pages.tsx
index f0c5316a84..e4e1a78151 100644
--- a/plugins/catalog/src/alpha/pages.tsx
+++ b/plugins/catalog/src/alpha/pages.tsx
@@ -58,7 +58,7 @@ export const catalogPage = PageBlueprint.makeWithOverrides({
},
factory(originalFactory, { inputs, config }) {
return originalFactory({
- defaultPath: '/catalog',
+ path: '/catalog',
routeRef: convertLegacyRouteRef(rootRouteRef),
loader: async () => {
const { BaseCatalogPage } = await import('../components/CatalogPage');
@@ -107,7 +107,7 @@ export const catalogEntityPage = PageBlueprint.makeWithOverrides({
},
factory(originalFactory, { config, inputs }) {
return originalFactory({
- defaultPath: '/catalog/:namespace/:kind/:name',
+ path: '/catalog/:namespace/:kind/:name',
routeRef: convertLegacyRouteRef(entityRouteRef),
loader: async () => {
const { EntityLayout } = await import('./components/EntityLayout');
diff --git a/plugins/devtools/report-alpha.api.md b/plugins/devtools/report-alpha.api.md
index 2ede4d34b2..d9393e9c96 100644
--- a/plugins/devtools/report-alpha.api.md
+++ b/plugins/devtools/report-alpha.api.md
@@ -82,7 +82,8 @@ const _default: FrontendPlugin<
>;
inputs: {};
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/devtools/src/alpha/plugin.tsx b/plugins/devtools/src/alpha/plugin.tsx
index d2f09521dd..f5fcc0600b 100644
--- a/plugins/devtools/src/alpha/plugin.tsx
+++ b/plugins/devtools/src/alpha/plugin.tsx
@@ -48,7 +48,7 @@ export const devToolsApi = ApiBlueprint.make({
/** @alpha */
export const devToolsPage = PageBlueprint.make({
params: {
- defaultPath: '/devtools',
+ path: '/devtools',
routeRef: convertLegacyRouteRef(rootRouteRef),
loader: () =>
import('../components/DevToolsPage').then(m =>
diff --git a/plugins/home/report-alpha.api.md b/plugins/home/report-alpha.api.md
index 010918b029..67c0bad3e5 100644
--- a/plugins/home/report-alpha.api.md
+++ b/plugins/home/report-alpha.api.md
@@ -98,7 +98,8 @@ const _default: FrontendPlugin<
kind: 'page';
name: undefined;
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/home/src/alpha.tsx b/plugins/home/src/alpha.tsx
index d093f353a2..903ed2c7fc 100644
--- a/plugins/home/src/alpha.tsx
+++ b/plugins/home/src/alpha.tsx
@@ -54,7 +54,7 @@ const homePage = PageBlueprint.makeWithOverrides({
},
factory: (originalFactory, { inputs }) => {
return originalFactory({
- defaultPath: '/home',
+ path: '/home',
routeRef: rootRouteRef,
loader: () =>
import('./components/').then(m =>
diff --git a/plugins/kubernetes/report-alpha.api.md b/plugins/kubernetes/report-alpha.api.md
index 37bb084bd7..cd24f070a9 100644
--- a/plugins/kubernetes/report-alpha.api.md
+++ b/plugins/kubernetes/report-alpha.api.md
@@ -153,10 +153,13 @@ const _default: FrontendPlugin<
>;
inputs: {};
params: {
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
+ defaultTitle?: [Error: `Use the 'title' param instead`];
+ title: string;
+ defaultGroup?: [Error: `Use the 'group' param instead`];
+ group?: keyof defaultEntityContentGroups | (string & {});
loader: () => Promise;
- defaultPath: string;
- defaultTitle: string;
- defaultGroup?: keyof defaultEntityContentGroups | (string & {});
routeRef?: RouteRef;
filter?: string | EntityPredicate | ((entity: Entity) => boolean);
};
@@ -182,7 +185,8 @@ const _default: FrontendPlugin<
>;
inputs: {};
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/kubernetes/src/alpha/entityContents.tsx b/plugins/kubernetes/src/alpha/entityContents.tsx
index ad35b401be..d75893c6e4 100644
--- a/plugins/kubernetes/src/alpha/entityContents.tsx
+++ b/plugins/kubernetes/src/alpha/entityContents.tsx
@@ -21,9 +21,9 @@ import { isKubernetesAvailable } from '../Router';
export const entityKubernetesContent = EntityContentBlueprint.make({
name: 'kubernetes',
params: {
- defaultPath: '/kubernetes',
- defaultTitle: 'Kubernetes',
- defaultGroup: 'deployment',
+ path: '/kubernetes',
+ title: 'Kubernetes',
+ group: 'deployment',
filter: isKubernetesAvailable,
loader: () =>
import('./KubernetesContentPage').then(m =>
diff --git a/plugins/kubernetes/src/alpha/pages.tsx b/plugins/kubernetes/src/alpha/pages.tsx
index 83a2e1aa94..6a2d98ddcc 100644
--- a/plugins/kubernetes/src/alpha/pages.tsx
+++ b/plugins/kubernetes/src/alpha/pages.tsx
@@ -23,7 +23,7 @@ import { rootCatalogKubernetesRouteRef } from '../plugin';
export const kubernetesPage = PageBlueprint.make({
params: {
- defaultPath: '/kubernetes',
+ path: '/kubernetes',
// you can reuse the existing routeRef
// by wrapping into the convertLegacyRouteRef.
routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),
diff --git a/plugins/notifications/report-alpha.api.md b/plugins/notifications/report-alpha.api.md
index b512d97ce3..ebd74cb780 100644
--- a/plugins/notifications/report-alpha.api.md
+++ b/plugins/notifications/report-alpha.api.md
@@ -60,7 +60,8 @@ const _default: FrontendPlugin<
>;
inputs: {};
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/notifications/src/alpha.tsx b/plugins/notifications/src/alpha.tsx
index 68d0ccab8d..79e0fb7559 100644
--- a/plugins/notifications/src/alpha.tsx
+++ b/plugins/notifications/src/alpha.tsx
@@ -30,7 +30,7 @@ import { NotificationsClient, notificationsApiRef } from './api';
const page = PageBlueprint.make({
params: {
- defaultPath: '/notifications',
+ path: '/notifications',
routeRef: convertLegacyRouteRef(rootRouteRef),
loader: () =>
import('./components/NotificationsPage').then(m => (
diff --git a/plugins/scaffolder/report-alpha.api.md b/plugins/scaffolder/report-alpha.api.md
index 38b1ee717b..bc82654a11 100644
--- a/plugins/scaffolder/report-alpha.api.md
+++ b/plugins/scaffolder/report-alpha.api.md
@@ -231,7 +231,8 @@ const _default: FrontendPlugin<
kind: 'page';
name: undefined;
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/scaffolder/src/alpha/extensions.tsx b/plugins/scaffolder/src/alpha/extensions.tsx
index 351ad4ed56..b988e33217 100644
--- a/plugins/scaffolder/src/alpha/extensions.tsx
+++ b/plugins/scaffolder/src/alpha/extensions.tsx
@@ -46,7 +46,7 @@ export const scaffolderPage = PageBlueprint.makeWithOverrides({
);
return originalFactory({
routeRef: convertLegacyRouteRef(rootRouteRef),
- defaultPath: '/create',
+ path: '/create',
loader: () =>
import('../components/Router/Router').then(m =>
compatWrapper(
diff --git a/plugins/search-react/src/alpha/blueprints/SearchFilterBlueprint.test.tsx b/plugins/search-react/src/alpha/blueprints/SearchFilterBlueprint.test.tsx
index e8ca2d5888..adfceeec47 100644
--- a/plugins/search-react/src/alpha/blueprints/SearchFilterBlueprint.test.tsx
+++ b/plugins/search-react/src/alpha/blueprints/SearchFilterBlueprint.test.tsx
@@ -73,7 +73,7 @@ describe('SearchFilterBlueprint', () => {
},
factory(originalFactory, { inputs }) {
return originalFactory({
- defaultPath: '/',
+ path: '/',
loader: async () => {
const searchFilters = inputs.searchFilters.map(
t => t.get(searchFilterDataRef).component,
diff --git a/plugins/search-react/src/alpha/blueprints/SearchFilterResultTypeBlueprint.test.tsx b/plugins/search-react/src/alpha/blueprints/SearchFilterResultTypeBlueprint.test.tsx
index 3ebc4c5a24..d9f8e97080 100644
--- a/plugins/search-react/src/alpha/blueprints/SearchFilterResultTypeBlueprint.test.tsx
+++ b/plugins/search-react/src/alpha/blueprints/SearchFilterResultTypeBlueprint.test.tsx
@@ -77,7 +77,7 @@ describe('SearchFilterResultTypeBlueprint', () => {
},
factory(originalFactory, { inputs }) {
return originalFactory({
- defaultPath: '/',
+ path: '/',
loader: async () => {
const resultTypes = inputs.resultTypes.map(t =>
t.get(searchResultTypeDataRef),
diff --git a/plugins/search-react/src/alpha/blueprints/SearchResultListItemBlueprint.test.tsx b/plugins/search-react/src/alpha/blueprints/SearchResultListItemBlueprint.test.tsx
index 1accf8f3d4..112c0a8470 100644
--- a/plugins/search-react/src/alpha/blueprints/SearchResultListItemBlueprint.test.tsx
+++ b/plugins/search-react/src/alpha/blueprints/SearchResultListItemBlueprint.test.tsx
@@ -91,7 +91,7 @@ describe('SearchResultListItemBlueprint', () => {
},
factory(originalFactory, { inputs }) {
return originalFactory({
- defaultPath: '/',
+ path: '/',
loader: async () => {
const items = inputs.items.map(i =>
i.get(searchResultListItemDataRef),
diff --git a/plugins/search/report-alpha.api.md b/plugins/search/report-alpha.api.md
index 1edc5e678d..9e9a938aa2 100644
--- a/plugins/search/report-alpha.api.md
+++ b/plugins/search/report-alpha.api.md
@@ -134,7 +134,8 @@ const _default: FrontendPlugin<
kind: 'page';
name: undefined;
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
@@ -252,7 +253,8 @@ export const searchPage: ExtensionDefinition<{
kind: 'page';
name: undefined;
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/search/src/alpha.tsx b/plugins/search/src/alpha.tsx
index 5028a404d4..0ca3315126 100644
--- a/plugins/search/src/alpha.tsx
+++ b/plugins/search/src/alpha.tsx
@@ -115,7 +115,7 @@ export const searchPage = PageBlueprint.makeWithOverrides({
},
factory(originalFactory, { config, inputs }) {
return originalFactory({
- defaultPath: '/search',
+ path: '/search',
routeRef: convertLegacyRouteRef(rootRouteRef),
loader: async () => {
const getResultItemComponent = (result: SearchResult) => {
diff --git a/plugins/techdocs/report-alpha.api.md b/plugins/techdocs/report-alpha.api.md
index fd63ec1daa..0e1a311abf 100644
--- a/plugins/techdocs/report-alpha.api.md
+++ b/plugins/techdocs/report-alpha.api.md
@@ -176,10 +176,13 @@ const _default: FrontendPlugin<
kind: 'entity-content';
name: undefined;
params: {
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
+ defaultTitle?: [Error: `Use the 'title' param instead`];
+ title: string;
+ defaultGroup?: [Error: `Use the 'group' param instead`];
+ group?: keyof defaultEntityContentGroups | (string & {});
loader: () => Promise;
- defaultPath: string;
- defaultTitle: string;
- defaultGroup?: keyof defaultEntityContentGroups | (string & {});
routeRef?: RouteRef;
filter?: string | EntityPredicate | ((entity: Entity) => boolean);
};
@@ -265,7 +268,8 @@ const _default: FrontendPlugin<
>;
inputs: {};
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
@@ -303,7 +307,8 @@ const _default: FrontendPlugin<
kind: 'page';
name: 'reader';
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/techdocs/src/alpha/index.tsx b/plugins/techdocs/src/alpha/index.tsx
index 38dcd40dc4..d1b2d6c09f 100644
--- a/plugins/techdocs/src/alpha/index.tsx
+++ b/plugins/techdocs/src/alpha/index.tsx
@@ -137,7 +137,7 @@ export const techDocsSearchResultListItemExtension =
*/
const techDocsPage = PageBlueprint.make({
params: {
- defaultPath: '/docs',
+ path: '/docs',
routeRef: convertLegacyRouteRef(rootRouteRef),
loader: () =>
import('../home/components/TechDocsIndexPage').then(m =>
@@ -165,7 +165,7 @@ const techDocsReaderPage = PageBlueprint.makeWithOverrides({
});
return originalFactory({
- defaultPath: '/docs/:namespace/:kind/:name',
+ path: '/docs/:namespace/:kind/:name',
routeRef: convertLegacyRouteRef(rootDocsRouteRef),
loader: async () =>
await import('../Router').then(({ TechDocsReaderRouter }) => {
@@ -199,8 +199,8 @@ const techDocsEntityContent = EntityContentBlueprint.makeWithOverrides({
factory(originalFactory, context) {
return originalFactory(
{
- defaultPath: 'docs',
- defaultTitle: 'TechDocs',
+ path: 'docs',
+ title: 'TechDocs',
routeRef: convertLegacyRouteRef(rootCatalogDocsRouteRef),
loader: () =>
import('../Router').then(({ EmbeddedDocsRouter }) => {
diff --git a/plugins/user-settings/report-alpha.api.md b/plugins/user-settings/report-alpha.api.md
index 036ff2ff58..9e8e09cb29 100644
--- a/plugins/user-settings/report-alpha.api.md
+++ b/plugins/user-settings/report-alpha.api.md
@@ -70,7 +70,8 @@ const _default: FrontendPlugin<
kind: 'page';
name: undefined;
params: {
- defaultPath: string;
+ defaultPath?: [Error: `Use the 'path' param instead`];
+ path: string;
loader: () => Promise;
routeRef?: RouteRef;
};
diff --git a/plugins/user-settings/src/alpha.tsx b/plugins/user-settings/src/alpha.tsx
index f351dad40a..e71c61febc 100644
--- a/plugins/user-settings/src/alpha.tsx
+++ b/plugins/user-settings/src/alpha.tsx
@@ -39,7 +39,7 @@ const userSettingsPage = PageBlueprint.makeWithOverrides({
},
factory(originalFactory, { inputs }) {
return originalFactory({
- defaultPath: '/settings',
+ path: '/settings',
routeRef: convertLegacyRouteRef(settingsRouteRef),
loader: () =>
import('./components/SettingsPage').then(m =>