5 Commits

Author SHA1 Message Date
Alex Polo
86685da067 feat: Add menu generation enhancements and API testing script
- Updated package.json to include new test scripts for API testing.
- Modified postcss.config.mjs to correctly configure Tailwind CSS and autoprefixer.
- Enhanced MenuGeneratorPage component to accept starter, main, and dessert requests.
- Updated API route to handle new menu generation parameters and log requests.
- Created LOGIN_CREDENTIALS.md for admin login information and user management instructions.
- Implemented test-api.mjs script to automate API endpoint testing and validate responses.
2025-11-07 14:46:33 +01:00
Alex Polo
4dec4745ae Refactor sample data structure and update components to use new data format
- Renamed `sampleData` to `data` in `src/config/sample-data.ts` and updated references in components.
- Added ingredients to menu items in `sample-data.ts` for detailed ingredient lists.
- Updated `USPList` component to reflect changes in data structure.
- Modified `Menu` interface in `models.ts` to include optional ingredients property.
- Implemented new `MenuGeneratorPage` for AI-driven menu creation with user input.
- Created `MenuIngredientsPage` for managing and calculating ingredient costs.
- Developed API route for menu generation using OpenAI API.
- Enhanced navigation component to exclude admin pages and login from display.
- Comprehensive logging and error handling added to API route.
2025-11-07 13:01:23 +01:00
Alex Polo
cbc1e31440 feat: Add address column and booking extras to bookings table
- Implemented a script to add an 'address' column to the 'bookings' table if it doesn't exist.
- Created a script to add 'include_service', 'include_cleanup', and 'total_price' columns to the 'bookings' table.
- Set up a 'users' table with an admin user and password hashing using bcrypt.
- Developed login and logout API routes with JWT authentication.
- Created a login page with form handling and error display.
- Designed a profile page for Christian Wärme showcasing skills and experience.
- Added a logout button component for admin interface.
- Implemented tests for login functionality and visual calendar layout.
2025-11-07 10:58:19 +01:00
Alex Polo
d9eb9cb314 Add advanced calendar features and toast notifications
Features:
- Toast notifications system (replaces alerts/confirms)
- Shift+click range selection for blocking dates
- Ctrl/Cmd+click for non-contiguous multi-date selection
- Progress indicators for all async operations
- Improved blocked dates list with formatted dates
- Red styling for blocked dates in calendar
- Blue styling for pending dates (Ctrl+click)
- Weekly schedule awareness (confirm before blocking work days)
- Non-working day styling (gray, dashed border)

Other improvements:
- Featured flag for menus (DB migration script included)
- Image handling fixes (renamed PNG files, updated references)
- Optimistic UI updates for better UX
- Multi-select bulk delete for blocked dates
- Show-only-blocked filter mode

Components:
- src/components/ui/toast.tsx (new)
- scripts/add-featured-column.mjs (new DB migration)
- scripts/README.md (migration documentation)
2025-10-31 20:06:41 +01:00
Alex Polo
b006314526 Fix image formats: rename public images to .png and update sample-data refs; make ImagePlaceholder sizing defer to parent 2025-10-30 19:40:24 +01:00