Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

address CR feedback

Steven Teycc46986a9cb6
diff --git a/apps/web/lib/zod/schemas/integration.ts b/apps/web/lib/zod/schemas/integration.ts
index 1873aac1ba..954296e184 100644
--- a/apps/web/lib/zod/schemas/integration.ts
+++ b/apps/web/lib/zod/schemas/integration.ts
@@ -52,13 +52,13 @@ export const createIntegrationSchema = z.object({
description: z
.string()
.max(120, {
- message: "must be less than 120 characters",
+ message: "must be 120 characters or fewer",
})
.nullish(),
readme: z
.string()
.max(5000, {
- message: "must be less than 5000 characters",
+ message: "must be 5000 characters or fewer",
})
.nullish(),
screenshots: z
diff --git a/packages/ui/src/file-upload.tsx b/packages/ui/src/file-upload.tsx
index cc8b07987e..0497fe7b7d 100644
--- a/packages/ui/src/file-upload.tsx
+++ b/packages/ui/src/file-upload.tsx
@@ -49,8 +49,15 @@ const acceptFileTypes: Record<
},
// TODO: allow custom `accept` prop so we don't need specific options here
programResourceImages: {
- types: ["image/svg+xml", "image/png", "image/jpeg", "image/webp"],
- errorMessage: "File type not supported (.svg, .png, .jpg, or .webp only)",
+ types: [
+ "image/svg+xml",
+ "image/png",
+ "image/jpeg",
+ "image/webp",
+ "image/avif",
+ ],
+ errorMessage:
+ "File type not supported (.svg, .png, .jpg, .webp, or .avif only)",
},
programResourceFiles: {
types: [
@@ -58,11 +65,12 @@ const acceptFileTypes: Record<
"image/png",
"image/jpeg",
"image/webp",
+ "image/avif",
...documentTypes,
"application/zip",
],
errorMessage:
- "File type not supported (.svg, .png, .jpg, .webp, document, or zip files only)",
+ "File type not supported (.svg, .png, .jpg, .webp, .avif, document, or zip files only)",
},
};