Skip to content

Add budget-based restocking feature and architecture docs#164

Open
thinkleo987 wants to merge 2 commits into
beck-source:mainfrom
thinkleo987:new_features
Open

Add budget-based restocking feature and architecture docs#164
thinkleo987 wants to merge 2 commits into
beck-source:mainfrom
thinkleo987:new_features

Conversation

@thinkleo987

Copy link
Copy Markdown

Summary

  • New Restocking tab with budget slider ($0-$500K) and demand-driven recommendation engine prioritising high-trend SKUs
  • Place Order submits restocking orders shown in Orders tab with 14-day delivery lead time
  • Three new FastAPI endpoints: GET/POST /api/restocking/orders and GET /api/restocking/recommendations
  • HTML architecture visualization (docs/architecture.html) covering stack, data flow, API endpoints, and file structure
  • Updated CLAUDE.md with restocking feature context; Playwright MCP configured

Test plan

  • Open http://localhost:3000/restocking, drag budget slider and verify recommendations update
  • Click Place Order and confirm order appears in Orders tab with lead time
  • Verify GET /api/restocking/recommendations?budget=50000 returns JSON
  • Open docs/architecture.html and verify all sections render correctly

Generated with Claude Code

Chakravarthy Balagani and others added 2 commits June 23, 2026 11:51
- New Restocking tab with budget slider ($0-$500K) and demand-driven
  recommendations engine prioritising high-trend SKUs
- Place Order submits restocking orders stored in-memory; submitted
  orders appear in Orders tab with 14-day delivery lead time
- Three new FastAPI endpoints: GET/POST /api/restocking/orders and
  GET /api/restocking/recommendations?budget=N
- HTML architecture visualization covering stack, data flow, all API
  endpoints, and file structure
- Updated CLAUDE.md with restocking feature context

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Reports.vue:
- Rewrite from Options API to Composition API (setup/ref/computed/watch)
- Add useI18n + t() for all hardcoded English strings
- Add useFilters + watch so global filter bar now affects report data
- Remove 12 console.log statements (mounted, loadData x8, formatNumber,
  formatMonth, getBarHeight); use console.error in catch block
- Replace direct axios + hardcoded URL with api.getQuarterlyReports/
  api.getMonthlyTrends via centralized api.js
- Replace var with const/let throughout
- Fix v-for keys: index -> q.quarter and month.month

App.vue:
- Fix hardcoded Reports nav label -> t('nav.reports')

Backend (main.py):
- Add warehouse/category filter params to /api/reports/quarterly
- Add warehouse/category filter params to /api/reports/monthly-trends

api.js:
- Add getQuarterlyReports(filters) and getMonthlyTrends(filters)

Locales (en.js, ja.js):
- Add reports.* and backlog.* translation keys + nav.reports/nav.backlog

Backlog.vue (stretch goal):
- Add useI18n + t() for all hardcoded English strings

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