nextcloud / nextcloud/calendar

Default to next rounded hour when today's event is switched from all day to hour

Open
#1,567 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement Feature: Editor
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

I'm not sure if the behaviour should be different for one particular day.

My use case was when you have an all day event on today's date and uncheck the all day checkbox, it's odd to default to an already passed time. It's not that important though, so I'm fine with ignoring it for now.

But my idea for #1021 was that when you click "New event" it will automatically open the new event on today and round up to the next hour.
Does that make sense?

Yes.

Originally posted by @tcitworld in https://github.com/nextcloud/calendar/pull/1563#issuecomment-544958212


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the case described: switch an event on today's date from all-day to timed and observe the default time. Compare that behavior with the expected next rounded hour when creating a new event, then identify the relevant calendar UI entry point and add coverage for both flows.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.