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

edit-dish feature #246

Merged
merged 1 commit into from
Nov 8, 2024
Merged

edit-dish feature #246

merged 1 commit into from
Nov 8, 2024

Conversation

ShivanshPlays
Copy link
Contributor

Overview

This PR introduces a dedicated page on the dashboard for vendors to modify their existing dish details. vendors can update various attributes of their dishes, including the name, price, description, category, and images. This page enhances the user experience by offering a straightforward interface for managing dishes.

Changes Made:

  1. User Interface:

    • Added a user-friendly form to the dashboard for modifying dish details.
    • Included fields for modifying name, price,tags, description, category, and images.
    • Implemented an image upload component allowing vendors to add or remove images.
  2. Functionality:

    • Fetches the current dish details from the database on page load.
    • Provides form validation to ensure all fields are filled before submission.
    • Displays success or error messages after submitting the form based on the operation result.
  3. Routing and Navigation:

    • Added routing for the new page accessible from the dashboard.
    • Added a button to navigate back to the dishes overview page after modifications.
  4. Backend Integration:

    • Updated the updatedish server actions to accomodate some necessary changes needed. Images were duplicating on updating.
    • Ensured that only authenticated vendors can modify their dishes.

Screenshots

Untitled.video.-.Made.with.Clipchamp.-.2024-11-08T145153.773.mp4

closes #239

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🚀 Thank you for contributing to this project, your support is much appreciated.

Stay awesome! 😎

@Vimall03 Vimall03 merged commit 30a93e3 into Vimall03:main Nov 8, 2024
1 check passed
@ShivanshPlays ShivanshPlays deleted the EDIT-DISH branch November 10, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a dedicated page on the dashboard for vendors to modify existing dish details
2 participants