Skip to content

Feat/dark mode#14

Open
sindhudeepika wants to merge 2 commits into
lindsey-anthropic:mainfrom
sindhudeepika:feat/dark-mode
Open

Feat/dark mode#14
sindhudeepika wants to merge 2 commits into
lindsey-anthropic:mainfrom
sindhudeepika:feat/dark-mode

Conversation

@sindhudeepika

Copy link
Copy Markdown

No description provided.

sindhudeepika and others added 2 commits April 27, 2026 10:32
R1 — Reports remediation
- Rewrote Reports.vue from Options API to Composition API
- Wired useFilters() so warehouse/category filters apply to reports
- Added warehouse + category params to /api/reports/* endpoints
- Fixed fulfillment rate calculation (excluded in-flight orders from denominator)
- Added reports i18n section to en.js and ja.js
- Fixed hardcoded 'Reports' nav link to use t('nav.reports')
- Removed 13 console.log statements
- Replaced direct axios calls with centralised api.js methods

R2 — Restocking recommendations
- New GET /api/restocking endpoint (warehouse, category, budget params)
- Ranks items at/below reorder point by urgency; applies budget ceiling
- New Restocking.vue view with budget input, summary stats, recommendations table
- Wired to useFilters() for warehouse/category filter support
- Full i18n coverage in en.js and ja.js (English + Japanese)

R3 — Automated browser tests
- 19 Playwright e2e tests across reports.spec.js and restocking.spec.js
- Covers: page rendering, filter behaviour, budget ceiling, data correctness
- playwright.config.js targeting localhost:3000

R4 — Architecture documentation
- proposal/architecture.html: system diagram, API surface, data flow,
  file map, and inherited technical debt inventory

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Introduces a useDarkMode composable that toggles a .dark class on
<html> and persists the preference to localStorage. All hardcoded hex
colors across App.vue, FilterBar, Dashboard, Inventory, Orders,
Reports, and Restocking views are replaced with CSS custom properties
defined in :root / html.dark override blocks, giving a smooth
transition between light and dark themes.

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