Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Image Upload Functionality for Vendors #241

Closed
ShivanshPlays opened this issue Nov 6, 2024 · 1 comment · Fixed by #243
Closed

Feature Request: Image Upload Functionality for Vendors #241

ShivanshPlays opened this issue Nov 6, 2024 · 1 comment · Fixed by #243

Comments

@ShivanshPlays
Copy link
Contributor

Description

🚀 Feature Request: Image Upload Functionality for Vendors

Overview

This issue proposes the implementation of an image upload feature for Vendors, allowing them to add multiple images to each dish on our platform. This feature will enhance the visual appeal of Dishes and improve user experience by providing a more detailed view of the items available.

Requirements

  1. Backend Implementation:

    • Schema Update: Add an Image model in the database schema with a relation to the existing dish model, supporting multiple images per dish.
    • Database Relations: Establish a one-to-many relationship between dish and Image tables, where each image is associated with a specific dish.
    • Cloudinary Integration: Set up Cloudinary for efficient and secure image storage and retrieval.
    • Image Management: Add server actions to handle uploading, updating, and deleting images associated with a dish.
  2. Frontend Implementation:

    • Seller Dashboard Interface: Add an image upload UI on the seller dashboard, allowing Vendors to upload images when creating or updating a dish.
    • Preview and Edit Options: Include options for image preview, reordering, and deletion before finalizing uploads.
    • Cloudinary API Integration: Use the Cloudinary API on the frontend for seamless image uploading and fetching.

Purpose

This feature aims to:

  • Enhance User Experience: Provide users with a richer visual experience by allowing multiple images per dish, making it easier to view and assess items before purchase.
  • Support for High-Quality Media: Cloudinary integration ensures fast, optimized image delivery, supporting high-quality media uploads without impacting site performance.
  • Scalability: A structured approach to image handling will facilitate future extensions, such as adding videos or interactive media.

Acceptance Criteria

  • Backend schema updated with a one-to-many relationship between dish and Image.
  • Images successfully uploaded to Cloudinary and associated with Dishes.
  • Frontend UI for image uploading implemented, with preview and management options.
  • Comprehensive testing to verify functionality and handle edge cases, such as large file uploads or network issues.

Additional Context

This enhancement will position our platform to better compete with visually-rich e-commerce sites and improve engagement. Please refer to the Cloudinary documentation for best practices and integration details.

Looking forward to feedback and additional suggestions before beginning implementation.

Copy link

github-actions bot commented Nov 6, 2024

🎉 Thank you for your interest in contributing to this repository! Please wait while we review and assign this issue to you. In the meantime, feel free to ⭐ the repo to stay updated on future developments.

Stay awesome! 😎

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

Successfully merging a pull request may close this issue.

2 participants