House for sale in gumanpur
Featured
34567890.00 ₹
- Location: Orchard Solutions, Dhanpur Gusai, Gumaanpur, Nainital, Nainital, Uttarakhand
Enhance the premium request workflow with full state handling and synchronization between Item Page, Admin → Request Premium, and Admin → Manage Listings.
On the Item Page, if a premium request was rejected, the “Feature Listing” button should become active again with the label “Request Again.” Clicking it should create a new premium request (or reset the previous one to pending, depending on your data model). Prevent duplicate pending requests and ensure the button dynamically reflects the current state:
pending → “Request Sent” (disabled)
approved → show Premium/Featured badge (button hidden or disabled)
rejected → “Request Again” (enabled)
Link the logic between Admin → Request Premium and Admin → Manage Listings so both use the same centralized premium service/actions. Any approval, rejection, or manual “Mark as Premium” action must update the listing’s premium status and request status consistently. Avoid duplicating logic — reuse the same functions for:
Approving request → sets listing as Premium + updates request to approved
Rejecting request → updates request to rejected
Marking as Premium in Manage Listings → updates listing and request status accordingly (create or sync record if needed)
Ensure all changes reflect instantly across:
listing-card-list
listing-grid
latestItems
Item detail page
Admin tabs (Request Premium & Manage Listings)
Maintain clean state transitions (pending → approved/rejected, rejected → pending, etc.), enforce admin-only permissions for approval/rejection, and ensure UI updates consistently without requiring manual refresh.
Contact seller
Share
Related listings
-
₹ 2,34,56,789
Update the admin workflow so that when an Admin approves a request from the “Request Premium” tab, the system automatically performs the same logic as the “Manage Listings → Mark as Premium” action. Specifically, upon approval: Update the premium request status from pending to approved. Trigger t...
Comments