Skip to content

Commit 2c4da2f

Browse files
betegonclaude
andcommitted
fix(dashboard): remove unused updateDashboard export
updateDashboard has no callers in the core dashboard commands (list, view, create). It will be added back when widget commands are introduced. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ca41f05 commit 2c4da2f

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/lib/api-client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export {
2323
createDashboard,
2424
getDashboard,
2525
listDashboards,
26-
updateDashboard,
2726
} from "./api/dashboards.js";
2827
export {
2928
findEventAcrossOrgs,

src/lib/api/dashboards.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,26 +69,3 @@ export async function createDashboard(
6969
);
7070
return data;
7171
}
72-
73-
/**
74-
* Update a dashboard (full PUT — replaces all widgets).
75-
* Always GET first, modify, then PUT the full widget list.
76-
*
77-
* @param orgSlug - Organization slug
78-
* @param dashboardId - Dashboard ID
79-
* @param body - Dashboard update body (title, widgets)
80-
* @returns Updated dashboard detail
81-
*/
82-
export async function updateDashboard(
83-
orgSlug: string,
84-
dashboardId: string,
85-
body: { title: string; widgets: DashboardWidget[]; projects?: number[] }
86-
): Promise<DashboardDetail> {
87-
const regionUrl = await resolveOrgRegion(orgSlug);
88-
const { data } = await apiRequestToRegion<DashboardDetail>(
89-
regionUrl,
90-
`/organizations/${orgSlug}/dashboards/${dashboardId}/`,
91-
{ method: "PUT", body }
92-
);
93-
return data;
94-
}

0 commit comments

Comments
 (0)