Feat/dark mode#14
Open
sindhudeepika wants to merge 2 commits into
Open
Conversation
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>
8 tasks
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.
No description provided.