HaikuArchives / Calendar

:calendar: A native Calendar application for Haiku.
MIT License
29 stars 20 forks source link

Add Search/Filter Feature #119

Closed harshit-sharma-gits closed 2 years ago

harshit-sharma-gits commented 2 years ago

If the user wants to look up a specific detail from the past or upcoming events, they can simply search the entire calendar by typing in a keyword, without having to manually scroll the calendar and search for that event.

harshit-sharma-gits commented 2 years ago

On discussing with the community, on this thread, this was the best mockup suggested by @humdingerb

  • The Profile pop-up lets you choose what profile to display, once multiple profiles is implemented. The pop-up menu will have a checkmarkable list of the existnig profiles.
  • Same with the Categories
  • The emphasized textSearch text control filters for the search term.
  • The Clear button is a shortcut to remove all filters. The above criteria always relate to what tab is currently active and are applied live. That is, if you’re on the Month tab, you’ll get only the events of this month filtered accordingly. Same for Week and Day. We’d also need an Agenda view that’ll have all past, present and future events. This is a desirable view mode in any case, not just for the Filter & Search feature
humdingerb commented 2 years ago

Basically, yes. Though with this post in that thread, I dialed down the widget additions to make it all much simpler.

It comes down to adding just the "Search" text control (which should be labelled "Filter").It'll work like Tracker's type-ahead filtering, applying the space-delimited terms to the query already used for the Day/Week/Month list, on the fields category, name, place, location.

"Profiles" would work the same. As you probably don't switch that often between profiles, it'll do to add them checkmarkable to the "View" menu in the menu bar (or a new menu "Profiles" there?).

Sounds good? Less work for you, simpler GUI for the users. :)

humdingerb commented 2 years ago

I took the liberty to add a new github label "GSoC'22" we can use for your work and edited the title of thiis ticket accordingly.

harshit-sharma-gits commented 2 years ago

I think this issue should be closed for now, as per PR #121

humdingerb commented 2 years ago

Right!