fix: Implement comprehensive edit event button functionality and resolve authentication issues

Major fixes and improvements:
- Fixed edit event button functionality with proper event handlers and DOM ready state checking
- Added status column to tickets table via Supabase migration to resolve 500 API errors
- Updated stats API to correctly calculate revenue from decimal price values
- Resolved authentication redirect loops by fixing cookie configuration for Docker environment
- Fixed Permissions-Policy header syntax errors
- Added comprehensive debugging and error handling for event management
- Implemented modal-based event editing with form validation and API integration
- Enhanced event data loading with proper error handling and user feedback

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-14 18:49:49 -06:00
parent b07ee8cdff
commit dbf4b11e81
216 changed files with 15891 additions and 468 deletions

83
qa-test-results.json Normal file
View File

@@ -0,0 +1,83 @@
{
"themeTests": {
"startingTheme": "Testing for theme toggle elements",
"toggleSelector": "button[aria-label*=\"light\"]",
"beforeToggleScreenshot": "theme-before-toggle.png",
"initialState": {
"documentClass": "dark",
"bodyClass": "min-h-screen flex flex-col dark performance-degraded",
"localStorage": "dark",
"dataTheme": "dark"
},
"afterToggleState": {
"documentClass": "light",
"bodyClass": "min-h-screen flex flex-col performance-degraded light",
"localStorage": "light",
"dataTheme": "light"
},
"afterToggleScreenshot": "theme-after-toggle.png",
"afterReloadState": {
"documentClass": "light",
"bodyClass": "min-h-screen flex flex-col light",
"localStorage": "light",
"dataTheme": "light"
},
"persistenceWorks": false
},
"interactiveTests": {
"navigationLinks": 16,
"eventFormFields": 17,
"validationMessages": 4,
"dashboardButtons": 19,
"dashboardLinks": 40,
"dashboardInputs": 5,
"modalTriggers": 0,
"dropdownTriggers": 0
},
"mobileTests": {
"mobileMenuWorks": false,
"hasHorizontalScroll": false
},
"consoleErrors": [
{
"timestamp": "2025-07-14T22:24:43.449Z",
"message": "Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.",
"url": "about:blank"
},
{
"timestamp": "2025-07-14T22:24:47.156Z",
"message": "Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.",
"url": "http://localhost:3001/login"
},
{
"timestamp": "2025-07-14T22:24:51.853Z",
"message": "Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.",
"url": "http://localhost:3001/dashboard"
},
{
"timestamp": "2025-07-14T22:24:53.162Z",
"message": "Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.",
"url": "http://localhost:3001/dashboard"
},
{
"timestamp": "2025-07-14T22:24:53.656Z",
"message": "No user found despite server-side auth",
"url": "http://localhost:3001/events/new"
},
{
"timestamp": "2025-07-14T22:24:56.622Z",
"message": "Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.",
"url": "http://localhost:3001/events/new"
},
{
"timestamp": "2025-07-14T22:24:57.917Z",
"message": "Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.",
"url": "http://localhost:3001/dashboard"
},
{
"timestamp": "2025-07-14T22:24:59.464Z",
"message": "Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.",
"url": "http://localhost:3001/dashboard"
}
]
}