diff --git a/src/components/AppDialog.tsx b/src/components/AppDialog.tsx index a77c58b0..7da9efc6 100644 --- a/src/components/AppDialog.tsx +++ b/src/components/AppDialog.tsx @@ -422,31 +422,21 @@ export function AppDialog({ projectId, open, onOpenChange }: AppDialogProps) { {/* Name & Description */}
Required
- )} -Required
- )} @@ -610,6 +597,26 @@ export function AppDialog({ projectId, open, onOpenChange }: AppDialogProps) { + {/* Validation summary */} + {submitted && (() => { + const missing = [ + !formData.banner && 'banner', + !formData.picture && 'icon', + !formData.name.trim() && 'name', + !formData.about.trim() && 'description', + !formData.website.trim() && 'website', + ].filter(Boolean) as string[]; + if (!missing.length) return null; + const list = missing.length === 1 + ? missing[0] + : missing.slice(0, -1).join(', ') + ' and ' + missing[missing.length - 1]; + return ( ++ Please add a {list} before publishing. +
+ ); + })()} + {/* Save Button */}