You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ADFA-4386: Show active filter chips and indicator dot on Recent Projects (#1427)
* ADFA-4386: Show active filter chips and indicator dot on Recent Projects
* ADFA-4386: Address review - include descending-only in hasAny, move filter dot drawable to resources module
* ADFA-4386: Address review - unify filter active-state, fix collector leak & double filter passes
- Make sort direction subordinate to a sort criteria: hasAny = sort != null ||
query.isNotEmpty() and applyFilters() only reverses when a criteria is set, so
a descending-only state no longer lights the indicator dot with no clearable
chip. hasActiveFilters now delegates to filterState.value.hasAny so the dot and
the sheet's Clear button share one definition of "active".
- Collect filterEvents once for the view lifetime and dismiss a single
filtersDialog ref instead of launching a per-open collector on every sheet open.
- Sort chip removal: add clearSort() (one applyFilters pass) - no dot flicker.
- Search chip removal: clear the EditText only and let the debounced watcher
drive the VM - one filter pass. Search chip body now focuses the search field
instead of opening the unrelated sort sheet.
- Extract SortCriteria.labelRes() shared by setupSortUI and renderActiveFilters.
- Announce active state on the filter button's contentDescription and mark the
decorative dot importantForAccessibility=no for TalkBack.
- Run beginDelayedTransition before chip mutations so chip enter/exit animates.
---------
Co-authored-by: Daniel Alome <astrocoder007@gmail.com>
0 commit comments