Skip to content

Dashboard API - #21346

Merged
rullzer merged 17 commits into
masterfrom
enh/20930/dashboard
Jul 15, 2020
Merged

Dashboard API#21346
rullzer merged 17 commits into
masterfrom
enh/20930/dashboard

Conversation

@juliusknorr

@juliusknorrjuliusknorr commented Jun 9, 2020

Copy link
Copy Markdown
Member

This PR is the first part of the planned dashboard work. For now it contains the following parts:

  • Deprecating the old dashboard API
  • Add a simplified new API as proposed in Dashboard overview #20930
  • Add a new dashboard app that mainly takes care of providing dom elements so that apps can render their own views into it.

A reference panel implementation can be found in nextcloud/recommendations#229

Required steps for implementing a panel as an app developer: 📖 nextcloud/documentation#2168

ToDo

Follow-up

  • Implement dynamic sorting and adding/removing panels (follow up PR)
  • App store category for apps supporting dashboard (follow up PR)
  • Check if we can make the default app dynamic depending on a user setting (follow up PR)
  • Decide if this should be the default app and how the order of apps should be in the app menu (follow up PR)
  • Updating Nextcloud with the new Dashboard app and the old one installed will need Use shipped.json file from new release updater#255 to make sure the app is properly replaced
    • With a spearate app directory, using the same app id as the current dashboard app should not be an issue if we have a higher app version available

Comment threadapps/dashboard/lib/Controller/DashboardController.php Outdated
@rullzerrullzer added the 2. developing Work in progress label Jun 10, 2020
@jancborchardt

Copy link
Copy Markdown
Member

Great work, added some design & layout fixes. Now just needs the panels (or mocks) for Calendar, Mail and Talk. :)

Comment threadapps/dashboard/src/App.vue Outdated
@juliusknorr
juliusknorrforce-pushed the enh/20930/dashboard branch 2 times, most recently from 30a3f3a to 4ab2dc5CompareJune 23, 2020 15:05
@juliusknorrjuliusknorr added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 23, 2020
@juliusknorr
juliusknorr marked this pull request as ready for review June 23, 2020 15:28
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

Acceptance tests would still need some more work due to the new default app, but this should be good for a first review round until those are figured out. 😉

Comment threadapps/dashboard/appinfo/info.xml
Comment threadapps/dashboard/lib/Controller/DashboardController.php Outdated
Comment threadapps/dashboard/lib/Controller/DashboardController.php
Comment threadapps/dashboard/src/App.vue Outdated
Comment threadlib/public/Dashboard/IManager.php Outdated
Comment threadlib/public/Dashboard/IPanel.php
Comment threadlib/public/Dashboard/IRegisterPanelEvent.php Outdated
@rullzer

Copy link
Copy Markdown
Member

Acceptance tests would still need some more work due to the new default app, but this should be good for a first review round until those are figured out. wink

Maybe as discussed we don't add it as default just yet. only when we think it is ready?

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

Maybe as discussed we don't add it as default just yet. only when we think it is ready?

Yes, I've dropped that for now and added it to the todo list for the next steps.

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

/compile amend /

Comment threadlib/private/Dashboard/Manager.php
Comment threadlib/private/Dashboard/Manager.php
Comment threadlib/public/Dashboard/IPanel.php
juliusknorrand others added 16 commits July 15, 2020 09:24
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
…g backward compatible apps
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
juliusknorrforce-pushed the enh/20930/dashboard branch 2 times, most recently from 053f7cf to 1026be8CompareJuly 15, 2020 07:33
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

/compile amend /

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

Ah it was the missing map file.

@rullzer
rullzer merged commit f04f932 into masterJul 15, 2020
@rullzer
rullzer deleted the enh/20930/dashboard branch July 15, 2020 09:10
@MorrisJobke

Copy link
Copy Markdown
Member

Breaks master tests - let me fix them.

MorrisJobke added a commit that referenced this pull request Jul 15, 2020
See #21346
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke

Copy link
Copy Markdown
Member

Breaks master tests - let me fix them.

#21849

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@juliusknorr@jancborchardt@rullzer@MorrisJobke@nickvergessen@ChristophWurst@skjnldsv@MarkPartlett