Notification updates

This commit is contained in:
Eric Gullickson
2025-12-21 19:56:52 -06:00
parent 144f1d5bb0
commit 719c80ecd8
80 changed files with 7552 additions and 678 deletions

View File

@@ -21,7 +21,7 @@ export type CatalogFormValues = {
trimId?: string;
displacement?: string;
cylinders?: number;
fuel_type?: string;
fuelType?: string;
};
export const makeSchema = z.object({
@@ -63,7 +63,7 @@ export const engineSchema = z.object({
.positive('Cylinders must be positive')
.optional()
),
fuel_type: z.string().optional(),
fuelType: z.string().optional(),
});
export const getSchemaForLevel = (level: CatalogLevel) => {
@@ -114,7 +114,7 @@ export const buildDefaultValues = (
trimId: String((entity as CatalogEngine).trimId),
displacement: (entity as CatalogEngine).displacement ?? undefined,
cylinders: (entity as CatalogEngine).cylinders ?? undefined,
fuel_type: (entity as CatalogEngine).fuel_type ?? undefined,
fuelType: (entity as CatalogEngine).fuelType ?? undefined,
};
default:
return {};
@@ -142,7 +142,7 @@ export const buildDefaultValues = (
name: '',
trimId: context.trim?.id ? String(context.trim.id) : '',
displacement: '',
fuel_type: '',
fuelType: '',
};
case 'makes':
default: