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

[Feature Request] Dashboard Widget #113

Closed
mejo- opened this issue Oct 7, 2020 · 2 comments · Fixed by #898
Closed

[Feature Request] Dashboard Widget #113

mejo- opened this issue Oct 7, 2020 · 2 comments · Fixed by #898

Comments

@mejo-
Copy link
Member

mejo- commented Oct 7, 2020

Summary

The idea is to have a dashboard widget for Collectives with a list of recently changed pages from the collectives you're part of.

Starting points

Backend

We would need a way to retrieve recently changed pages from the backend. Something like a findRecent() function in PageService.php that gets exposed as API endpoint in PageController.php.

Frontend

A dashboard widget that displays the recently changed pages. There's documentation for writing a dashboard widget

Not sure whether the pages should be sorted by collective or not. Probably just sorting them by date is the best. The graphical representation could be similar to how the link previews reference collective pages, reusing PageReferenceWidget.vue:

2023-05-15T10:58:13,799910884+01:00

@mejo-
Copy link
Member Author

mejo- commented Oct 7, 2020

In GitLab by @sunjam1 on Oct 7, 2020, 07:28

Your app might also benefit work on developing Team and Project views for Dashboard... could make sense to incorporate Collectives as a way to include Circles support. I have no idea, but I know adding support for Circles has been an on-going question. Your project was mentioned in this discussion thread on Projects of Teams, plus this one on organizing Circles groups. It is mentioned in the first thread that Circles are planned to become Core functionality in an upcoming release. v22 is tagged at the moment. Also mentioned your app on the Circles app repo.

@mejo-
Copy link
Member Author

mejo- commented Jul 4, 2021

I started with the development of a Collectives app dashboard widget in branch dasbhoard-widget. It's completely untested and just a first rough start though.

Unfortunately, we cannot add the nodejs dependency @nextcloud/vue-dashboard at the moment. It required @nextcloud/vue 3 and we already use @nextcloud/vue 4. There's an open issue to track the migration or @nextcloud/vue-dashboard to @nextcloud-vue version 4: nextcloud-libraries/nextcloud-vue-dashboard#233

Also, I'm not sure how to best retrieve the list of recently changed pages in a performant way. Fetching the full list of pages for all collectives and comparing their timestamps feels a bit heavy, given that the dashboard list is supposed to update itself in the background every minute or so. This would result in a lot of filesystem directory reads. Maybe we could get the list of most recent files from the filecache? 🤔

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

Successfully merging a pull request may close this issue.

2 participants