swarooppatilx / scruter

Scruter is a local classifieds and community site designed to bring people together for buying, selling, and exchanging goods and services.
https://scruter.vercel.app
GNU General Public License v3.0
28 stars 135 forks source link

Create listing page #468

Closed ShivanshPlays closed 2 weeks ago

ShivanshPlays commented 2 weeks ago

Description

Issue: Implement Create Listing Form Page on Seller Dashboard

Description

We need a dedicated form page in the seller dashboard that allows sellers to create a new listing. This page should be user-friendly, visually aligned with the current dashboard styling, and capable of handling all necessary inputs to submit a new listing.

Requirements

  1. Form Fields:

    • Title: Text input for the listing title.
    • Description: Textarea for detailed information about the listing.
    • Price: Numeric input for setting the listing price.
    • Category: Dropdown menu with options (e.g., "Housing," "Fooding," "For Sale").
    • Images: File upload for adding images to the listing, supporting multiple images.
  2. Validation:

    • Client-side validation for required fields.
    • Clear error messages for incomplete or incorrect entries.
  3. Submit Button:

    • A "Create Listing" button that initiates form submission and sends data to the backend.
  4. Response Handling:

    • Display success notification on successful listing creation.
    • Show error notifications for backend errors or incomplete submissions.
  5. Styling:

    • Use the existing dashboard styling (e.g., Tailwind CSS) for consistency.

Additional Notes

Acceptance Criteria

Screenshots

https://github.com/user-attachments/assets/e6b1f467-0787-47c0-9149-97e74e224a20

closes #455

vercel[bot] commented 2 weeks ago

@ShivanshPlays is attempting to deploy a commit to the Piyush's projects Team on Vercel.

A member of the Team first needs to authorize it.