feat: analyze and integrate 41 category items with premium descriptio… - #1
Open
ankeet15 wants to merge 4 commits into
Open
feat: analyze and integrate 41 category items with premium descriptio…#1ankeet15 wants to merge 4 commits into
ankeet15 wants to merge 4 commits into
Conversation
…ns, update currency to Rs (Rupees) and push to remote
There was a problem hiding this comment.
Pull request overview
This PR updates the storefront’s mock catalog and pricing presentation to use INR (Rs) amounts, including revised delivery thresholds and coupon minimums, alongside a large expansion/replacement of mock product data across categories.
Changes:
- Updated delivery logic and free-delivery threshold to Rs-scale values.
- Replaced/expanded mock product catalog data (41 items) and updated mock reviews/coupons accordingly.
- Updated currency display across key UI surfaces (product cards, product pages, cart, checkout, dashboard, admin).
Reviewed changes
Copilot reviewed 9 out of 91 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/store/cartStore.ts | Updates free-delivery threshold and delivery fee for Rs pricing. |
| src/lib/mockData.ts | Replaces/expands mock products and aligns mock reviews/coupons to new product IDs and Rs-scale values. |
| src/components/ProductCard.tsx | Switches displayed currency from $ to Rs. |
| src/components/CartDrawer.tsx | Updates cart UI currency display and free-delivery threshold messaging to Rs. |
| src/app/products/page.tsx | Updates price filter slider bounds/labels and product price display to Rs. |
| src/app/products/[slug]/page.tsx | Updates product detail price display to Rs. |
| src/app/dashboard/page.tsx | Updates wallet amounts and UI currency strings to Rs. |
| src/app/checkout/page.tsx | Updates checkout summary currency strings to Rs. |
| src/app/admin/page.tsx | Updates admin dashboard currency display and coupon/product form labels to Rs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+36
to
37
| const freeDeliveryThreshold = 5000; | ||
| const progressPercent = Math.min((subtotal / freeDeliveryThreshold) * 100, 100); |
Comment on lines
120
to
+123
| getDeliveryCost: () => { | ||
| const subtotal = get().getSubtotal(); | ||
| if (subtotal === 0 || subtotal >= 100) return 0; // Free delivery above $100 | ||
| return 12.0; // Standard $12 delivery | ||
| if (subtotal === 0 || subtotal >= 5000) return 0; // Free delivery above Rs 5000 | ||
| return 150.0; // Standard Rs 150 delivery |
Comment on lines
+369
to
372
| min="100" | ||
| max="50000" | ||
| placeholder="e.g. 50" | ||
| value={addFundsAmount} |
Comment on lines
+326
to
+330
| title: "Vintage G40 Globe String Lights", | ||
| slug: "vintage-g40-globe-string-lights", | ||
| brand: "Aether Light", | ||
| description: "15-foot heavy-duty outdoor string lights with vintage G40 clear warm bulbs. Connectable design, weatherproof, and perfect for creating a cozy bistros atmosphere on your balcony, patio, or dining area.", | ||
| price: 1999.00, |
Comment on lines
+359
to
+362
| slug: "water-ripple-wave-cube-projector", | ||
| brand: "Aether Light", | ||
| description: "An acrylic cube projector lamp featuring a moving internal rotor that creates a beautiful water ripple wave effect. PROJECTS flowing blue or warm yellow lights on your ceiling for a calming ocean atmosphere.", | ||
| price: 1799.00, |
Comment on lines
561
to
568
| <select | ||
| value={newCoupon.type} | ||
| onChange={(e) => setNewCoupon({ ...newCoupon, type: e.target.value as any })} | ||
| className="w-full bg-stone-50 border border-petal-border rounded-input px-3 py-2.5 text-xs text-petal-text-primary focus:outline-none" | ||
| > | ||
| <option value="PERCENT">Percent (%)</option> | ||
| <option value="FIXED">Fixed ($)</option> | ||
| <option value="FIXED">Fixed (Rs)</option> | ||
| </select> |
added 3 commits
May 26, 2026 20:00
…ute guards, and real-time admin order notifications
…eckout, dashboard, and Admin portal using Zustand
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ns, update currency to Rs (Rupees) and push to remote