Project

General

Profile

Edit Copy Actions

Support #11811

open

Support #11764: E-commerce pending tasks for nov 15 release

Remove unwanted api calls in home page

Added by Yalavarthi Thriveni 4 days ago. Updated 3 days ago.

Status:
Resolved
Priority:
High
Assignee:
Start date:
10/30/2026
Due date:
10/30/2026 (3 days late)
% Done:

100%

Estimated time:
1:30 h
Spent time:

Description

https://atlantafencecompany.co/api/v1/nus-order/coupon/published?slug=nursery%2Fevergreen - Not required to called in home page
https://atlantafencecompany.co/api/v1/nus-shop/welcome-coupon?slug=nursery%2Fevergreen - Not required to called in home page
1.https://atlantafencecompany.co/api/v1/growth/local-merch-context?slug=nursery%2Fevergreen&country=IN&city=Vijayawada&location=Vijayawada&lat=16.51667&lng=80.61667
2.https://atlantafencecompany.co/api/v1/growth/weather-products?slug=nursery%2Fevergreen&sessionId=sess_1793270511005_9qoktj90&variant=treatment&lat=16.51667&lng=80.61667&city=Vijayawada&tz=Asia%2FCalcutta
3.https://atlantafencecompany.co/api/v1/growth/seasonal-products?slug=nursery%2Fevergreen&limit=18&country=IN&city=Vijayawada&location=Vijayawada&lat=16.51667&lng=80.61667
4.https://atlantafencecompany.co/api/v1/growth/weather-promos?slug=nursery%2Fevergreen
5.https://atlantafencecompany.co/api/v1/growth/weather-telemetry?slug=nursery%2Fevergreen

make these 5 api's in single api to get single response and those are called once allowed location in mobile / web other wise don't called these api's and once location enabled call these api's


Add

Subtasks


Add

Related issues

Actions #1

Updated by Yalavarthi Thriveni 4 days ago

  • Parent task set to #11764
Actions #2

Updated by Ajit A 3 days ago

  • Status changed from New to In Progress
Actions #3

Updated by Ajit A 3 days ago

  • Status changed from In Progress to Resolved

Updated by Ajit A 3 days ago

  • % Done changed from 0 to 100

Bug: Home page was executing unwanted coupon and popup API calls (/v1/nus-order/coupon/published and /v1/nus-shop/welcome-coupon) on every initial load. Fix: Removed <FirstOrderPromoDialog /> from

Dashboard.tsx
and suppressed <Promotion /> on the home page via !isHomePage in

AllRoutes.tsx
.

Bug: Home page fired multiple uncoordinated API requests (local-merch-context, weather-products, seasonal-products, weather-promos, and client telemetry) even before user granted location permission. Fix: Created a unified backend endpoint GET /api/v1/growth/home-merchandising in

growth.route.js
and

weatherProduct.controller.js
that resolves context, weather, seasonal products, and promo rules in parallel via Promise.allSettled while auto-recording impressions server-side. Implemented

useHomeMerchandising.ts
and

CustomerLocationContext.tsx
to strictly gate this call until user location is allowed (geolocation or manual).

Bug: Co-mounted desktop and mobile navigation headers triggered duplicate concurrent network requests to /v1/comm/notifications. Fix: Added module-level promise memoization (inFlightNotificationsPromise) and a 10-second memory cache (cachedNotificationNotes) to

OrderNotificationBell.tsx
, eliminating duplicate simultaneous requests and resetting cleanly upon note clearance

Actions #5

Updated by Ajit A 3 days ago

  • Due date set to 10/30/2026
  • Start date changed from 10/29/2026 to 10/30/2026
Actions #6

Updated by Ajit A 3 days ago

  • Estimated time changed from 2:00 h to 1:30 h
Edit Copy Actions

Also available in: Atom PDF