Add budget-based restocking feature and architecture docs#164
Open
thinkleo987 wants to merge 2 commits into
Open
Add budget-based restocking feature and architecture docs#164thinkleo987 wants to merge 2 commits into
thinkleo987 wants to merge 2 commits into
Conversation
- 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>
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
Test plan
Generated with Claude Code