Skip to content

Add restocking recommendations feature#122

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

Add restocking recommendations feature#122
sanamallesh wants to merge 1 commit into
beck-source:mainfrom
sanamallesh:new_features

Conversation

@sanamallesh
Copy link
Copy Markdown

Summary

Adds a Restocking Recommendations view and supporting backend endpoints to help warehouse managers identify items that need reordering.

Changes

Frontend

  • New /restocking route and Restocking.vue view with filterable recommendations table
  • Added restocking nav link in App.vue and main.js
  • API client methods for restocking endpoints in �pi.js
  • i18n strings added to both en.js and ja.js

Backend

  • New endpoints in main.py:
    • GET /api/restocking — returns items below reorder threshold with urgency scoring
    • GET /api/restocking/{item_id} — single item detail
  • Demand forecast data updated in server/data/demand_forecasts.json

Docs & Tests

  • Architecture docs added at docs/architecture.html
  • Backend tests added in ests/backend/test_restocking.py
  • Existing misc endpoint tests updated in ests/backend/test_misc_endpoints.py

Testing

All backend tests pass. Frontend tested locally against the dev server.

- Add /api/restocking/recommendations GET endpoint with budget-aware filtering
- Add /api/restocking/order POST endpoint to create restock purchase orders
- Add Restocking.vue view with recommendations UI and order creation flow
- Add /restocking route to vue-router
- Add restocking i18n strings to en.js and ja.js locales
- Add api.js client methods for restocking endpoints
- Add tests/backend/test_restocking.py covering restocking endpoints
- Add docs/architecture.html system architecture overview
- Update CLAUDE.md with restocking route and endpoint docs
- Update Orders.vue with order detail improvements
- Update demand_forecasts.json data
- Update test_misc_endpoints.py
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