Skip to content

Add Restocking view with budget optimizer#114

Open
VZhuck wants to merge 1 commit into
beck-source:mainfrom
VZhuck:new_features
Open

Add Restocking view with budget optimizer#114
VZhuck wants to merge 1 commit into
beck-source:mainfrom
VZhuck:new_features

Conversation

@VZhuck

@VZhuck VZhuck commented May 28, 2026

Copy link
Copy Markdown

Summary

  • New Restocking page with a budget slider and greedy algorithm that auto-selects items maximizing demand coverage within the available budget
  • POST /api/restocking-orders backend endpoint that creates RST-YYYY-NNNN orders and appends them to the in-memory orders list
  • Orders view gains a "Submitted Restocking Orders" section showing RST orders with expandable item detail rows
  • Wired /restocking route, nav link (with i18n), and createRestockingOrder API call
  • Updated demand_forecasts.json and added Playwright MCP config (token replaced with env-var placeholder)

Test plan

  • Start backend (uv run python main.py) and frontend (npm run dev)
  • Navigate to Restocking page — items table loads with greedy pre-selection
  • Move budget slider — selection updates automatically to stay within budget
  • Toggle individual checkboxes — remaining budget updates in real time
  • Click Place Order with items selected — success banner shows order number
  • Navigate to Orders page — submitted RST order appears in the new section
  • Verify warehouse/category filters reload the restocking table correctly

🤖 Generated with Claude Code

…king-orders endpoint

- New Restocking.vue page: budget slider, greedy item-selection algorithm, checkbox table, Place Order flow
- POST /api/restocking-orders backend endpoint generates RST-YYYY-NNNN order numbers and appends to in-memory orders
- Orders.vue gains a "Submitted Restocking Orders" section showing RST orders with expandable item details
- Wired up /restocking route in router and nav link with i18n key
- Updated demand_forecasts.json data and added Playwright MCP config

/cc @claude

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant