feat(ui): add skeleton loaders and category tabs

Add Skeleton component for improved loading states in ItemsList
Extract Tabs component and support recipe category filtering
This commit is contained in:
2026-04-30 14:09:11 +08:00
parent b39e37ca28
commit ba5aae7136
7 changed files with 278 additions and 25 deletions

View File

@@ -248,7 +248,7 @@ app.delete('/api/items/:id', async (request, reply) => {
return deleted ? reply.code(204).send() : reply.code(404).send({ message: 'Not found' });
});
app.get('/api/recipes', async () => listRecipes());
app.get('/api/recipes', async (request) => listRecipes(request.query as Record<string, string | string[] | undefined>));
app.get('/api/recipes/:id', async (request, reply) => {
const { id } = request.params as { id: string };