mirror of
https://github.com/grafana/grafana.git
synced 2025-09-12 17:42:49 +08:00

* feat: add `placement` to dashboard links (v1) * feat: add `placement` property for dashboard links (v2) * refactor: rename the `DropdownVariableControls` to `DashboardControlsMenu` * feat: make it possible to render links under the dashboard controls dropdown * fix: update the v2beta1 (and remove changes from v2alpha1) * fix: linting errors * chore: update codegen * fix: frontend unit tests * tests(DashboardLinkRenderer): add tests * fix: hide divider if not necessary * Update apps/dashboard/pkg/apis/dashboard/v1beta1/dashboard_kind.cue Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com> * Update packages/grafana-schema/src/raw/dashboard/x/dashboard_types.gen.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update kinds/dashboard/dashboard_kind.cue Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update pkg/kinds/dashboard/dashboard_spec_gen.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update apps/dashboard/pkg/apis/dashboard/v2beta1/zz_generated.openapi.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update apps/dashboard/pkg/apis/dashboard/v2beta1/dashboard_spec_gen.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update apps/dashboard/pkg/apis/dashboard/v2beta1/dashboard_spec.cue Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/grafana-schema/src/schema/dashboard/v2beta1/types.spec.gen.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update apps/dashboard/kinds/v2beta1/dashboard_spec.cue Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * feat: remove "default" placement option for links (review note) * feat: hide the <Stack> wrapper if there are no links or variables --------- Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Grafana Schema Library
@grafana/schema is currently in ALPHA.
This package holds the definitions for objects that should be stored in JSON configuration files
Installation
yarn add @grafana/schema
npm install @grafana/schema