feat: add collaborative shopping lists with items and invitations
Some checks failed
CI / Verify (push) Has been cancelled

API: lists, items and invitations modules (list, create, get, update,
set-primary, items create/list, invitation create/accept/list-pending),
BetterAuth session helper, list membership, mailer and Prisma schema plus
migrations.

Web: lists overview, list detail (items) and list management (settings)
views, item and invitation forms/hooks, sign-up and invitation accept pages.

Shared: shopping list DTOs.

Tooling: ignore the generated TanStack Router cache (apps/web/.tanstack).
This commit is contained in:
Jose Selesan
2026-10-16 10:12:11 -03:00
parent 964a3c7217
commit 6aa86a3b68
81 changed files with 3476 additions and 269 deletions

View File

@@ -16,8 +16,8 @@ export const Route = createFileRoute('/_authenticated/settings')({
})
const profileSchema = z.object({
name: z.string().min(1, 'Name is required').max(80),
email: z.email('Enter a valid email address'),
name: z.string().min(1, 'El nombre es obligatorio').max(80),
email: z.email('Introduce un correo electrónico válido'),
})
type ProfileValues = z.infer<typeof profileSchema>
@@ -38,8 +38,8 @@ function SettingsPage() {
<div className="grid max-w-3xl gap-4 md:gap-6">
<Card>
<CardHeader>
<CardTitle>Profile</CardTitle>
<CardDescription>This is how other people will see you.</CardDescription>
<CardTitle>Perfil</CardTitle>
<CardDescription>Así es como te verán las demás personas.</CardDescription>
</CardHeader>
<CardContent>
<form
@@ -50,28 +50,30 @@ function SettingsPage() {
>
<FieldGroup>
<Field data-invalid={!!form.formState.errors.name}>
<FieldLabel htmlFor="name">Name</FieldLabel>
<FieldLabel htmlFor="name">Nombre</FieldLabel>
<Input id="name" placeholder="Ada Lovelace" {...form.register('name')} />
<FieldError errors={[form.formState.errors.name]} />
</Field>
<Field data-invalid={!!form.formState.errors.email}>
<FieldLabel htmlFor="email">Email</FieldLabel>
<FieldLabel htmlFor="email">Correo electrónico</FieldLabel>
<Input
id="email"
type="email"
placeholder="ada@example.com"
placeholder="ada@ejemplo.com"
{...form.register('email')}
/>
<FieldDescription>We only use it to sign you in.</FieldDescription>
<FieldDescription>Solo lo usamos para iniciar tu sesión.</FieldDescription>
<FieldError errors={[form.formState.errors.email]} />
</Field>
<div className="flex items-center gap-4">
<Button type="submit" disabled={form.formState.isSubmitting}>
Save changes
Guardar cambios
</Button>
{saved && <span className="text-muted-foreground text-sm">Saved locally.</span>}
{saved && (
<span className="text-muted-foreground text-sm">Guardado localmente.</span>
)}
</div>
</FieldGroup>
</form>
@@ -80,13 +82,21 @@ function SettingsPage() {
<Card>
<CardHeader>
<CardTitle>Appearance</CardTitle>
<CardDescription>Notifications and display preferences.</CardDescription>
<CardTitle>Apariencia</CardTitle>
<CardDescription>Notificaciones y preferencias de visualización.</CardDescription>
</CardHeader>
<CardContent className="flex flex-col gap-4">
{[
{ id: 'digest', label: 'Weekly digest', hint: 'A summary of your lists every Monday.' },
{ id: 'mentions', label: 'Mentions', hint: 'Ping me when someone mentions my name.' },
{
id: 'digest',
label: 'Resumen semanal',
hint: 'Un resumen de tus listas cada lunes.',
},
{
id: 'mentions',
label: 'Menciones',
hint: 'Avísame cuando alguien mencione mi nombre.',
},
].map((option) => (
<div key={option.id} className="flex items-center justify-between gap-4">
<div>