Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
285 stars 76 forks source link

[List] - Filtering the list component should not filter out nested list items #8566

Closed sagewall closed 2 months ago

sagewall commented 9 months ago

Check existing issues

Description

In the new layer list widget, redesigned to use calcite, if you search layerlist by the name of a Group Layer, all the sublayers within that Group Layer are filtered out because they do not match the search terms. It seems like if users are searching for a particular group layer, they also want to see the content of that group layer.

Acceptance Criteria

The ability for a list component to not filter out nested list items.

Relevant Info

https://codepen.io/sagewall/pen/MWxewRY

Which Component

List

Example Use Case

No response

Priority impact

p2 - want for current milestone

Calcite package

Esri team

ArcGIS Maps SDK for JavaScript

sagewall commented 8 months ago

@geospatialem is there any way to get this prioritized? Based on our recent map jam feedback it seems pretty important. cc @driskull @asangma

driskull commented 8 months ago

Since filtering is something new that wasn't there previously, we could always disable it until it supports our use case.

sagewall commented 8 months ago

Thought I'd comment that this also effects the Map Viewer, Experience Builder, and Instant Apps teams as well.

zaramatheson commented 8 months ago

Also a high priority for Map Viewer

thming commented 8 months ago

Yes, this would be a high priority for Experience Builder as well.

We have updated to the new LayerList widget in the upcoming release and I am also seeing the behavior during our testing: image

driskull commented 8 months ago

I think we can close this issue. The list-item allows for providing metadata. The metadata can contain the parent item's title which would support the requested workflow.

geospatialem commented 2 months ago

Confirmed with Sage that List now has some properties that allow custom filtering, such as metadata and filterProps:

Closing as unplanned.