document suggestion to fork AboutCard if needed

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-06-20 13:38:27 +02:00
parent 08a6bd7bc4
commit d133eaa5c2
4 changed files with 22 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': patch
---
Added small notes to AboutCard to discourage customizability PRs
+1 -1
View File
@@ -334,7 +334,7 @@ export interface DependsOnResourcesCardProps {
variant?: InfoCardVariants;
}
// @public (undocumented)
// @public
export const EntityAboutCard: (props: AboutCardProps) => JSX.Element;
// @public (undocumented)
@@ -100,6 +100,10 @@ export interface AboutCardProps {
/**
* Exported publicly via the EntityAboutCard
*
* NOTE: We generally do not accept pull requests to extend this class with more
* props and cusomizability. If you need to tweak it, consider making a bespoke
* card in your own repository instead, that is perfect for your own needs.
*/
export function AboutCard(props: AboutCardProps) {
const { variant } = props;
+12 -1
View File
@@ -115,7 +115,18 @@ export const CatalogEntityPage: () => JSX.Element = catalogPlugin.provide(
}),
);
/** @public */
/**
* An example About card to show at the top of entity pages.
*
* @public
* @remarks
*
* This card collects some high level information about the entity, but is just
* an example component. Many organizations will want to replace it with a
* custom card that is more tailored to their specific needs. The card itself is
* not extremely customizable; feel free to make a copy of it as a starting
* point if you like.
*/
export const EntityAboutCard: (props: AboutCardProps) => JSX.Element =
catalogPlugin.provide(
createComponentExtension({