Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events with a Single DateTime #4828

Closed
stellarpower opened this issue Dec 22, 2022 · 4 comments
Closed

Events with a Single DateTime #4828

stellarpower opened this issue Dec 22, 2022 · 4 comments
Labels
0. to triage Pending approval or rejection enhancement New feature request

Comments

@stellarpower
Copy link

Is your feature request related to a problem? Please describe.

Some "events" may not really have a start and end date/time per se, but may be better represented as instantaneous calendar events, with only one date and time of occurrence. Examples could be:

  • A deadline when something is due - adding a start time really only extends the event further forward into the calendar for viewing purposes
  • A significant memorable event - let's say a time of birth that someone wants to keep in their calendar
  • Events on a timeline - e.g. recording a series of steps in a traffic accident for viewing later

I'm sure there are many others (will happily update the issue if anyone suggest one). I am therefore suggesting that it may be advantageous for some users to have the option to add an event to their calendar that only has a time of occurrence, rather than a pair of start/end timepoints.

Describe the solution you'd like

Possibly a refactor of the existing date/time picker:

  • The "all day" button might be better migrated into the picking tool, rather than in the body of the event details. I think it makes more sense here, as it explicitly relates to the timing of the event, and could be twinned with the control for the proposed option.
  • There is an option to disable and grey-out the end date/time picker, if the event is to have only a date/time of occurrence.

Describe alternatives you've considered

At the simplest level, just some check-box in the date picker, or elsewhere, that would disable the end date and grey-out he controls for it.

Additional context

It may well be that this can;t be represented well in the backend - I won't be surprised if common formats such as ical cannot support instantaneous events. In this case, I think it'd be sensible to allocate a standard duration for such events - one hour, for example. This is more of a UI-related suggestion, and the existing behaviour would be to set some sensible amount of time (but the onus on the user), so implementing in a way that utilises nextcloud's custom metadata in the event to enable this, and falling back to a sensible default for the canonical representation of events that would be used by a DAV client I think is perfectly acceptable.

@stellarpower stellarpower added 0. to triage Pending approval or rejection enhancement New feature request labels Dec 22, 2022
@stellarpower
Copy link
Author

Potentially related if looking at possible implementation details: #2696 #790

@ChristophWurst
Copy link
Member

A deadline when something is due

Sounds like VTODO in the Tasks app is a better fit than the VEVENTs we use here.

@miaulalala
Copy link
Contributor

Hi! This is a specific type of component defined in the iCalendar standard as a VTODO.

We do support VTODOs in the backed, so you can store them in our database, but the Calendar frontend doesn't have the capability to edit them. You can use the Tasks app to edit and display them.

@stellarpower
Copy link
Author

Hi,

Thanks for the information.

the Calendar frontend doesn't have the capability to edit them

I guess this is what my feature request is.

I do use the tasks app to manage when I have due dates for specific todos. But on many occasions, what I want to track are more calendar events on a timeline than they are todo items. When I've been using Google Calendar, I'm quite often adding in items with a fake or default end date of an hour after the start, when I only need to keep track of a single point in time. I an understand if it's a bit of an abuse of the VTODO item in the backend, and could cause issues with either internal or external apps syncing against these calendars. But backend aside, it seems like it adds a nice level of completeness to the frontend to be able to specify events that mark a single point in time, rather than a specific start and end pair that then necessarily has a duration to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. to triage Pending approval or rejection enhancement New feature request
Projects
None yet
Development

No branches or pull requests

3 participants