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:
Yaowei ZhengandClaude Opus 5 authored and GitHub committed 2026-07-30 17:25:50 +08:00
1 parent 97852f43b8
commit 385d506e77
32 files changed
+1135 -557

No files matched your search

+9
View File
@@ -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" });