Tasks: Add dashboard widget

Created on 20 Sep 2020  路  8Comments  路  Source: nextcloud/tasks

1 - to develop feature

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:

  • Create the widget proper on lib/Dashboard/TasksWidget.php, using ImportantMailWidget.php as a template
  • Create the dashboard view on src/components/Dashboard.vue, using Dashboard.vue as a template
  • Add an event listener on lib/Listener/DashboardPanelListener.php, using DashboardPanelListener.php as a template
  • Register the widget to the main application on lib/AppInfo/Application.php:
    use OCA\Tasks\Dashboard\TasksWidget; public function __construct(array $params=[]) { parent::__construct('tasks', $params); } $context->registerDashboardWidget(TasksWidget::class);

All 8 comments

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:

  • Create the widget proper on lib/Dashboard/TasksWidget.php, using ImportantMailWidget.php as a template
  • Create the dashboard view on src/components/Dashboard.vue, using Dashboard.vue as a template
  • Add an event listener on lib/Listener/DashboardPanelListener.php, using DashboardPanelListener.php as a template
  • Register the widget to the main application on lib/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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Valdnet picture Valdnet  路  7Comments

raimund-schluessler picture raimund-schluessler  路  7Comments

raimund-schluessler picture raimund-schluessler  路  5Comments

raimund-schluessler picture raimund-schluessler  路  4Comments

ghost picture ghost  路  4Comments