Add restocking feature with budget recommendations and order submission - #239
Open
Ge0f3 wants to merge 1 commit into
Open
Add restocking feature with budget recommendations and order submission#239Ge0f3 wants to merge 1 commit into
Ge0f3 wants to merge 1 commit into
Conversation
Adds a Restocking tab where users set a budget and get prioritized restock recommendations, then submit restock orders that persist to disk. Backend: - GET /api/restocking/recommendations (budget required; warehouse/category filters) - GET|POST /api/restocking/orders — the only write endpoint, persists to server/data/restock_orders.json with atomic writes and a lock to keep concurrent POSTs from colliding on ids - New Restocking.vue view and route; api.js client methods Orders: - New "Submitted Orders" card listing restock orders, intentionally filter-independent (like /api/demand and /api/backlog) Also adds en/ja i18n strings, architecture docs, and a backend test suite. Co-Authored-By: Claude Opus 4.8 <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
Adds a Restocking feature: users set a budget, get prioritized restock recommendations, and submit restock orders that persist to disk. Submitted orders then surface on the Orders page.
Backend
GET /api/restocking/recommendations—budgetrequired; supportswarehouse/categoryfiltersGET|POST /api/restocking/orders— the only write endpoint; persists toserver/data/restock_orders.jsonos.replace) so a crash mid-write can't leave truncated JSONFrontend
api.jsclient methods/api/demandand/api/backlogOther
docs/tests/backend/test_restocking.py)Testing
🤖 Generated with Claude Code