diff --git a/workspaces/bazaar/.changeset/beige-elephants-beg.md b/workspaces/bazaar/.changeset/beige-elephants-beg.md new file mode 100644 index 000000000..b16fda025 --- /dev/null +++ b/workspaces/bazaar/.changeset/beige-elephants-beg.md @@ -0,0 +1,5 @@ +--- +'@backstage-community/plugin-bazaar': minor +--- + +Added next steps after joining a project diff --git a/workspaces/bazaar/plugins/bazaar/src/components/CardContentFields/CardContentFields.tsx b/workspaces/bazaar/plugins/bazaar/src/components/CardContentFields/CardContentFields.tsx index 40f8a5104..7bc7be40d 100644 --- a/workspaces/bazaar/plugins/bazaar/src/components/CardContentFields/CardContentFields.tsx +++ b/workspaces/bazaar/plugins/bazaar/src/components/CardContentFields/CardContentFields.tsx @@ -35,6 +35,7 @@ type Props = { members: Member[]; descriptionSize: GridSize; membersSize: GridSize; + isMember: boolean; }; const useStyles = makeStyles( @@ -61,8 +62,11 @@ export const CardContentFields = ({ members, descriptionSize, membersSize, + isMember, }: Props) => { const catalogEntityRoute = useRouteRef(entityRouteRef); + const currentPage = window.location.pathname; + const isEntityPage = currentPage.includes('/catalog/'); const classes = useStyles(); return (
@@ -129,6 +133,19 @@ export const CardContentFields = ({ + {!isEntityPage && isMember && ( + + + + To learn more about this project, click the "Entity Page" + link, where you can view more information about the effort + and navigate to the source code itself to begin + collaborating. + + + + )} + diff --git a/workspaces/bazaar/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx b/workspaces/bazaar/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx index a6fcbe158..f9c104b88 100644 --- a/workspaces/bazaar/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx +++ b/workspaces/bazaar/plugins/bazaar/src/components/EntityBazaarInfoContent/EntityBazaarInfoContent.tsx @@ -218,6 +218,7 @@ export const EntityBazaarInfoContent = ({ members={members.value || []} descriptionSize={10} membersSize={2} + isMember={isMember} />
); diff --git a/workspaces/bazaar/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx b/workspaces/bazaar/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx index e7912bedd..89b21605d 100644 --- a/workspaces/bazaar/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx +++ b/workspaces/bazaar/plugins/bazaar/src/components/HomePageBazaarInfoCard/HomePageBazaarInfoCard.tsx @@ -295,6 +295,7 @@ export const HomePageBazaarInfoCard = ({ members={members.value || []} descriptionSize={9} membersSize={3} + isMember={isMember} />