Skip to content

Commit 10b3518

Browse files
authored
feat(marketplace): add install page (#507)
* feat(marketplace): add install page Signed-off-by: Yi Cai <yicai@redhat.com> * addressed review comments - p1 Signed-off-by: Yi Cai <yicai@redhat.com> * addressed review comments - p2 Signed-off-by: Yi Cai <yicai@redhat.com> --------- Signed-off-by: Yi Cai <yicai@redhat.com>
1 parent 7f0debc commit 10b3518

4 files changed

Lines changed: 347 additions & 42 deletions

File tree

workspaces/marketplace/examples/plugins/tekton.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ spec:
243243
![tekton-pipelinerun-report](https://github.com/backstage/community-plugins/raw/main/workspaces/tekton/plugins/tekton/docs/images/tekton-plugin-pipelinerun-output.png)
244244
245245
installation: |
246-
# Setting up the Tekton plugin
247-
248246
## Prerequisites
249247
250248
- The Kubernetes backend plugin `@backstage/plugin-kubernetes-backend` is installed and configured by following the [installation](https://backstage.io/docs/features/kubernetes/installation) and [configuration](https://backstage.io/docs/features/kubernetes/configuration) guides.

workspaces/marketplace/plugins/marketplace/src/components/MarketplacePluginContent.tsx

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import Skeleton from '@mui/material/Skeleton';
3030
import Stack from '@mui/material/Stack';
3131
import Typography from '@mui/material/Typography';
3232
import Grid from '@mui/material/Grid';
33-
import Tooltip from '@mui/material/Tooltip';
3433

3534
import {
3635
MarketplacePackage,
@@ -240,30 +239,23 @@ export const MarketplacePluginContent = ({
240239
</>
241240
) : null}
242241

243-
<Tooltip
244-
title={<Typography variant="button">Coming soon!</Typography>}
245-
arrow
246-
placement="right"
247-
>
248-
<div style={{ display: 'inline-block' }}>
249-
<LinkButton
250-
disabled
251-
to={getInstallPath({
252-
namespace: plugin.metadata.namespace!,
253-
name: plugin.metadata.name,
254-
})}
255-
color="primary"
256-
variant="contained"
257-
>
258-
{
259-
mapMarketplacePluginInstallStatusToButton[
260-
plugin.spec?.installStatus ??
261-
MarketplacePluginInstallStatus.NotInstalled
262-
]
263-
}
264-
</LinkButton>
265-
</div>
266-
</Tooltip>
242+
<div style={{ display: 'inline-block' }}>
243+
<LinkButton
244+
to={getInstallPath({
245+
namespace: plugin.metadata.namespace!,
246+
name: plugin.metadata.name,
247+
})}
248+
color="primary"
249+
variant="contained"
250+
>
251+
{
252+
mapMarketplacePluginInstallStatusToButton[
253+
plugin.spec?.installStatus ??
254+
MarketplacePluginInstallStatus.NotInstalled
255+
]
256+
}
257+
</LinkButton>
258+
</div>
267259
</Grid>
268260
<Grid item md={9}>
269261
<Markdown title="About" content={about} />

0 commit comments

Comments
 (0)