# Progress Log

## 2026-06-07

- Created the initial workspace structure.
- Added planning documents for roadmap, database structure, and test scenarios.
- Added project tracking documents for decisions and future progress.
- Scaffolded the React frontend under `project/frontend`.
- Built the first working mobile-first dashboard shell.
- Added seeded inventory, sales, employees, shifts, and fast stock command demo behavior.
- Verified the frontend production build.
- Started the frontend dev server at `http://127.0.0.1:5173`.
- Moved the real project structure to `D:\laragon\www\pizza-damore`.
- Created `frontend` React app and `backend` Laravel app in the same project folder.
- Configured Laravel to use MySQL database `pizza_damore`.
- Added backend migrations for users, employees, inventory, inventory commands, purchases, shifts, timesheets, sales, and expenses.
- Added API login, dashboard, inventory, command parser, sales, expenses, employees, shifts, and purchases endpoints.
- Seeded demo owner account and starter restaurant data.
- Rebuilt frontend as API-driven app with login, dashboard, working daily entry modals, and no localStorage.
- Verified React build, Laravel routes, MySQL migrations/seeding, API login, browser login, and Daily entries modal.
- Added root README with setup, run commands, credentials, database commands, and test commands.
- Fixed frontend lint issue in dashboard refresh effect.
- Added missing show/update/delete handlers for generated employee, inventory, and shift API routes.
- Re-ran frontend lint/build, Laravel tests, API login/dashboard smoke test, and browser smoke test successfully.
- Added `records/agent-roles.md` to define reusable Planner, Manager, Backend Developer, Frontend Developer, Tester, and Reviewer agent responsibilities.
- Completed Version 1 MVP scope.
- Added owner/manager role middleware.
- Added custom dashboard date range support.
- Added manual stock adjustment API and UI for stock in, stock out, waste, and correction.
- Added inventory movement history and purchase history.
- Added employee list, shift schedule, sales history, expense history, timesheets, and reports sections.
- Added timesheet generation from shifts, worked-hours calculation, hourly-rate snapshots, estimated pay, approval, and labor cost in profit.
- Added backend feature tests for core Version 1 API flows.
- Verified frontend lint/build, Laravel tests, API smoke checks, and browser smoke checks.
- Added edit/deactivate controls for inventory items.
- Added inventory search on the inventory page.
- Replaced inventory item dropdown in purchase/adjustment forms with searchable typeahead input.
- Added employee edit/deactivate controls.
- Added shift edit and cancel controls, with schedule visibility controlled by the selected date range.
- Added timesheet edit/delete controls.
- Added sales and expense edit/delete controls.
- Added backend update/delete support for sales, expenses, and timesheets.
- Added backend tests for update/delete maintenance flows.
- Switched UI currency display from rupees to euros.
- Added editable hourly-rate snapshot on timesheets.
- Added timesheet payment tracking: unpaid, partial, paid, paid amount, paid date, and payment notes.
- Set default dashboard range to next 14 days so future shifts are visible immediately.
- Added seeded overnight shift example from 17:00 to 02:00.
- Added backend test coverage for overnight shift hour calculation and payment tracking.
- Cleaned the timesheet list UI with compact rows and status badges for paid, partially paid, unpaid, and approval state.

## 2026-06-14

- Redesigned the login and dashboard into a more polished mobile-first operations command center.
- Added an employee portal for employee-role accounts.
- Added employee check-in and check-out API endpoints.
- Added employee portal UI with upcoming shifts, active check-in state, and recent timesheets.
- Seeded demo employee logins: `ali@pizzadamore.local`, `sara@pizzadamore.local`, and `omar@pizzadamore.local` using password `password`.
- Added manager review endpoints and UI for pending inventory commands.
- Added stock count and stock count item tables.
- Added stock count submission, approval, and inventory reconciliation.
- Added stock count UI for creating counts and approving reconciliation.
- Added lightweight login rate limiting.
- Added PWA manifest and production-only service worker registration.
- Added backend feature tests for employee check-in/out, command review, and stock count reconciliation.
- Verified frontend lint/build and Laravel tests.
