feat: polish release v2 experience (#6800)
This commit is contained in:
1 parent
925b0fb801
commit
a4a903d7c3
295 files changed
+10627
-7115
No files matched your search
@@ -35,7 +35,7 @@ export const checkCertificateFile: z.core.CheckFn<File> = (context) => {
|
||||
code: "custom",
|
||||
params: createCustomErrorParams({
|
||||
key: "fileTooLarge",
|
||||
params: { maxSize: "1 MB" },
|
||||
params: { maxSize: "1 MiB" },
|
||||
}),
|
||||
input: context.value.size,
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ import { z } from "zod/v4";
|
||||
|
||||
export const paginatedSchema = z.object({
|
||||
search: z.string().optional(),
|
||||
pageSize: z.number().int().positive().default(10),
|
||||
pageSize: z.number().int().positive().max(100).default(10),
|
||||
page: z.number().int().positive().default(1),
|
||||
});
|
||||
|
||||
@@ -12,5 +12,5 @@ export const byIdSchema = z.object({
|
||||
|
||||
export const searchSchema = z.object({
|
||||
query: z.string(),
|
||||
limit: z.number().int().positive().default(10),
|
||||
limit: z.number().int().positive().max(100).default(10),
|
||||
});
|
||||
@@ -27,7 +27,7 @@ export const mediaUploadSchema = zfd.formData({
|
||||
code: "custom",
|
||||
params: createCustomErrorParams({
|
||||
key: "fileTooLarge",
|
||||
params: { maxSize: "32 MB" },
|
||||
params: { maxSize: "32 MiB" },
|
||||
}),
|
||||
input: context.value.size,
|
||||
});
|
||||
|
||||
@@ -154,6 +154,10 @@ export const userChangeColorSchemeSchema = z.object({
|
||||
colorScheme: zodEnumFromArray(colorSchemes),
|
||||
});
|
||||
|
||||
export const userByteUnitSystemSchema = z.object({
|
||||
byteUnitSystem: z.enum(["binary", "decimal"]),
|
||||
});
|
||||
|
||||
export const userFirstDayOfWeekSchema = z.object({
|
||||
firstDayOfWeek: z
|
||||
.number()
|
||||
|
||||
Reference in new issue
Block a user