Some portal cleanup

This commit is contained in:
Dominic Ferrando
2026-07-17 10:15:03 -04:00
parent ed17f4baf8
commit 903a60fec5
2 changed files with 9 additions and 3 deletions
+4 -1
View File
@@ -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
@@ -17,6 +17,8 @@
fulfilled: "badge-success",
};
const groups = (await api.events.groups.get()).data ?? [];
let events = $state<EventRow[]>([]);
let loading = $state(true);
let loadError = $state<string | null>(null);
@@ -122,8 +124,9 @@
onchange={(e) => setGroup(e.currentTarget.value)}
>
<option value="">All groups</option>
<option value="apparel_sync">Sync</option>
<option value="apparel_order">Orders</option>
{#each groups as group}
<option value={group}>{formatLabel(group)}</option>
{/each}
</select>
<select