feat(cards): deck management UI + production auth portal wiring

Deck schema, API routes, and SvelteKit UI for creating and browsing decks
(DeckStack component, inline creation, floating nav). Production compose
updated with PUBLIC_AUTH_WEB_URL so cards-web redirects to auth.mana.how
for login/register instead of the raw API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-05-11 18:50:27 +02:00
parent 7116bd66b4
commit 5859e202c5
9 changed files with 271 additions and 28 deletions

View file

@ -52,6 +52,7 @@ export const DeckSchema = z
content_hash: z.string().optional().nullable(),
forked_from_marketplace_deck_id: z.string().optional().nullable(),
forked_from_marketplace_version_id: z.string().optional().nullable(),
archived_at: z.string().datetime().optional().nullable(),
created_at: z.string().datetime(),
updated_at: z.string().datetime(),
})
@ -73,5 +74,7 @@ export const DeckCreateSchema = z
.strict();
export type DeckCreate = z.infer<typeof DeckCreateSchema>;
export const DeckUpdateSchema = DeckCreateSchema.partial();
export const DeckUpdateSchema = DeckCreateSchema.partial().extend({
archived: z.boolean().optional(),
});
export type DeckUpdate = z.infer<typeof DeckUpdateSchema>;