diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c0a185..3ac57cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to Epicure are documented here. This file is mirrored in-app at `/changelog` (and in the admin dashboard) via `apps/web/lib/changelog.ts` — update both together. +## 0.49.1 — 2026-07-18 13:10 + +### Added +- Support form now accepts attachments — screenshots or files (images, PDF, text, JSON, zip; up to 5 files, 10MB each). They're linked in the confirmation email's Gitea issue and shown as thumbnails on your ticket history and in the admin support view. + ## 0.49.0 — 2026-07-18 12:30 ### Added diff --git a/apps/web/app/(app)/support/page.tsx b/apps/web/app/(app)/support/page.tsx index bd767b2..1dff313 100644 --- a/apps/web/app/(app)/support/page.tsx +++ b/apps/web/app/(app)/support/page.tsx @@ -4,6 +4,7 @@ import { auth } from "@/lib/auth/server"; import { db, supportTickets, eq, desc } from "@epicure/db"; import { SupportManager } from "@/components/support/support-manager"; import { getMessages } from "@/lib/i18n/server"; +import { getPublicUrl } from "@/lib/storage"; export const metadata: Metadata = {}; @@ -12,11 +13,11 @@ export default async function SupportPage() { if (!session) return null; const m = getMessages((session.user as { locale?: string }).locale); - const rows = await db - .select() - .from(supportTickets) - .where(eq(supportTickets.userId, session.user.id)) - .orderBy(desc(supportTickets.createdAt)); + const rows = await db.query.supportTickets.findMany({ + where: eq(supportTickets.userId, session.user.id), + orderBy: desc(supportTickets.createdAt), + with: { attachments: true }, + }); return (
{ticket.description}
{t("attachmentsHint", { count: MAX_ATTACHMENTS })}