rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
460 stars 261 forks source link

New dashboard UI: Ability to customize custom resource list view columns and filter by resource fields #5677

Open axeal opened 4 years ago

axeal commented 4 years ago

Internal Ref: SURE-2364

What kind of request is this (question/bug/enhancement/feature request):

Feature request

Steps to reproduce (least amount of steps as possible):

The user would like the ability to customize the list view of a custom resource type in the new dashboard UI, such that they can display fields from a custom resource. Alongside this they would like the ability to filter the custom resource view based on fields in the custom resource, and not just the name of the custom resource instance.

Environment information

gz#11879

gaktive commented 2 years ago

Internal reference: SURE-2364

richard-cox commented 1 year ago

This is possible with the Advanced Filter feature (both column visibility and custom filtering). It's only enabled in some Elemental resources though, and requires some tweaks before it's applied generically to all lists (@aalves08 can provide links to PRs/issues)

aalves08 commented 1 year ago

The feature is available for usage in rancher/dashboard from this PR (merged): https://github.com/rancher/dashboard/pull/7134

It can filter by the table cols displayed (if they allow to do so) and also the resource labels, with the application of multiple filters which work with partial search + the user has the ability to display labels as table cols as well.

To activate, just apply the flag hasAdvancedFiltering to the ResourceList component

Ex: <ResourceList :has-advanced-filtering="true" />

manuelecarlini commented 1 year ago

This feature is now available, I'm closing this.

gaktive commented 1 year ago

Reopening for QA to test out. Related PR (which wasn't linked): https://github.com/rancher/dashboard/pull/7134

richard-cox commented 1 year ago

I think there's been some confusion. The feature is now available but has only been applied to Elemental resources. Think the ask here is to have the feature available for CRDs.

In this context we should probably work out how to persist these settings per user?

nwmac commented 1 year ago

@mantis-toboggan-md Need to discuss this one - its about CRD table views, not the advanced filtering.

kwwii commented 1 year ago

Here's a mockup: https://xd.adobe.com/view/7d08b50a-526b-466b-9ca4-f222a9f9e0ad-285b/

It adds a page in the Global Settings in which the user can introspect a cluster to define which table columns to show on tables of that resource type across all clusters.