Skip to content

Commit 4f2bf81

Browse files
fix(marketplace): align with UXD: add grey placeholder if icon is missing and placeholder when there is no description (#498)
* chore(marketplace): add namespace to testdata Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com> * fix(marketplace): make title and description optional Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com> * fix(marketplace): render a grey placeholder icon when there is no icon defined Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com> * fix(marketplace): render no description available when there is no description Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com> --------- Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
1 parent eda0343 commit 4f2bf81

24 files changed

Lines changed: 67 additions & 13 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace': patch
3+
---
4+
5+
make title and description optional
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-marketplace': patch
3+
---
4+
5+
render a grey placeholder icon when there is no icon defined
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-marketplace': patch
3+
---
4+
5+
render no description available when there is no description

workspaces/marketplace/examples/all-collections.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apiVersion: backstage.io/v1alpha1
22
kind: Location
33
metadata:
4+
namespace: marketplace-plugin-demo
45
name: all-collections
56
description: A collection of marketplace plugin collections
67
spec:

workspaces/marketplace/examples/all-orgs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apiVersion: backstage.io/v1alpha1
22
kind: Location
33
metadata:
4+
namespace: marketplace-plugin-demo
45
name: all-orgs
56
description: A collection of all the marketplace orgs
67
spec:

workspaces/marketplace/examples/all-packages.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apiVersion: backstage.io/v1alpha1
22
kind: Location
33
metadata:
4+
namespace: marketplace-plugin-demo
45
name: all-packages
56
description: A collection of all the marketplace packages
67
spec:

workspaces/marketplace/examples/all-plugins.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
apiVersion: backstage.io/v1alpha1
22
kind: Location
33
metadata:
4+
namespace: marketplace-plugin-demo
45
name: all-plugins
56
description: A collection of all the marketplace plugins
67
spec:
78
targets:
89
- ./plugins/3scale.yaml
910
- ./plugins/acr.yaml
1011
- ./plugins/keycloak.yaml
12+
- ./plugins/marketplace.yaml
13+
- ./plugins/no-icon-no-description.yaml
1114
- ./plugins/quay.yaml
1215
- ./plugins/tekton.yaml
1316
- ./plugins/topology.yaml

workspaces/marketplace/examples/collections/featured.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
apiVersion: extensions.backstage.io/v1alpha1
33
kind: PluginCollection
44
metadata:
5-
name: disabled-featured
5+
namespace: marketplace-plugin-demo
6+
name: featured
67
title: Featured Plugins
78
description: A set of great plugins! :)
89
spec:

workspaces/marketplace/examples/collections/kubernetes.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
apiVersion: extensions.backstage.io/v1alpha1
33
kind: PluginCollection
44
metadata:
5+
namespace: marketplace-plugin-demo
56
name: kubernetes
67
title: Kubernetes Plugins
78
description: A set of Kubernetes plugins! :)

workspaces/marketplace/examples/packages/tekton.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
kind: Package
33
apiVersion: extensions.backstage.io/v1alpha1
44
metadata:
5+
namespace: marketplace-plugin-demo
56
name: backstage-community-plugin-tekton
67
title: '@backstage-community/plugin-tekton'
78
links:

0 commit comments

Comments
 (0)