nextcloud / calendar

📆 Calendar app for Nextcloud
https://apps.nextcloud.com/apps/calendar
GNU Affero General Public License v3.0
989 stars 240 forks source link

filter current view (show only events that match search string, in day/week/month view) #2474

Open alexanderdd opened 4 years ago

alexanderdd commented 4 years ago
**Is your feature request related to a problem? Please describe.** A search is being implemented at the moment, but it will present results as a list view, disrupting my workflow and spacial (=temporal) orientation within the week view (or day/month view). **Describe the solution you'd like** What I and many other users need is to **filter the current view**, examples: - type "meeting" in the search box and see only events that contain that word in title or description, across all currently active calendars, in the view that was currently active, for example week view - type "John" and see only events that contain this name in title, description, or as participant - type "room 243" and see events that contain this string in title, description, or as a resource (then calendar could be used for room management and digital signage directly, just keep reloading the URL with .../apps/calendar/timeGridWeek/now?filter="room%243" on a small screen next to room 243) **Describe alternatives you've considered** none **Additional context** As discussed here https://github.com/nextcloud/calendar/issues/8#issuecomment-664995369 Possible implementation was presented there by @SLYtiger16 > I wrote such a feature for a proprietary program which also is utilizing fullcalendar.js. It was SUPER easy, it was written in JavaScript and simply implements an `events_array.filter()` testing for a `string.toLowerCase()` match on the "search" input value vs. the `event.summary` `event.description` `event.location` and the properties of `event.attendees`. > It would be a super simple implementation which simply limits the events for a document rerender This will make handling very full calendars or multiple full calendars easier. Multiple words should be handled as OR. Question is, how to distinguish filtering from the search function in a good UX way?
SLYtiger16 commented 4 years ago

@alexanderdd an input with the placeholder "Filter Events Shown" could be placed in the left menu between the New Event button and the calendar list.

Conversely the search function will be built into the existing Nextcloud search bar and would intuitively separate their functionality.

Discostu36 commented 3 years ago

See Task app for an example of how such a feature can work.

alexanderdd commented 3 years ago

Thanks for the comments. Can someone triage this issue?

alexanderdd commented 2 years ago

@tcitworld @georgehrke can someone triage this issue please?