This was a nice little puzzle. So, the approach I took was to manipulate the RG design.
The filtered RG is a list of items that either:
- Have no group
- or are the first of a group
Inside the RG cell are 2 possible visual elements that only display under one of the following conditions:
- If cell’s item is not grouped > show the name of the ungrouped item
- If cell’s item is the first of a group > show a nested RG of items that in the same group
Here’s my demo editor: coaching-sandbox | Bubble Editor
Here’s the preview (feel free to re-assign groups with the dropdown to see how the filtered list changes): https://coaching-sandbox.bubbleapps.io/version-test/list-filter?debug_mode=true
Pay attention to the source of “RG Filtered List” as well as the conditions of the two inner elements. I put a star icon next to these to make them easier to find.
I used another RG (on the left) to do the main search of all items. This is helpful to cut down on overall searches and is referenced a few times in the filtered logic/conditions.
Cheers,
Gaby
Coaching No Code Apps