notes icon indicating copy to clipboard operation
notes copied to clipboard

[wip] implement client dashboard api for notes

Open icewind1991 opened this issue 3 years ago • 4 comments

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.

icewind1991 avatar Aug 29 '22 14:08 icewind1991

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.

korelstar avatar Sep 04 '22 05:09 korelstar

It can be used by any client, but first we will implement it on Android/iOS.

tobiasKaminsky avatar Sep 05 '22 07:09 tobiasKaminsky

Bug: iconURL is empty @icewind1991

tobiasKaminsky avatar Sep 07 '22 08:09 tobiasKaminsky

Bug: notes icon url on widgets-items endpoint is empty

tobiasKaminsky avatar Sep 07 '22 08:09 tobiasKaminsky

@tobiasKaminsky I rebased and pushed a commit to fix the icon bugs. Mind to give this another test run?

juliusknorr avatar Jan 03 '23 16:01 juliusknorr

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.

image

tobiasKaminsky avatar Jan 04 '23 10:01 tobiasKaminsky

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

juliusknorr avatar Jan 05 '23 15:01 juliusknorr