8bitPit / Niagara-Issues

A place to submit feature requests and bug reports for Niagara Launcher, a modern + minimalist Android home screen optimized for one-✋ access and staying focused.
http://niagaralauncher.app
856 stars 41 forks source link

Filter out "Working location" events from the calendar #2765

Open 71 opened 4 months ago

71 commented 4 months ago

Is your feature request related to a problem?

I would like to add events from a calendar to Niagara; unfortunately, that calendar comes from Google and also contains automatically-created "Working location" events. Because of the noise it adds (one "Working location" event per work day, and the event is displayed the whole day), I have to filter out the whole calendar, which hides useful events.

I suspect these events are special as they show up above the calendar in the Google Calendar UI, and when opened from Niagara they display some crazy date (Jan 1, 4713).

Describe the solution you'd like

If it's possible on your end to filter out working location events (maybe there is some metadata you could use?), that would be great. Otherwise, it could be useful to hide events matching some criteria (e.g. starting with "Working location:", though that seems to go against your goal of keeping things simple), or whole-day events (though it should be on a per-calendar basis, since other calendars of mine have useful whole-day events).

Feature Request Procedure

TFackler commented 4 months ago

Hello there :wave: Thanks for reporting this and presenting possible solutions.

I assume there is no way you could either turn those events off directly in the original calendar or separate them into their own calendar, which you could then exclude from the agenda in Niagara Launcher.

Has this issue appeared recently, as in you had your work calendar added to Niagara Launcher before but now those all-day events have started to appear in the agenda?

Could you send us a screenshot of your calendar in the Google Calendar app and of Niagara's calendar agenda? With that, we could take a closer look. Please do not forget to censor sensitive information but try to keep as much information as is necessary to identify events.

71 commented 4 months ago

Hey there!

I assume there is no way you could either turn those events off directly in the original calendar or separate them into their own calendar, which you could then exclude from the agenda in Niagara Launcher.

As far as I know, the "Working location" events are bound to my "main" calendar; at least I couldn't find a way to move them to some other calendar.

Has this issue appeared recently, as in you had your work calendar added to Niagara Launcher before but now those all-day events have started to appear in the agenda?

If I remember correctly, this was also the case before, I simply gave up on using Niagara for that calendar and thought about it again recently.

Could you send us a screenshot of your calendar in the Google Calendar app and of Niagara's calendar agenda?

Sure! All-day events appear like this in Google Calendar, at the top of the screen:

image

Here, "Office" is the working location event, and "Test" is a regular all-day event I created for comparison.

They show up identically in Niagara Launcher, though with different colors:

image

The "Test" event is shown the exact same way when opened from Niagara and from Google Calendar:

image

When opened from Google Calendar, the "working location" event looks like so:

image

(Note: it says "Working location: Office", but the event title as given by the Calendar Provider and in the UI is simply "Office")

When opened from Niagara, Google Calendar gets a little bit confused:

image

I had a quick look at the CalendarContract.ExtendedProperties of the event but nothing stood out.

Edit: I kept digging a little bit by looking at the event properties and nothing stands out. I'll try to compare them with regular events in case something comes up, but not much is given... I guess one could filter out events with allDay = 1 AND rrule LIKE "FREQ=WEEKLY;WKST=%;BYDAY=%", but that seems very approximate.