Add Restocking tab with budget-aware order recommendations#93
Open
upen7 wants to merge 1 commit into
Open
Conversation
- New Restocking view with a $1K-$100K budget slider, demand-forecast-driven recommendations (sorted by forecasted demand), and a Place Order button. Auto-selects items greedily within the budget and trims selections when the budget shrinks. - Backend: three new endpoints - GET /api/restocking/recommendations enriches demand forecasts with unit cost (live inventory cost when available, static fallback otherwise) and recommended quantity; POST /api/restocking-orders creates an order with a fixed 7-day delivery lead time; GET returns all submitted orders newest-first. - Orders tab now shows a "Submitted Restocking Orders" section at the top with delivery date highlighted. - Adds /restocking route + nav link, an interactive architecture page in docs/architecture.html, and a Coding Standards note in CLAUDE.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/architecture.htmland a Coding Standards note inCLAUDE.md.Changes
Frontend
client/src/views/Restocking.vue— new view (budget slider, recommendations table, place-order flow)client/src/views/Orders.vue— new "Submitted Restocking Orders" section pinned at topclient/src/main.js— registers/restockingrouteclient/src/App.vue— adds Restocking nav linkclient/src/api.js— 3 new client methodsBackend
server/main.py—GET /api/restocking/recommendations,POST /api/restocking-orders,GET /api/restocking-orders, Pydantic models, fallback unit-cost mapDocs
docs/architecture.html— interactive system architecture pageCLAUDE.md— Coding Standards sectionTest plan
/restocking🤖 Generated with Claude Code