Skip to content

Conversation

@TheHappyFella
Copy link

Description

This PR fixes a UX issue where the event editor shows "00:00" time input fields even when the "All Day" toggle is enabled.

Fixes #9817

Changes

File: src/calendar-app/calendar/gui/eventeditor-view/EventTimeEditor.ts

  • Added conditional rendering for TimePicker components
  • Time pickers now only render when !attrs.editModel.isAllDay

Impact

Before: All-day events show disabled time fields with "00:00"
After: All-day events show only date fields, time fields are hidden

Testing

  • When "All Day" toggle is OFF: time pickers are visible and functional
  • When "All Day" toggle is ON: time pickers are hidden completely
  • Date pickers remain visible in both cases

Notes

  • Frontend-only fix, no backend changes required
  • Minimal and low-risk change
  • Follows existing conditional rendering patterns

When creating or editing calendar events with "All Day" enabled,
the time input fields (From/To) were still visible showing "00:00",
which is confusing since time is irrelevant for all-day events.

Changes:
- Conditionally render TimePicker components only when isAllDay is false
- Time pickers now completely hidden for all-day events
- Only date pickers remain visible for all-day events

Fixes tutao#9817
@TheHappyFella TheHappyFella marked this pull request as ready for review October 13, 2025 09:52
@andrehgdias
Copy link
Contributor

We have to check with our PO.
This introduces some layout shifting and we usually try to avoid it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Calendar] Event editor shows "00:00" time fields when "All Day" toggle is enabled

2 participants