From ef6cde64c897e2e2e24e524f1758d189af5a05a0 Mon Sep 17 00:00:00 2001 From: Alexandre Brandizzi Date: Thu, 24 Sep 2026 23:49:19 -0300 Subject: [PATCH] fix(vendor-portal): state the 10 MB PDF cap in the upload hint The vendor portal hint listed the photo and video limits but not the PDF one, so a vendor rejected for an 11 MB PDF saw a limit that was never stated. PDFs are the only accepted kind whose cap was missing from the copy; a test now pins the full hint. --- src/app/v/_components/vendor-portal-documents.tsx | 2 +- src/test/app/v/vendor-portal-documents.test.tsx | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/v/_components/vendor-portal-documents.tsx b/src/app/v/_components/vendor-portal-documents.tsx index 5ebc1538..d1881ba4 100644 --- a/src/app/v/_components/vendor-portal-documents.tsx +++ b/src/app/v/_components/vendor-portal-documents.tsx @@ -203,7 +203,7 @@ export function VendorPortalDocuments({ Accepted: PDF, JPG, PNG, HEIC, MP4, MOV · Photos up to 10 MB · Videos up to 100 MB and - 90 s + 90 s · PDFs up to 10 MB )} diff --git a/src/test/app/v/vendor-portal-documents.test.tsx b/src/test/app/v/vendor-portal-documents.test.tsx index 85d18ef8..a0085787 100644 --- a/src/test/app/v/vendor-portal-documents.test.tsx +++ b/src/test/app/v/vendor-portal-documents.test.tsx @@ -109,6 +109,16 @@ describe("VendorPortalDocuments", () => { target: { files: [file] }, }); + it("states the limit for every accepted kind, including PDFs", () => { + renderDocuments(); + + expect( + screen.getByText( + "Accepted: PDF, JPG, PNG, HEIC, MP4, MOV · Photos up to 10 MB · Videos up to 100 MB and 90 s · PDFs up to 10 MB", + ), + ).toBeInTheDocument(); + }); + it("uploads a ~60 MB phone MOV whose browser type is empty", async () => { vi.mocked(probeVideoDurationSeconds).mockResolvedValue(null); const upload = vi