diff --git a/httpd-client/lib/project.ts b/httpd-client/lib/project.ts index 9ce00f767..584d8b496 100644 --- a/httpd-client/lib/project.ts +++ b/httpd-client/lib/project.ts @@ -55,8 +55,9 @@ const projectSchema = object({ name: string(), description: string(), defaultBranch: string(), - delegates: array(string()), + delegates: array(object({ id: string(), alias: optional(string()) })), head: string(), + threshold: number(), visibility: union([ object({ type: literal("public") }), object({ type: literal("private"), allow: optional(array(string())) }), diff --git a/src/views/home/Index.svelte b/src/views/home/Index.svelte index 09159af98..2851007a0 100644 --- a/src/views/home/Index.svelte +++ b/src/views/home/Index.svelte @@ -91,7 +91,12 @@ localProjects instanceof Error || localProjects === undefined ? localProjects - : localProjects.filter(p => isDelegate(nodeId, p.project.delegates)); + : localProjects.filter(p => + isDelegate( + nodeId, + p.project.delegates.map(d => d.id), + ), + );