Fix missing PurchaseOrderModal, /api/tasks 404, debug logs, and invisible chart labels - #236
Open
julazcano wants to merge 4 commits into
Open
Fix missing PurchaseOrderModal, /api/tasks 404, debug logs, and invisible chart labels#236julazcano wants to merge 4 commits into
julazcano wants to merge 4 commits into
Conversation
Lets users set a budget and get demand-forecast-based restock recommendations (greedy by demand gap), submit them via a new POST /api/restocking endpoint, and see submitted orders with delivery lead time in a new Orders tab section. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M3DuWAWcHvYp4K22srxCwc
Replaces the top horizontal nav with a fixed vertical sidebar (brand, icon nav links, active-state highlighting, profile/language in the footer), backed by a CSS custom-property token system for color, spacing, radius, and shadows. FilterBar now sits in a slim content header instead of its own sticky bar. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M3DuWAWcHvYp4K22srxCwc
…ible chart labels - Add PurchaseOrderModal.vue and wire it into Dashboard.vue so the Create PO / View PO buttons on the Inventory Shortages table work (component was referenced in the template but never created) - Add missing /api/tasks (GET/POST/PATCH/DELETE) and /api/purchase-orders (POST/GET) backend endpoints backed by in-memory tasks.json/purchase_orders.json - Remove leftover debug console.log statements from Reports.vue - Fix invisible category values on the Overview "Inventory Value by Category" bar chart by moving the label outside the colored bar (previously white text could land on the near-white background for short bars, making it unreadable) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014VSJEMkJrkU3zxHqWHX2bS
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
PurchaseOrderModal.vueand wire it intoDashboard.vueso the Create PO / View PO buttons on the Inventory Shortages table actually work (the component was referenced in the template but never created, causing a Vue warning on every page load)GET/POST /api/tasks,PATCH/DELETE /api/tasks/{id},POST /api/purchase-orders,GET /api/purchase-orders/{backlog_item_id}— backed by new in-memory data files (server/data/tasks.json), fixing a 404 that fired on every app loadconsole.logstatements fromReports.vueFound via a Playwright pass over all nav tabs; all four issues reproduced with real console errors/warnings and a visual screenshot diff before being fixed.
Test plan
curlverifiedGET/POST /api/tasks,POST /api/purchase-orders,GET /api/purchase-orders/{id}all return expected data/api/tasks404)🤖 Generated with Claude Code
https://claude.ai/code/session_014VSJEMkJrkU3zxHqWHX2bS