feat(web,server): unify nav naming, panel width and the update entry (#130)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
97852f43b8
commit
385d506e77
32 files changed
+1135
-557
No files matched your search
@@ -40,6 +40,8 @@ import type {
|
||||
PrefsResponse,
|
||||
ProjectCreateRequest,
|
||||
ProjectCreateResponse,
|
||||
ProjectUpdateRequest,
|
||||
ProjectUpdateResponse,
|
||||
ProjectsResponse,
|
||||
ScheduleItem,
|
||||
SchedulesResponse,
|
||||
@@ -114,6 +116,13 @@ export const listProjects = () => apiFetch<ProjectsResponse>("/api/projects");
|
||||
export const createProject = (body: ProjectCreateRequest) =>
|
||||
apiFetch<ProjectCreateResponse>("/api/projects", { method: "POST", body });
|
||||
|
||||
/** Rename a Project's display name (owner); the id is immutable. */
|
||||
export const updateProject = (projectId: string, body: ProjectUpdateRequest) =>
|
||||
apiFetch<ProjectUpdateResponse>(`/api/projects/${encodeURIComponent(projectId)}`, {
|
||||
method: "PATCH",
|
||||
body,
|
||||
});
|
||||
|
||||
export const deleteProject = (projectId: string) =>
|
||||
apiFetch<void>(`/api/projects/${encodeURIComponent(projectId)}`, { method: "DELETE" });
|
||||
|
||||
|
||||
Reference in new issue
Block a user