notes
notes copied to clipboard
[wip] implement client dashboard api for notes
Dashboard api will allow clients to render the dashboard widgets
See https://github.com/nextcloud/server/pull/33658 for more information, requires the interfaces added by that pr
This implementation was created to provide an example for a dashboard that has a button. Interfaces might still be subject to change.
Nice! How can I test this (i.e. which clients will use that API)? Is it for Nextcloud Android/iOS or for the Nextcloud server itself? The last one would be interesting, too, because currently, the dashboard app loads several megabytes Javascript for every widget.
It can be used by any client, but first we will implement it on Android/iOS.
Bug: iconURL is empty @icewind1991
Bug: notes icon url on widgets-items endpoint is empty
@tobiasKaminsky I rebased and pushed a commit to fix the icon bugs. Mind to give this another test run?
In {{ base_url }}/ocs/v2.php/apps/dashboard/api/v1/widgets: icon_url: "/nc/apps/notes/img/notes-dark.svg"
but it must be absolute, otherwise clients cannot use it.
In: {{ base_url }}/ocs/v2.php/apps/dashboard/api/v1/widget-items iconURL: is starred.svg or notes-dark.svg But it should provide preview of text.

I'm not sure if the previews would actually be useful here since they are quite small and you won't get the content in that size. Maybe having the star vs note icon makes more sense? @jancborchardt