diff --git a/apps/api/src/server.ts b/apps/api/src/server.ts index eb09c79..a72513e 100644 --- a/apps/api/src/server.ts +++ b/apps/api/src/server.ts @@ -263,7 +263,10 @@ export const app = new Elysia() .post("/:id/replay", async ({ params: { id } }) => { const replayed = await s.Events.replay(id); if (!replayed) throw new NotFoundError("Event not found or not in a failed state"); - }, { params: t.Object({ id: t.String() }) }) + }, { + params: t.Object({ id: t.String() }) + }) + .get("/groups", async ({ }) => queues.map((q) => q.group)) ) // WEBHOOKS diff --git a/apps/portal/src/routes/(app)/apparel/activity/+page.svelte b/apps/portal/src/routes/(app)/apparel/activity/+page.svelte index 490f538..aeada4a 100644 --- a/apps/portal/src/routes/(app)/apparel/activity/+page.svelte +++ b/apps/portal/src/routes/(app)/apparel/activity/+page.svelte @@ -17,6 +17,8 @@ fulfilled: "badge-success", }; + const groups = (await api.events.groups.get()).data ?? []; + let events = $state([]); let loading = $state(true); let loadError = $state(null); @@ -122,8 +124,9 @@ onchange={(e) => setGroup(e.currentTarget.value)} > - - + {#each groups as group} + + {/each}