From 732220468f276ccb3fbd4465bcf3e19f1fb5a721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Sepi=C3=B3=C5=82?= Date: Wed, 22 Jul 2026 11:16:37 +0200 Subject: [PATCH] [BREAKINGCHANGE] remove unused PanelEditorValues interface and related schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrian Sepiół --- ts/src/dashboard/panel.ts | 10 ---------- ts/src/schema/panel.ts | 14 +------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/ts/src/dashboard/panel.ts b/ts/src/dashboard/panel.ts index 333229d..287d43d 100644 --- a/ts/src/dashboard/panel.ts +++ b/ts/src/dashboard/panel.ts @@ -37,13 +37,3 @@ export interface PanelSpec { export interface PanelRef { $ref: `#/spec/panels/${string}`; } - -export type PanelGroupId = number; - -/** - * Panel values that can be edited in the panel editor. - */ -export interface PanelEditorValues { - groupId: PanelGroupId; - panelDefinition: PanelDefinition; -} diff --git a/ts/src/schema/panel.ts b/ts/src/schema/panel.ts index c3cf327..94c8e92 100644 --- a/ts/src/schema/panel.ts +++ b/ts/src/schema/panel.ts @@ -12,7 +12,7 @@ // limitations under the License. import { z } from 'zod'; -import { Link, PanelDefinition, PanelDisplay, PanelEditorValues, PanelSpec, QueryDefinition } from '../dashboard'; +import { Link, PanelDefinition, PanelDisplay, PanelSpec, QueryDefinition } from '../dashboard'; import { PluginSchema, pluginSchema } from './plugin'; export const panelDisplaySpec: z.ZodSchema = z.object({ @@ -63,15 +63,3 @@ export function buildPanelDefinitionSchema(pluginSchema: PluginSchema): z.ZodSch spec: buildPanelSpecSchema(pluginSchema), }); } - -export const panelEditorSchema: z.ZodSchema = z.object({ - groupId: z.number(), - panelDefinition: panelDefinitionSchema, -}); - -export function buildPanelEditorSchema(pluginSchema: PluginSchema): z.ZodSchema { - return z.object({ - groupId: z.number(), - panelDefinition: buildPanelDefinitionSchema(pluginSchema), - }); -}