From c3f1cbc50af8d48b2e9cba0c93301cf55d10d0eb Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 3 Apr 2026 13:35:10 -0500 Subject: [PATCH] Remove website divider and require name, description, website, icon, and banner before saving --- src/components/AppDialog.tsx | 40 ++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/src/components/AppDialog.tsx b/src/components/AppDialog.tsx index 6489cbf1..062951f8 100644 --- a/src/components/AppDialog.tsx +++ b/src/components/AppDialog.tsx @@ -253,6 +253,42 @@ export function AppDialog({ projectId, open, onOpenChange }: AppDialogProps) { return; } + if (!formData.about.trim()) { + toast({ + title: 'Description required', + description: 'Please enter a description for your app.', + variant: 'destructive', + }); + return; + } + + if (!formData.website.trim()) { + toast({ + title: 'Website required', + description: 'Please enter a website URL for your app.', + variant: 'destructive', + }); + return; + } + + if (!formData.picture.trim()) { + toast({ + title: 'Icon required', + description: 'Please upload an icon for your app.', + variant: 'destructive', + }); + return; + } + + if (!formData.banner.trim()) { + toast({ + title: 'Banner required', + description: 'Please upload a banner image for your app.', + variant: 'destructive', + }); + return; + } + if (!formData.dTag.trim()) { toast({ title: 'Identifier required', @@ -439,7 +475,7 @@ export function AppDialog({ projectId, open, onOpenChange }: AppDialogProps) { {/* Website */} -
+
{isSaving ? (