diff --git a/src/lib/validators/user-preferences.ts b/src/lib/validators/user-preferences.ts index ddbcebcb..ed4c1dd9 100644 --- a/src/lib/validators/user-preferences.ts +++ b/src/lib/validators/user-preferences.ts @@ -21,6 +21,12 @@ export const updateUserPreferencesSchema = z.object({ * update. */ dashboardWidgets: z.record(z.string(), z.boolean()).optional(), + /** + * Rep-chosen dashboard widget order (drag-drop). Missing ids fall + * through to registry order so newly-added widgets always surface. + * Kept loose (array-of-string) for the same reason as above. + */ + dashboardWidgetOrder: z.array(z.string()).optional(), }); export type UpdateUserPreferencesInput = z.infer;