How vguddantisfdc/af360league-apexandlwc works
This Salesforce app supports a retail-store replenishment workflow: select a store and date, choose eligible products, review quantities and notes, create an order, and optionally ask Agentforce to review inventory risks. The sampled Lightning components show the UI flow and Apex calls; the Apex implementations and several component templates were not provided, so links to those internals are limited to relationships visible in the excerpts. The tree also documents formula metadata and order data structures, but their runtime wiring is not shown.
Main entry points: replenishmentWizardStep3.js Order review · ReplenishmentController.cls Replenishment controller · replenishmentWizard.js Wizard shell · replenishmentStateManager.js Replenishment state
Components 16
Replenishment wizard
- Wizard shell
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizard/replenishmentWizard.js - Store and date
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizardStep1/replenishmentWizardStep1.js - Product step
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizardStep2/replenishmentWizardStep2.js - Order review
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizardStep3/replenishmentWizardStep3.js - Replenishment state
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentStateManager/replenishmentStateManager.js
Product selection
- Product card
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentProductCard/replenishmentProductCard.js - Product carousel
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentProductCarousel/replenishmentProductCarousel.js - Recommendation card
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentRecommendationCard/replenishmentRecommendationCard.js
Order services
- Replenishment controller
replenishment-workshop-challenge/force-app/main/default/classes/ReplenishmentController.cls - Formula service
replenishment-workshop-challenge/force-app/main/default/classes/ReplenishmentFormulaService.cls - Recommendation action
replenishment-workshop-challenge/force-app/main/default/classes/ReplenishmentRecommendationAction.cls
Salesforce data
- Formula metadata type
replenishment-workshop-challenge/force-app/main/default/objects/Replenishment_Formula__mdt/Replenishment_Formula__mdt.object-meta.xml - Formula configurations
replenishment-workshop-challenge/force-app/main/default/customMetadata/Replenishment_Formula.Default.md-meta.xml - Order object
replenishment-workshop-challenge/force-app/main/default/objects/Order/Order.object-meta.xml
Other components
- Store operator
- Agentforce service
Connections 7
- Store operator → Wizard shell: uses
- Wizard shell → Replenishment state: resets
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizard/replenishmentWizard.js - Store and date → Replenishment controller: loads store
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizardStep1/replenishmentWizardStep1.js - Product step → Replenishment controller: loads products
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizardStep2/replenishmentWizardStep2.js - Order review → Replenishment controller: creates order
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizardStep3/replenishmentWizardStep3.js - Order review → Replenishment state: reads and updates
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizardStep3/replenishmentWizardStep3.js - Order review → Agentforce service: opens and prompts
replenishment-workshop-challenge/force-app/main/default/lwc/replenishmentWizardStep3/replenishmentWizardStep3.js