Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions backend/panels.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading