-
Notifications
You must be signed in to change notification settings - Fork 240
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
Dashboard widget #2414
Dashboard widget #2414
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2414 +/- ##
============================================
- Coverage 30.00% 29.95% -0.05%
- Complexity 103 116 +13
============================================
Files 149 153 +4
Lines 5356 5468 +112
Branches 802 811 +9
============================================
+ Hits 1607 1638 +31
- Misses 3749 3830 +81
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@georgehrke Is there any way we can query the DAV endpoint for something like "the next 10 upcoming events"? Otherwise we probably should have a new HTTP endpoint for that where we collect the relevant list. This would have the benefit that we could also provide the list through the initial state api and reduce loading time when the user sees no information being available in the frontend. |
No, there is no such endpoint. The problem here are recurring events. There is no way for us to easily query "the next 10 events" or something similar. (Neither via CalDAV nor from the database for that matter) If you send a calendar-query with a time-range, it will return:
The server doesn't actually check whether the recurring event is occurring in that time-range. For example, if you query all events for June, the server will just return all birthday events, even if the person was not born in June. |
This comment has been minimized.
This comment has been minimized.
lib/AppInfo/Application.php
Outdated
|
||
$container = $this->getContainer(); | ||
|
||
// TODO: Migrate to new bootstrap once Calendar supports only Nextcloud 20+ |
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.
We can just bump to 2.1 and limit it to Nc 20+
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.
Sounds good to me 👍
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.
@tcitworld Do you have any objections here?
I would release this as part of Calendar 2.1 and we can always backport bugfixes to 2.0.x when necessary :)
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.
@jancborchardt I also added a small colored circle with the calendar color. |
This comment has been minimized.
This comment has been minimized.
@georgehrke There seems to be an issue with having only the default personal calendar, in that case there are no requests sent and no events shown. When adding a second calendar only the events of that are shown. |
@juliushaertl Will check that. Was that calendar enabled? |
@georgehrke good example of what I meant by this is in the Talk widget: nextcloud/spreed#3890 (comment) |
@jancborchardt Please see the updated screenshots in the original post |
1fe2197
to
a13c8de
Compare
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.
@jancborchardt Please see the updated screenshots in the original post
Super super super nice! :) Getting 2 issues though:
- The "Create a new event" button seems to not do anything? (fixed by Add routes to allow creating / editing events from outside #2483)
- Clicking on an event initially tries to open a deeplink, but then changes to open just the Dashboard. I do have the index.php in my url path, if that makes a difference. (fixed by Add routes to allow creating / editing events from outside #2483)
- The "No more events today" doesn’t seem to take exactly the space as 2 entries – the calendar entries below don’t line up vertically with those of other widgets.
Requires #2483 |
0f4d1aa
to
2abed44
Compare
I would like to get #2498 in first, then we can use the icon-font i added for tasks: |
f91cbfe
to
d545810
Compare
Signed-off-by: Julius Härtl <jus@bitgrid.net>
d545810
to
eb1c1aa
Compare
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.
Good to merge from my side 👍
All remarks have been addressed. |
Description
This PR implements a basic dashboard widget for Nextcloud 20.
Type of change
Please delete options that are not relevant.
How to test / use your changes?
UI Changes
Checklist:
git commit -sm "Your commit message"
)ToDo