Fix multiple production issues and add password change functionality

- Fixed frontend API URL configuration to use correct port 3002
- Fixed create event functionality by adding proper endpoint and fixing JSON parsing
- Fixed email settings save functionality by importing logActivity correctly
- Fixed admin settings save functionality by using api client instead of direct fetch
- Implemented password change functionality with modal and backend endpoint
- Added updated_at column to admin_users table
- Fixed all mock data issues - now using real backend data throughout

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

Co-Authored-By: Claude <[email protected]>
This commit is contained in:
2025-07-07 10:25:38 +02:00
co-authored by Claude
parent f38a8ef598
commit 225d017718
16 changed files with 495 additions and 82 deletions
+2 -5
View File
@@ -32,7 +32,6 @@ const EVENT_TYPES = [
{ value: 'wedding', label: 'Wedding', emoji: '💒' },
{ value: 'birthday', label: 'Birthday', emoji: '🎂' },
{ value: 'corporate', label: 'Corporate', emoji: '🏢' },
{ value: 'party', label: 'Party', emoji: '🎉' },
{ value: 'other', label: 'Other', emoji: '📸' },
];
@@ -126,8 +125,6 @@ export const CreateEventPage: React.FC = () => {
return;
}
const expiresAt = addDays(new Date(), formData.expires_in_days);
createMutation.mutate({
event_type: formData.event_type,
event_name: formData.event_name,
@@ -135,9 +132,9 @@ export const CreateEventPage: React.FC = () => {
host_email: formData.host_email,
admin_email: formData.admin_email,
password: formData.password,
welcome_message: formData.welcome_message || undefined,
welcome_message: formData.welcome_message || '',
color_theme: formData.color_theme || undefined,
expires_at: expiresAt.toISOString(),
expiration_days: formData.expires_in_days,
});
};