diff --git a/backend/panels.go b/backend/panels.go index 81d2058..fb8aa2d 100644 --- a/backend/panels.go +++ b/backend/panels.go @@ -294,10 +294,10 @@ func (p *dashboardPlugin) updatePanelLayoutForView(req *plugin.Request, res *plu return } - type body struct { + type updatePanelLayoutBody struct { Panels []panelLayoutEntry `json:"panels"` } - b, err := plugin.JSONBody[body](req) + b, err := plugin.JSONBody[updatePanelLayoutBody](req) if err != nil { res.Error(400, "invalid request body") return @@ -390,10 +390,10 @@ func (p *dashboardPlugin) runPanelQueryForView(req *plugin.Request, res *plugin. // equivalent) — validates and runs a not-yet-saved query so the panel // editor can show a live preview before the user hits Save. func (p *dashboardPlugin) previewQuery(req *plugin.Request, res *plugin.Response, requireProjectScope bool) { - type body struct { + type previewQueryBody struct { Query string `json:"query"` } - b, err := plugin.JSONBody[body](req) + b, err := plugin.JSONBody[previewQueryBody](req) if err != nil { res.Error(400, "invalid request body") return diff --git a/plugin.json b/plugin.json index 8aefb88..9dc6927 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "id": "com.paca.dashboard", "displayName": "Dashboard", "description": "Customizable panel-based dashboard builder (charts, tables, text) across the project dashboard page, the admin dashboard page, and a single dashboard per Integration-page view (backlog/sprint/timeline).", - "version": "0.3.2", + "version": "0.3.3", "minCoreVersion": "v0.13.3", "permissions": ["db.read", "db.write", "events.subscribe", "cache"], "backend": {