Skip to content
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

Add dashboard widget #1243

Closed
raimund-schluessler opened this issue Sep 20, 2020 · 11 comments · Fixed by #1641
Closed

Add dashboard widget #1243

raimund-schluessler opened this issue Sep 20, 2020 · 11 comments · Fixed by #1641

Comments

@raimund-schluessler
Copy link
Member

No description provided.

@ei8fdb
Copy link

ei8fdb commented Dec 18, 2020

Hi, is there any contribution needed to work on this?

@raimund-schluessler
Copy link
Member Author

@ei8fdb Contributions are always welcome and so far no one has picked up this issue.

@ei8fdb
Copy link

ei8fdb commented Dec 18, 2020

Hi @raimund-schluessler - I'm afraid my dev skills would not be sufficient. Would it help to have some design input?

@csolisr
Copy link

csolisr commented Dec 18, 2020

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);

@tm9k1
Copy link

tm9k1 commented May 15, 2021

has someone started working on this yet? I'd like to give it a go..

@csolisr
Copy link

csolisr commented May 16, 2021

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!

@raimund-schluessler
Copy link
Member Author

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.

@raimund-schluessler
Copy link
Member Author

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.

@raimund-schluessler
Copy link
Member Author

Please have a look at #1641 (comment) if you want to help testing this feature.

@ei8fdb
Copy link

ei8fdb commented Jun 20, 2021

Please have a look at #1641 (comment) if you want to help testing this feature.

Do you want testing comments in this issue, or in the PR? Or somewhere else?

@raimund-schluessler
Copy link
Member Author

Please have a look at #1641 (comment) if you want to help testing this feature.

Do you want testing comments in this issue, or in the PR? Or somewhere else?

Please comment in the PR #1641 if you notice something. One known problem is that the Calendar app widget breaks when using the Tasks app widget. I currently look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants