Skip to content

Hide past events from event lists unless asked for - #47

Merged
rockfordlhotka merged 1 commit into
mainfrom
hide-old-events
Nov 6, 2026
Merged

rockfordlhotka merged 1 commit into
mainfrom
hide-old-events

Conversation

@rockfordlhotka

Copy link
Copy Markdown
Member

Summary

Event lists showed every old event (cancelled, closed, already held) by default. Now they show only what is still going on, and past events are opt-in.

"Past" means:

  • Cancelled
  • Expired: the deadline passed without a decision
  • Finalized for a meeting that has ended (chosen slot start + duration ≤ now). A finalized event stays listed until its meeting is over.

Changes:

  • ISchedulingService.ListMyEventsAsync takes includePast. The filter runs in the SQL query, before the 100-event list limit, so old events can't push current ones out of the list.
  • MCP list_my_events gets includePast (default false). The tool description tells agents to use it only when the user asks about old events.
  • /events gets a Show past events checkbox (off by default). The empty "Organizing" text now says "any current events" while past events are hidden.
  • docs/design.md tool and page tables updated.

Test plan

  • New VisibilityTests.PastEventsAreListedOnlyWhenAskedFor: covers cancelled, expired and finalized events, both filters, both values of includePast, and a finalized event during its meeting and at its end.
  • dotnet test Scheduler.slnx
  • After deploy: list events via the web and RockBot and confirm old ones are gone, and that the checkbox / includePast brings them back

🤖 Generated with Claude Code

list_my_events and the /events page now leave out past events by default:
cancelled, expired (deadline passed without a decision), and finalized for a
meeting that has already ended. A finalized event stays listed until its
meeting ends.

- ISchedulingService.ListMyEventsAsync takes includePast; the filter runs in
  the query, before the 100-event list limit.
- list_my_events gets an includePast parameter (default false).
- /events gets a "Show past events" checkbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rockfordlhotka
rockfordlhotka merged commit eca1d5e into main Nov 6, 2026
4 checks passed
@rockfordlhotka
rockfordlhotka deleted the hide-old-events branch November 6, 2026 16:26
@rockfordlhotka rockfordlhotka mentioned this pull request Nov 7, 2026
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.

1 participant