-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(marketplace): Refactore and update UI, add filter and align it latest design and API changes #401
base: main
Are you sure you want to change the base?
feat(marketplace): Refactore and update UI, add filter and align it latest design and API changes #401
Conversation
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
ec9f85b
to
13b470f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filters, Badges, new routes for plugin Install page, massive UI improvements 🎉 Looks good, I have add some minor comments.
'apiVersion' in maybe && | ||
'kind' in maybe && | ||
maybe.apiVersion === 'marketplace.backstage.io/v1alpha1' && | ||
maybe.kind === 'Plugin' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
maybe.kind === 'Plugin' | |
maybe.kind === MarketplaceKind.Plugin |
@@ -187,7 +187,7 @@ describe('createRouter', () => { | |||
const { backendServer } = await setupTestWithMockCatalog({ | |||
mockData: mockPluginList[0], | |||
name: 'featured-plugins', | |||
kind: 'pluginlist', | |||
kind: 'PluginList', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
kind: 'PluginList', | |
kind: MarketplaceKind.PluginList, |
return { | ||
color: colors.custom, | ||
label: 'Custom', | ||
tooltip: 'Custom', | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shows Custom
badge by default for all the entities missing certified/verified annotations, is this expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see this in figma, label reads Custom plugins
there.
|
||
const SupportTypeFilter = () => { | ||
const categoriesFacet = usePluginFacet('spec.categories'); | ||
const categories = categoriesFacet.data?.facets['spec.categories']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of categories, Shouldn't this be Certified
, Verified
, and Custom
?
export const MarketplacePluginsGrid = () => { | ||
const pluginLists = usePluginLists(); | ||
|
||
const [search] = useQueryParamState<string | undefined>('q'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you need to also add the filters for category, author and support.type
here, or is it coming in next pr?
Signed-off-by: Christoph Jerolimov <[email protected]>
Signed-off-by: Christoph Jerolimov <[email protected]>
Signed-off-by: Christoph Jerolimov <[email protected]>
Signed-off-by: Christoph Jerolimov <[email protected]>
Signed-off-by: Christoph Jerolimov <[email protected]>
Signed-off-by: Christoph Jerolimov <[email protected]>
…ketplace into the existing plugins page Signed-off-by: Christoph Jerolimov <[email protected]>
d4391e3
to
f8cd5e7
Compare
|
Hey, I just made a Pull Request!
Address:
✔️ Checklist