Skip to content

Fix reports page bugs#68

Open
martinatacn wants to merge 2 commits into
beck-source:mainfrom
martinatacn:fix-reports-page-bugs
Open

Fix reports page bugs#68
martinatacn wants to merge 2 commits into
beck-source:mainfrom
martinatacn:fix-reports-page-bugs

Conversation

@martinatacn
Copy link
Copy Markdown

No description provided.

Martin Sigg and others added 2 commits May 5, 2026 12:15
Introduces a Restocking view backed by a new POST /api/restocking/orders
endpoint that creates internal "Submitted" orders from demand forecast
items, plus a corresponding submitted-orders section on the Orders tab.
Replaces the top navigation with a sidebar layout (AppSidebar) and
extracts a shared PageHeader, with matching EN/JA localization updates
and an architecture overview at docs/architecture.html.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The Reports page diverged from the rest of the app. Fixed:

- Wired i18n via useI18n + new reports.* translation keys (en/ja)
- Wired the global filter bar via useFilters with a watcher; backend
  /api/reports/quarterly and /api/reports/monthly-trends now accept
  warehouse/category/status/month query params
- Removed 11 debug console.log calls; kept one console.error
- Converted from Options API to Composition API to match Dashboard/Orders
- Replaced raw axios + hardcoded URL with the centralized api client
- Replaced array-index v-for keys with q.quarter / month.month
- Added USD/JPY currency switching via formatCurrency
- Translated month labels (Jan 2025 / 1月 2025) instead of hardcoded English
- Replaced hand-rolled number formatter and var/for loops with
  formatCurrency, reduce, and toLocaleString

Co-Authored-By: Claude Opus 4.7 (1M context) <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