Calendar has three hard-coded queries, "My Events", "View All", and "Upcoming Events". See T4792 for some previous discussion.
The "My Events" and "View All" pages draw a calendar, but don't use ApplicationSearch. Particularly, there's no way to customize or filter these calendars, adjust who shows up on them, etc.
The "Upcoming Events" uses ApplicationSearch, but can't draw a calendar.
I think these UIs should work like this:
- There should be a single ApplicationSearch UI.
- It should include an option to display results as either a calendar or a list of events, so both views benefit from the full power of ApplicationSearch.
- The existing filters should be expressed as prebuilt queries.
- The separate "List of events" UI that you get to by clicking "Upcoming Events" should cease to exist.