Skip to content

Conversation

@odzhychko
Copy link

@odzhychko odzhychko commented Jan 18, 2026

Mark unsupported calendars as non-selectable.
Previously they were fully hidden.

Show a message about why some calendars are not selectable.

Also show calendars that do not support events (and only support tasks and/or journal entries).
Previously, calendars that did not support events were hidden altogether.

Resolves: #2572

Before

Screenshot From 2026-01-18 23-18-03

After


Screenshot From 2026-01-25 19-38-36

Test data

SampleIcsFiles.zip

After (previous iterations)

First iteration Screenshot From 2026-01-18 23-15-30

@odzhychko odzhychko marked this pull request as draft January 21, 2026 15:43
Mark unsupported calendars as non-selectable.
Previously they were fully hidden.

Show a message about why some calendars are not selectable.

Also show calendars that do not support events (and only support tasks and/or journal entries).
Previously, calendars that did not support events were hidden altogether.

Resolves:  nextcloud#2572
Signed-off-by: Oleksandr Dzhychko <[email protected]>
/**
* List of sorted writable calendars.
*
* Even including ones without support for events.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an interesting case. And I'm not sure if the old behavior was intended or if, respectively, the new behavior is more appropriate.

Because sortedCalendars (and sortedCalendarFilteredByComponents) only returned calendars that at least supported VEVENT users could never import into calendars that only support VTODO or/and VJOURNAL.

@odzhychko odzhychko marked this pull request as ready for review January 25, 2026 18:50
return calendars
if (disalbedBecauseOfEvents && disalbedBecauseOfTasks && disalbedBecauseOfJournalEntries) {
return this.$t('calendar', 'Some calendars are disabled because this file contains events, tasks and journal entries.')
Copy link
Author

@odzhychko odzhychko Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Intl.ListFormat can be used.

See and wait for the outcome of #7875 (comment)

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.

Check import ics for VTODOs and filter Calendars accordingly

1 participant