4 Commits

Author SHA1 Message Date
Alex Polo
e6a83da2ab Refactor API calls to use apiFetch for consistency and improved cookie handling
- Updated availability admin page to use apiFetch for fetching and modifying blocked dates.
- Enhanced menu generator page to ensure all expected arrays are initialized to avoid rendering issues.
- Added path to cookies in login and logout routes for better cookie management.
- Improved availability blocked API to log request headers and handle both date and id for deletion.
- Updated menu generator API to include tags in the response structure and ensure expected arrays are present.
- Enhanced middleware to handle authentication more robustly, including detailed logging and handling of various request types.
- Added Playwright test to verify that toggling availability does not log out the admin user.
- Created apiFetch utility to standardize API requests with credentials included.
2025-11-07 15:50:22 +01:00
Alex Polo
570c41f465 Add comprehensive Playwright tests for calendar functionality
- Implemented tests for debugging browser cache vs server response.
- Verified calendar displays correct dates for November 2025.
- Added visual inspection screenshot for calendar layout.
- Created tests to ensure calendar fits within its container.
- Checked for correct styling of available and blocked dates.
- Debugged login form behavior and cookie handling.
- Added tests for forced browser refresh and cache verification.
- Conducted visual tests to compare actual calendar layout with expected.
- Enhanced logging for better traceability during test execution.
2025-11-07 14:09:22 +01:00
Alex Polo
b7d6729234 chore: stop tracking generated images + ignore dist and image-cache 2025-10-29 10:28:49 +01:00
Alex Polo
a8b85b58be Initial commit from Create Next App 2025-10-28 21:59:06 +01:00