From 48c9e13137d63f28d9963ed99c88903d43dc93f1 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Mon, 10 Dec 2018 19:26:37 -0800 Subject: [PATCH] feat(dashboard): expose provider links in sidebar This also moves the dashboard link definitions from the plugin schema to the environment status output, in order to accommodate dynamic links. --- garden-dashboard/public/index.html | 2 + garden-dashboard/src/api/types.ts | 2 +- garden-dashboard/src/app.tsx | 51 ++++++++++--------- garden-dashboard/src/components/sidebar.tsx | 34 ++++++++----- garden-dashboard/src/containers/overview.tsx | 16 ++---- garden-dashboard/src/containers/sidebar.tsx | 22 ++++---- garden-dashboard/src/context/config.tsx | 2 +- garden-dashboard/src/context/status.tsx | 32 ++++++++++++ garden-service/gulpfile.ts | 1 + garden-service/src/commands/get/get-status.ts | 8 ++- garden-service/src/config/project.ts | 3 -- garden-service/src/garden.ts | 1 - garden-service/src/plugin-context.ts | 2 - .../src/plugins/kubernetes/deployment.ts | 3 +- garden-service/src/plugins/kubernetes/helm.ts | 11 ++-- garden-service/src/plugins/kubernetes/init.ts | 38 ++++++++++++-- .../src/plugins/kubernetes/local.ts | 3 +- .../src/plugins/kubernetes/status.ts | 24 +++++++-- .../src/plugins/openfaas/openfaas.ts | 2 +- garden-service/src/types/plugin/outputs.ts | 3 ++ garden-service/src/types/plugin/plugin.ts | 5 -- .../system/kubernetes-dashboard/garden.yml | 5 +- garden-service/test/src/actions.ts | 12 ++--- garden-service/test/src/garden.ts | 14 ++--- .../test/src/plugins/kubernetes/ingress.ts | 3 -- 25 files changed, 196 insertions(+), 103 deletions(-) create mode 100644 garden-dashboard/src/context/status.tsx diff --git a/garden-dashboard/public/index.html b/garden-dashboard/public/index.html index 998c41904e..e0ced75f0b 100644 --- a/garden-dashboard/public/index.html +++ b/garden-dashboard/public/index.html @@ -11,6 +11,8 @@ --> + +