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

Add "create listings" for the admin page #9

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

jolynleow2301
Copy link
Collaborator

No description provided.

@jolynleow2301 jolynleow2301 self-assigned this Dec 14, 2024
Copy link
Contributor

@damiancxliew damiancxliew left a comment

Choose a reason for hiding this comment

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

Thanks for the updates Jolyn. Can I ask for your help to fetch new changes and make changes to the following?

  1. For your apiRequest in "CreateListing.tsx", please change from "apiRequest("listings", "POST", "register",...)" to "apiRequest("product", "POST", "create", ....)".

  2. From the data you submit to the apiRequest, I see that you are submitting these data
    "title,
    description,
    images,
    sizingChart,
    specifications,
    deliveryMethods,
    collectionInfo,"
    to the database, thus please help to ensure you make amendments to the validation schema in "products.js" file under "server/src/models/products.js" to ensure there is no error when writing the data to the database.

Thank you!

…merce_Website_2025 into branch-Create-Listings

* 'main' of https://github.com/NUS-Fintech-Society/SD_ECommerce_Website_2025: (26 commits)
  Implemented upload image, navigate image, post drafts
  Implemented upload image, navigate image, post drafts
  Edited container css and added back button
  Fixed Edit listing feature and backend data storage
  Create Request for Admin Role Function
  Updated build command
  Changed server's npm run build command
  edit and create listings
  edit and create listings
  Add comments for clarity
  Add profile picture feature
  Add address to schema and provider
  Replaced Alert with Modal component
  update api endpoint and use alert dialogs for success and error
  Add delete account functionality
  set up chakra ui
  WIP: Save changes for create-and-edit-listings feature
  Add comments for clarity
  Add loading state to confirm update button
  Connect User Update APIs to frontend
  ...

# Conflicts:
#	client/src/components/Admin.tsx
#	client/src/index.tsx
Copy link

vercel bot commented Feb 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sd-e-commerce-website-2025-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2025 2:42pm

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