Skip to content

Mahitha - Add suppliers and orders page - #5443

Open
Mahitha-pasupuleti wants to merge 6 commits into
developmentfrom
mahitha-suppliers-orders-page-new
Open

Mahitha - Add suppliers and orders page#5443
Mahitha-pasupuleti wants to merge 6 commits into
developmentfrom
mahitha-suppliers-orders-page-new

Conversation

@Mahitha-pasupuleti

@Mahitha-pasupuleti Mahitha-pasupuleti commented Aug 13, 2026

Copy link
Copy Markdown

Description

Screenshot 2026-07-25 at 10 16 02 AM

Related PR

Main changes explained:

  • Created Orders.js, Suppliers.js as data models
  • Created OrdersController.js and SupplierController.jsas controllers
  • Supplier profile cards display name, contact, email, phone, avg delivery days, total orders, reliability %, and specialty tags
  • Three action buttons per supplier: View Pricing History, Edit Supplier Info, New Order
  • New Order button anchors to the external supplier website URL stored in the database
  • Purchase Orders tab with order cards showing status , items, and totals
  • Stat cards: Pending Orders, Awaiting Stock, Monthly Spend, Surplus Savings
  • Responsive design for laptop and tablet
  • CSS modules for scoped styling

How to test:

  1. Check into current branch
  2. Do npm install and npm start to run this PR locally
  3. Clear site data/cache
  4. Log as admin user
  5. Navigate to /kitchenandinventory/orders
  6. Verify Suppliers tab — all 4 supplier cards render with details
  7. Click New Order — verify it opens external website
  8. Check Purchase Orders tab — verify order cards and status
  9. Toggle dark mode — verify all elements are readable
  10. Resize browser to tablet width — verify responsive layout

Result:

Light Mode Video Demo

https://youtu.be/7G38mvRYQhA

DarkModeResult.mov

@netlify

netlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 7100fbe
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6a7f512b92046d0008f7604d
😎 Deploy Preview https://deploy-preview-5443--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@sonarqubecloud

Copy link
Copy Markdown

@Mahitha-pasupuleti
Mahitha-pasupuleti requested review from AdiDubbs and Jaden300 and removed request for Jaden300 August 17, 2026 16:58

@Adit0717 Adit0717 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested this PR locally on the mentioned backend and frontend branches.

In the "New Purchase Order" form, the price field (last input on the item row) has no validation. I was able to type "--1" into it and hit Enter - the form accepted it, the order was created successfully, and the resulting Unit Price shows as $0.00 in Order Details

quantity 1312312312312, price --1 → Unit Price / Total both render as $0.00).

Image Image

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

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants