cloudfoundry-community / stratos

Stratos: Web-based Management UI for Cloud Foundry and Kubernetes
MIT License
2 stars 7 forks source link

Support filtering for tags in the marketplace #27

Open damzog opened 3 months ago

damzog commented 3 months ago

Detailed Description

Filtering the list of services in the marketplace view is possible via name, active, bindable. Add an option to be able to filter for tag:

More advanced filtering like being able to combine search for name and tag and or multiple tags desireable but considered to complicated for first iteration Being able to group services be a primary tag would also desireable but considered to complicated for first iteration Being able to click on a tag and set it as filter would be really nice to have

Context

For a marketplace with more than a handful of services it is mandatory to structure the offerings. Currently the only option to group service offerings is by assigning tags e.g. "database" or "message broker". Obviously the UI should support filtering for these tags.

Possible Implementation

Mockup screenshot, see here

mafolz commented 2 months ago

as fas as i found in the source, that could be archived my changing the Front End Code.

The filters for the Services are defined here: https://github.com/cloudfoundry-community/stratos/blob/main/src/frontend/packages/cloud-foundry/src/shared/components/list/list-types/cf-services/cf-services-list-config.service.ts#L78-L87

And applied through the specified Fields here:

https://github.com/cloudfoundry-community/stratos/blob/main/src/frontend/packages/cloud-foundry/src/shared/components/list/list-types/cf-services/cf-services-data-source.ts#L31-L35

So if we get this transformation entries workign, with the Tags specified here: https://github.com/cloudfoundry-community/stratos/blob/main/src/frontend/packages/cloud-foundry/src/shared/components/list/list-types/cf-services/cf-services-list-config.service.ts#L167-L172 like the entity.label field. it should be possible.