Skip to content

Modernize create community form with card-based layout and visual elements#5

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/update-create-community-form
Draft

Modernize create community form with card-based layout and visual elements#5
Copilot wants to merge 4 commits intomainfrom
copilot/update-create-community-form

Conversation

Copy link
Contributor

Copilot AI commented Nov 5, 2025

The create community form had a basic, plain appearance that didn't match the visual quality of other forms in the application.

Changes

UI Structure

  • Reorganized into card-based sections: "Basic Information" and "Branding & Links"
  • Added visual icons to headers and labels (Sparkles, Users, FileText, Image, Globe)
  • Added centered page header with icon and subtitle

Form Improvements

  • Changed description from Input to Textarea for multi-line content
  • Added placeholder text and helper text for all fields
  • Enhanced submit button with larger size and proper loading state (Loader2 vs Sparkles)

Layout

  • Removed duplicate heading from route component
  • Applied consistent spacing and shadows using shadcn/ui Card components

Screenshots

Empty state:
Create Community Form

Filled state:
Form with Data

Form now matches the design patterns established in /events/submit.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.deno.land
    • Triggering command: node /home/REDACTED/work/confhub/confhub/node_modules/.bin/../vite/bin/vite.js dev (dns block)
  • netlifind.netlify.app
    • Triggering command: node /home/REDACTED/work/confhub/confhub/node_modules/.bin/../vite/bin/vite.js dev (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

The create community form looks kinda boring, make it more interesting

Created from VS Code via the GitHub Pull Request extension.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@netlify
Copy link

netlify bot commented Nov 5, 2025

Deploy Preview for confhub ready!

Name Link
🔨 Latest commit f5e5011
🔍 Latest deploy log https://app.netlify.com/projects/confhub/deploys/690b91ce3e73c20007521717
😎 Deploy Preview https://deploy-preview-5--confhub.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI and others added 3 commits November 5, 2025 18:00
Co-authored-by: Balastrong <7253929+Balastrong@users.noreply.github.com>
Co-authored-by: Balastrong <7253929+Balastrong@users.noreply.github.com>
Co-authored-by: Balastrong <7253929+Balastrong@users.noreply.github.com>
Copilot AI changed the title [WIP] Update create community form for improved aesthetics Modernize create community form with card-based layout and visual elements Nov 5, 2025
Copilot AI requested a review from Balastrong November 5, 2025 18:07
@Balastrong Balastrong requested a review from Copilot November 8, 2025 15:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the Create Community form with a modern, polished UI design. The changes transform a simple form into a visually appealing, card-based layout with icons, better spacing, and helpful descriptions.

Key changes:

  • Replaced basic form layout with a card-based design featuring icons and visual hierarchy
  • Moved the page heading from the route component into the form component itself
  • Enhanced form fields with placeholder text, help text, and iconography

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/routes/communities/create.tsx Removed heading and layout classes, delegating presentation to the form component
src/components/community/create-community-form.tsx Complete UI redesign with card-based layout, icons, enhanced spacing, and descriptive help text

Comment on lines +89 to +90
/>
<p className="text-xs text-muted-foreground">
Copy link

Copilot AI Nov 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The help text for the description field should be associated with the textarea using aria-describedby for screen reader accessibility. Add an id to this paragraph (e.g., 'description-help') and reference it with aria-describedby='description-help' on the Textarea component at line 84.

Suggested change
/>
<p className="text-xs text-muted-foreground">
aria-describedby="description-help"
/>
<p id="description-help" className="text-xs text-muted-foreground">

Copilot uses AI. Check for mistakes.
Comment on lines +116 to +117
/>
<p className="text-xs text-muted-foreground">
Copy link

Copilot AI Nov 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The help text for the logoUrl field should be associated with the input using aria-describedby for screen reader accessibility. Add an id to this paragraph (e.g., 'logoUrl-help') and reference it with aria-describedby='logoUrl-help' on the Input component at line 110.

Suggested change
/>
<p className="text-xs text-muted-foreground">
aria-describedby="logoUrl-help"
/>
<p id="logoUrl-help" className="text-xs text-muted-foreground">

Copilot uses AI. Check for mistakes.
Comment on lines +133 to +134
/>
<p className="text-xs text-muted-foreground">
Copy link

Copilot AI Nov 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The help text for the homeUrl field should be associated with the input using aria-describedby for screen reader accessibility. Add an id to this paragraph (e.g., 'homeUrl-help') and reference it with aria-describedby='homeUrl-help' on the Input component at line 127.

Suggested change
/>
<p className="text-xs text-muted-foreground">
aria-describedby="homeUrl-help"
/>
<p id="homeUrl-help" className="text-xs text-muted-foreground">

Copilot uses AI. Check for mistakes.
<Card className="shadow-lg">
<CardHeader>
<CardTitle className="flex items-center gap-2">
<Image className="h-5 w-5" />
Copy link

Copilot AI Nov 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The Image icon from lucide-react is used for both the card title (line 100) and the Logo URL label (line 107). Consider using a different icon for one of these contexts to improve visual distinction. For example, use 'Palette' or 'Paintbrush' for the card title to represent branding more broadly.

Copilot uses AI. Check for mistakes.
{createCommunityMutation.isPending ? (
<>
<Sparkles className="mr-2 h-4 w-4 animate-spin" />
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants