Skip to content

feat: analyze and integrate 41 category items with premium descriptio… - #1

Open
ankeet15 wants to merge 4 commits into
mainfrom
Overall-features
Open

feat: analyze and integrate 41 category items with premium descriptio…#1
ankeet15 wants to merge 4 commits into
mainfrom
Overall-features

Conversation

@ankeet15

Copy link
Copy Markdown
Owner

…ns, update currency to Rs (Rupees) and push to remote

…ns, update currency to Rs (Rupees) and push to remote
Copilot AI review requested due to automatic review settings May 26, 2026 14:20

Copilot AI 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.

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 thread src/store/cartStore.ts
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 thread src/lib/mockData.ts
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 thread src/lib/mockData.ts
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 thread src/app/admin/page.tsx
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>
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