Skip to content

feat: search bar x of y#254

Merged
williscool merged 3 commits intomasterfrom
feat/search_bar_x_of_y
Feb 25, 2026
Merged

feat: search bar x of y#254
williscool merged 3 commits intomasterfrom
feat/search_bar_x_of_y

Conversation

@williscool
Copy link
Owner

@williscool williscool commented Feb 25, 2026

  • docs: plan
  • feat: do the plan

fixes #241


Note

Low Risk
Low risk UI-only change: adds a new count-tracking field per list fragment and updates the search hint formatting; main risk is incorrect counts/strings if the new total count is not kept in sync with list reloads.

Overview
Updates the search bar hint in MainActivityModern to display "X of Y" (filtered vs total) when filter pills are active and reduce the list, while keeping the existing hint when filters are inactive or match everything.

To support this, SearchableFragment now exposes getTotalEventCount(), and the Active/Upcoming/Dismissed fragments track and return the pre-filter total during loadEvents(). Adds new search_placeholder_filtered plurals (EN + FR) and Robolectric tests covering the new hint behavior plus a test-only setter (setFilterStateForTesting) to drive filter scenarios.

Written by Cursor Bugbot for commit 8e8bd9e. This will update automatically on new commits. Configure here.

@williscool williscool force-pushed the feat/search_bar_x_of_y branch from 897a037 to 389977e Compare February 25, 2026 04:52
@williscool williscool changed the title feat/search bar x of y feat: search bar x of y Feb 25, 2026
@github-actions
Copy link

Build artifacts for PR #254 (commit 897a037) are available:

You can download these artifacts from the "Artifacts" section of the workflow run.

@github-actions
Copy link

Build artifacts for PR #254 (commit 389977e) are available:

You can download these artifacts from the "Artifacts" section of the workflow run.

@github-actions
Copy link

github-actions bot commented Feb 25, 2026

Code Coverage Report

Overall Project 27.39% -0.02%
Files changed 91.18% 🍏

File Coverage
UpcomingEventsFragment.kt 59.87% -0.63% 🍏
DismissedEventsFragment.kt 58.88% -0.65% 🍏
MainActivityModern.kt 51.35% -0.13% 🍏
ActiveEventsFragment.kt 50.91% -0.41% 🍏
SearchableFragment.kt 47.62% -14.29%

@github-actions
Copy link

📊 Code Coverage Summary

Coverage Type Coverage
Overall 37.46
Changed Files 22.05

View detailed coverage report

@github-actions
Copy link

📊 Code Coverage Summary

Coverage Type Coverage
Overall null
Changed Files 100

View detailed coverage report

@williscool williscool enabled auto-merge (squash) February 25, 2026 06:19
@williscool williscool disabled auto-merge February 25, 2026 06:19
@github-actions
Copy link

Build artifacts for PR #254 (commit 8e8bd9e) are available:

You can download these artifacts from the "Artifacts" section of the workflow run.

@williscool williscool merged commit c20d374 into master Feb 25, 2026
13 of 14 checks passed
@github-actions
Copy link

📊 Code Coverage Summary

Coverage Type Coverage
Overall 27.39
Changed Files 53.66

View detailed coverage report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat: X of Y X Events in Search Bar

1 participant