Support #12209
openTry on feature enhancement , implement shipping analytics
Added by Ajit A 11 days ago. Updated 9 days ago.
Subtasks
Related issues
Updated by Ajit A 10 days ago
- Status changed from New to In Progress
- % Done changed from 0 to 60
- Estimated time changed from 8:00 h to 16:00 h
Feature: Multi-item AR Virtual Try-On for Jewelry Sets (Simultaneous Necklace & Earrings Tracking) Fix: Extended product schema and DTOs with arEarringImage. Built dual-model orchestration in Storefront (FaceLandmarker + PoseLandmarker) with composite caching for both neck contours and earlobes. Added 1-click Auto-Split cropping tool in Admin (0%–70% necklace, 58%–100% earrings) and interactive customer view switcher ([ Complete Set ], [ Necklace ], [ Earrings ]).
Bug: Form validation blocked products where Sale Price was equal to or less than Offer Price Fix: Removed mandatory salePrice > offerPrice validation rule in CreateProduct.tsx. Kept the wholesale margin safeguard requiring offerPrice >= purchasePrice, enabling listing of non-discounted catalog items.
Bug: Image proxy endpoints susceptible to CORS credential errors and SSRF internal probing Fix: Implemented strict hostname filtering for loopback (127.0.0.1, localhost), metadata (169.254.169.254), and internal domains in both Express and Next.js proxy routes. Added dynamic origin reflection with Access-Control-Allow-Credentials: true and wrapped fetch timers with clearTimeout in finally blocks.
Bug: Ghost AR overlay rendered on screen when selecting photo upload mode without an image Fix: Added canvas context clearing and nullified cachedAnchorsRef when try-on session is disabled. Hidden <canvas> element in VirtualTryOn.tsx until a photo is uploaded. Replaced verbose placeholder text with a luxury "Virtual Try-On Coming Soon" card.
Feature: Comprehensive Shipment & Logistics Analytics Dashboard Fix: Implemented backend MongoDB aggregation pipeline in CustomerAnalyticsService providing shipment KPIs, delivery success rates, domestic vs. international breakdown, carrier distribution (EasyPost, BlueDart, Sequel, FedEx, DHL), and a paginated registry table with regex-sanitized search. Added dedicated ShipmentAnalyticsTab in the Admin analytics dashboard.
Repository: Noxa-Jewellery-be (Backend API)
Modified:
src/customer/customer-analytics.controller.ts — Added GET /customer-analytics/shipment-analytics endpoint.
src/customer/customer-analytics.service.ts — Added getShipmentAnalytics aggregate pipeline with regex-sanitized search.
src/products/dto/create-product.dto.ts — Added arEarringImage DTO property.
src/products/products.service.ts — Explicitly handle clearing arImage and arEarringImage on update.
src/products/schemas/product.schema.ts — Added arEarringImage field to Mongoose schema.
src/upload/upload.controller.ts — Added SSRF-hardened GET /upload/proxy-image endpoint.
Added (Untracked):
src/customer/dto/shipment-analytics-query.dto.ts — Validation DTO for shipment query parameters.
Repository: Noxa-Jewellery-fe (Admin Dashboard)
Modified:
package.json & package-lock.json — Installed @imgly/background-removal and peer dependencies.
src/hooks/useProducts.ts — Added arEarringImage to Product interface.
src/pages/customers/analytics/CustomerActivitiesAnalytics.tsx — Registered ShipmentAnalyticsTab.
src/pages/customers/analytics/components/CustomerActivityTabs.tsx — Added "Logistics & Shipments" tab pill.
src/pages/products/CreateProduct.tsx — Integrated ARAssetGenerator, removed salePrice > offerPrice restriction, bound arEarringImage.
src/pages/products/ProductsList.tsx — Added "AR Ready" / "Auto AI" status badges to product table.
src/services/service.customerAnalytics.ts — Added getShipmentAnalytics API client call.
Added (Untracked):
src/components/ARAssetGenerator.tsx — Dual AR asset generator with smart crop auto-splitting for jewelry sets.
src/pages/customers/analytics/components/ShipmentAnalyticsTab.tsx — Shipment and logistics analytics view.
src/utils/backgroundRemoval.ts — Client-side AI background isolation utility.
Repository: Noxa_E_Comm_Fe (Storefront)
Modified:
app/proxy-image/route.ts — SSRF protection, dynamic execution flag, timer leak fix.
components/VirtualTryOn.tsx — Multi-item set try-on, view switcher pills, photo mode ghost fix, luxury coming soon card.
components/product/ProductDetails.tsx — Dynamic set detection and arEarringImage prop propagation.
components/try-on/TryOnStudio.tsx — Added "Jewellery Sets" filter tab and set category resolution.
lib/ar/anchors.ts — Jawline occlusion masking, profile ear tracking, anchor filters.
lib/ar/mediapipe.ts — Added "set" category model gating (FaceLandmarker + PoseLandmarker).
lib/ar/renderer.ts — Sliced earring pair rendering, chin occlusion clipping.
lib/hooks/useARSession.ts — Dual landmark inference and compositing for "set".
lib/types/ar.ts — Added "set" category, earringDataUrl, and jawPoints.
lib/types/product.ts — Added arEarringImage to product types.
Added (Untracked):
public/models/ — Self-hosted MediaPipe task model binaries.
public/wasm/ — Self-hosted MediaPipe WebAssembly runtimes.
Updated by Ajit A 9 days ago
- Due date set to 11/19/2026
- Status changed from In Progress to Resolved
- % Done changed from 60 to 100
Feature: AR Asset Studio Multi-Piece Extraction & High-Performance Alpha Auto-Trim Fix: Implemented 2D bounding-box cropping with independent coordinates for necklace and earrings in ARAssetGenerator.tsx. Added high-performance directional alpha-channel boundary trimming to remove transparent margins without UI freezing. Provided live simulation previews with checkerboard, dark, light, and virtual try-on bust modes.
Feature: Real-Time Biometric Face Shape & Anthropometric Analysis HUD Fix: Created lib/ar/faceAnalysis.ts introducing FaceShapeTracker, which computes facial metrics (cheek width, jaw angle width, forehead width, and pitch-compensated face length) across consecutive frames. Integrated drawFaceScanningHUD in renderer.ts to render luxury golden scanning brackets, an oscillating laser ray, and glowing facial landmark trackers prior to revealing jewelry try-on.
Bug: Earring Flashing and Abrupt Dropouts During Head Turns Fix: Replaced binary straightness cutoffs in anchors.ts with smooth OneEuro-filtered confidence interpolation (leftConf, rightConf) and 3D yaw foreshortening. Updated useARSession.ts to retain persistent filter states across category transitions and maintain anchor rendering when confidence is above 0.15.
Bug: Erroneous Earring Extraction and Pendant Cropping on Standalone Necklaces Fix: Refined isSet conditional logic in components/VirtualTryOn.tsx to exclude standalone necklaces and restrict multi-piece set mode strictly to products marked as sets, combos, bridal sets, or items with explicit arEarringImage assets.
Bug: Position Snapping and Filter Velocity Artifacts After Tracking Loss Fix: Updated OneEuroFilter in lib/ar/oneEuro.ts to reset both position and derivative low-pass filters (xFilter and dxFilter) whenever temporal dropouts exceed 500ms, ensuring immediate lock-on without smoothing lag on re-acquisition.
Issue: Push Notification Permission Confirmation Feedback Fix: Re-enabled visual toast feedback upon granting browser notification permissions in components/layout/Header.tsx.
Repository: Noxa-Jewellery-fe
Modified:
src/components/ARAssetGenerator.tsx — Added 2D bounding crop helper, optimized
𝑂
(
boundary
)
O(boundary) directional alpha border trimming, independent region presets (left, right, pair), visual crop modal, and multi-background asset inspector.
Repository: Noxa_E_Comm_Fe
Added & Staged:
lib/ar/faceAnalysis.ts — Anthropometric face shape classification (Oval, Round, Square, Heart, Diamond, Oblong) with temporal frame accumulation, calibrated jaw gonions (172/397), and isotropic Z-depth normalization.
Modified:
components/VirtualTryOn.tsx — Hardened isSet logic to prevent earring extraction on solo necklaces; integrated biometric face shape indicator cards and dark luxury footer.
components/home/HomeVirtualTryOnBanner.tsx — Passed arEarringImage and isArAssetAvailable props into try-on banner trigger.
components/layout/Header.tsx — Re-enabled push notification success toasts and cleaned up notification dialog styling.
lib/ar/anchors.ts — Anatomical earlobe positioning below tragus; 3D yaw foreshortening; suprasternal notch necklace anchoring.
lib/ar/oneEuro.ts — Added complete state reset (xFilter + dxFilter) on frame gaps >500ms.
lib/ar/renderer.ts — Aspect-ratio jewelry classification (stud, hoop, drop, chandelier; choker, princess, matinee), biometric scanning HUD (drawFaceScanningHUD), and safe cross-origin handling for blob/data URLs.
lib/hooks/useARSession.ts — Integrated FaceShapeTracker, persistent filter caches across category switching, and confidence-decay transitions.