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

Dashboard API #21346

Merged
merged 17 commits into from
Jul 15, 2020
Merged

Dashboard API #21346

merged 17 commits into from
Jul 15, 2020

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Jun 9, 2020

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

@rullzer rullzer added the 2. developing Work in progress label Jun 10, 2020
@jancborchardt
Copy link
Member

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

@juliushaertl juliushaertl force-pushed the enh/20930/dashboard branch 2 times, most recently from 30a3f3a to 4ab2dc5 Compare June 23, 2020 15:05
@juliushaertl juliushaertl added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 23, 2020
@juliushaertl juliushaertl marked this pull request as ready for review June 23, 2020 15:28
@juliushaertl
Copy link
Member Author

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. 😉

apps/dashboard/appinfo/info.xml Show resolved Hide resolved
apps/dashboard/lib/Controller/DashboardController.php Outdated Show resolved Hide resolved
apps/dashboard/src/App.vue Outdated Show resolved Hide resolved
lib/public/Dashboard/IManager.php Outdated Show resolved Hide resolved
lib/public/Dashboard/IPanel.php Show resolved Hide resolved
lib/public/Dashboard/IRegisterPanelEvent.php Outdated Show resolved Hide resolved
@rullzer
Copy link
Member

rullzer commented Jun 24, 2020

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?

@juliushaertl
Copy link
Member Author

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.

@juliushaertl
Copy link
Member Author

/compile amend /

juliushaertl and 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>
@juliushaertl juliushaertl force-pushed the enh/20930/dashboard branch 2 times, most recently from 053f7cf to 1026be8 Compare July 15, 2020 07:33
@juliushaertl
Copy link
Member Author

/compile amend /

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl
Copy link
Member Author

Ah it was the missing map file.

@rullzer rullzer merged commit f04f932 into master Jul 15, 2020
@rullzer rullzer deleted the enh/20930/dashboard branch July 15, 2020 09:10
@MorrisJobke
Copy link
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
Member

Breaks master tests - let me fix them.

#21849

Sign up for free to 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