-
Notifications
You must be signed in to change notification settings - Fork 96
Let users set a default calendar for new events #399
base: master
Are you sure you want to change the base?
Conversation
As this adds yet another control to the calendar rows, I’d say we need to solve first how we cope with 3+ control elements of that sort. Like introducing a caret/triangle to hint at more settings. And maybe have sharing always present (or whichever one we regard the most important action). And that should be done in core, in an apps.js (and existing apps.css). @jbtbnl @Kondou-ger @MorrisJobke do you have proposals? Previously we talked about a bubble (not very well integrated), or expanding the row to expose options (well integrated as long as there is an animation). Anything else? |
@jancborchardt I believe that a lot of "settings" do not actually belong there. For instance the two CalDAV links, they should be on the "Help" page instead. There could be a link in the settings drawer "Learn how to setup CalDAV" to guide new users there. The "Clear cache" button shouldn't be necessary or should be at a less prominent location. The "Timezone" setting is a general setting like display language and should therefore be in the personal settings page. On ownCloud setup it should default corresponding to the user's language. |
What about showing the clear cache button only when debug mode is enabled?
We should get rid of the timezone setting anyhow. the calendar should just use the timezone of the browser. |
That could be, I can't judge if it's necessary that often while developing / debugging the Calendar app. |
I suggest using "..." as in Android or other mobile OSes. |
OCP\JSON::checkAppEnabled('calendar'); | ||
OCP\JSON::callCheck(); | ||
|
||
$cal = $_POST["calendarid"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isset?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I modify this as well:
https://github.com/owncloud/calendar/blob/master/ajax/calendar/delete.php#L14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go for it :-)
No, all app-specific settings should be in the app. We previously had app settings on the personal page and it was confusing. As CalDAV is bound to the Calendar app, it should be in there. I agree that »Settings« might be a slightly misleading name, but I don’t think it’s a really grave issue.
Yes, we should remove it for good. @georgehrke can we please do that? Just showing it in debug is also fine with me for now.
Yes. See the »global region format« issue in core: owncloud/core#376 |
@LukasReschke Thanks :). I have committed again with the changes. Can you check it again? |
@jancborchardt What's your final decision on this? I agree that yet another control element is not good. A better solution would be to make the calendar list sortable. Users could make a calendar 'default' by moving it to the top of the list. |
@georgehrke Or maybe using the settings panel to pick the default calendar from dropdown list? |
@jancborchardt, what should we do with this? |
This is a good function, but we should wait with implementing it once we switch to the menu where items are extended downwards. With the current solution of having icons next to it, we can’t just put function after function in there. Especially because in this case, the star icon is not very clear. (Also, the ability to reorder calendars is a bit excessive to just get this solved, and is also not very discoverable that it defines the default calendar.) So, we should wait with this. Hope that’s ok? |
@jancborchardt Yes sure. I will update it later after new menus :) |
Rebased onto master |
👍 tested in chrome / ff / chrome mobile |
@jancborchardt why isn't this merged yet? |
@brantje Because we wanted to avoid using extra action button. See the Jan's comment above: owncloud/calendar#399 (comment) |
Yes, the sidebar is cluttered with actions at the moment. We need to clean that up before we add new stuff. |
Work in progress on the action buttons cleanup: owncloud/core#10644 |
What do we do with this? Should I work on this so this gets merged? |
@wakeup since owncloud/core#10644 has been merged, it would be great if you could add the actions menu in this PR. @jancborchardt should all actions be in the menu or are there some (like edit and share) that should remain visible? |
I’d say Share should remain visible, yes (just as planned for the Files app). It needs to be on half opacity though, and only be fully opaque when actually shared. |
@jbtbnl Just a quick question, does the current git version of Calendar work in your environments? Similar to owncloud/core#12197 I am having this error when choosing Calendar app:
|
2b93292
to
5521ed2
Compare
@wakeup Calendar master doesn't work because of owncloud/core#12005 |
should be fixed with owncloud/calendar@59d249a |
This should fix: #348
Users can set one calendar default by clicking on the star.
New events will be created in the default calendar.
5521ed2
to
aee5b12
Compare
works 👍 |
anyhow moving to backlog because of open UX issues as declared above |
This should implement: #348
Users can set one calendar default by clicking on the star.
New events will be created in the default calendar.