Skip to content

Conversation

@williscool
Copy link
Owner

@williscool williscool commented Jan 15, 2026

Note

Adds a rendering mode for upcoming events and displays the next alert time in the list.

  • Introduces EventDisplayMode (ACTIVE, UPCOMING, DISMISSED) to control how lists render (EventDisplayMode.kt)
  • Updates EventListAdapter to accept a mode and, in UPCOMING, show "Alert at %s" using event.alertTime; keeps existing "Snoozed until" for active snoozed events
  • UpcomingEventsFragment now calls adapter.setEventsToDisplay(..., EventDisplayMode.UPCOMING)
  • Adds strings.xml entry alert_at

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

}

fun setEventsToDisplay(newEvents: Array<EventAlertRecord>? = null) = synchronized(this) {
fun setEventsToDisplay(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Search resets display mode losing alert time text

Medium Severity

The setSearchText function calls setEventsToDisplay() without passing the mode parameter. Since setEventsToDisplay defaults to EventDisplayMode.ACTIVE and unconditionally sets displayMode = mode, searching in the Upcoming Events tab resets displayMode from UPCOMING to ACTIVE. This causes the "Alert at X" text to disappear for all filtered results, breaking the core feature this PR is meant to implement.

Additional Locations (1)

Fix in Cursor Fix in Web

@github-actions
Copy link

Build artifacts for PR #180 (commit 644a1d9) are available:

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

@github-actions
Copy link

Code Coverage Report

Overall Project 24.6% -0.01%
Files changed 93.96% 🍏

File Coverage
EventDisplayMode.kt 92.59% -3.7% 🍏
UpcomingEventsFragment.kt 73.21% 🍏
EventListAdapter.kt 44.17% -0.46% 🍏

@github-actions
Copy link

📊 Code Coverage Summary

Coverage Type Coverage
Overall 24.6
Changed Files 50.02

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.

2 participants