Hi, is there any contribution needed to work on this?
@ei8fdb Contributions are always welcome and so far no one has picked up this issue.
Hi @raimund-schluessler - I'm afraid my dev skills would not be sufficient. Would it help to have some design input?
I'll be having vacations for the next pair of weeks, but I don't know if I'll have enough free time. At least I can post a few pointers from other widgets already implemented for Nextcloud, so somebody else can use them as a template to start hooking. From what I've gathered we would need to add four changes:
lib/Dashboard/TasksWidget.php, using ImportantMailWidget.php as a templatesrc/components/Dashboard.vue, using Dashboard.vue as a templatelib/Listener/DashboardPanelListener.php, using DashboardPanelListener.php as a templatelib/AppInfo/Application.php:
use OCA\Tasks\Dashboard\TasksWidget;
public function __construct(array $params=[]) {
parent::__construct('tasks', $params);
}
$context->registerDashboardWidget(TasksWidget::class);
has someone started working on this yet? I'd like to give it a go..
has someone started working on this yet? I'd like to give it a go..
Not yet to be honest, and I've been really busy but go ahead, I think you can use the guide I found above to start guiding yourself. Thanks in advance!
has someone started working on this yet? I'd like to give it a go..
I think it's worth checking out how the Calendar app does it: https://github.com/nextcloud/calendar/blob/master/src/dashboard.js
After all, we want to do the same as the Calendar app widget, just showing VTODOs instead of VEVENTs.
We have started to implement this now in #1641. The widget does not do anything meaningful yet, but the infrastructure for showing it is done. Contributions are welcome.
Most helpful comment
I'll be having vacations for the next pair of weeks, but I don't know if I'll have enough free time. At least I can post a few pointers from other widgets already implemented for Nextcloud, so somebody else can use them as a template to start hooking. From what I've gathered we would need to add four changes:
lib/Dashboard/TasksWidget.php, using ImportantMailWidget.php as a templatesrc/components/Dashboard.vue, using Dashboard.vue as a templatelib/Listener/DashboardPanelListener.php, using DashboardPanelListener.php as a templatelib/AppInfo/Application.php:use OCA\Tasks\Dashboard\TasksWidget; public function __construct(array $params=[]) { parent::__construct('tasks', $params); } $context->registerDashboardWidget(TasksWidget::class);