Commit Graph

52 Commits

Author SHA1 Message Date
muken 4e514c2fbb feat: admins can create private events with max_guests
- Added is_private and max_guests columns to social_events table
- Updated SocialEvent type with new fields
- Modified /api/social_events to include private events for admins
- Merged Public/Private Events into single 'Events' section with tabs
- SocialEditor now supports private event creation with max_guests field
- Public frontend still only sees public events
2026-07-03 00:27:44 -05:00
muken 60afc2349e feat: room assignments, kitchen dashboard, and order user tracking
- Add room_assignments table for assigning users to rooms with dates
- Auto-detect logged-in user's assigned room when ordering food
- Kitchen tab in admin: dedicated view for active orders with auto-refresh
- Room Assignments tab: assign registered users to rooms by date range
- Orders now show user info (username, name) for tracking
- Kitchen view groups orders by status (pending/preparing/ready)
- Messages section shows order notifications
2026-07-03 00:22:00 -05:00
muken 200784fa49 feat: add housekeeping fields to room status
- Add checkout time/date for current guest
- Add last_cleaned timestamp
- Add assigned_staff_id with staff dropdown
- Add priority (urgent/normal/low) for cleaning order
- Add issues_count for tracking problems
- Add is_vip flag for VIP guests
- Update RoomStatusSection UI to display and edit all new fields
- Auto-set last_cleaned when status changes to 'clean'
2026-07-03 00:13:19 -05:00
muken 6c8d70d41c feat: add Room Status tab in admin panel for housekeeping management
- Add clean_status and notes columns to rooms table
- Create /api/admin/room-status endpoint for status tracking
- Add RoomStatusSection component with:
  - Visual status icons ( clean, 🧹 dirty, 🔧 maintenance)
  - Occupancy status (occupied/available)
  - Current guest display with payment status
  - Upcoming reservations preview
  - Inline status and notes editing
- Add 'Room Status' tab to admin navigation
2026-07-03 00:09:38 -05:00
muken 1e66e918ac feat: add messaging system with admin bulk messages and user conversations
- Add conversations and direct_messages tables to schema
- User messaging page at /messages (users can start conversations, see admin responses)
- Admin messaging page at /admin/messages (view all conversations, reply to users)
- Admin bulk messaging: send to all customers, specific users, or admins
- Mail icon in navbar for logged-in users (links to appropriate messaging page)
- Show first name of admin who responded in conversation view
- Clean build cache after middleware changes
2026-07-03 00:06:07 -05:00
muken 0ca4f961f6 feat: add reservation system for public and private events
- Add private_event_reservations table with contact info fields
- Add status column to social_event_reservations (pending/confirmed/cancelled)
- Create /api/private-event-reservations CRUD endpoints
- Update social_event_reservations API to support guest submissions
- Add Reservations tab to Public Events admin section
- Add full reservation management UI for Private Events
- Support filtering by status (pending/confirmed/cancelled/all)
- Allow confirm/cancel/reactivate/delete actions
2026-07-02 20:29:17 -05:00
muken 361fd67e49 feat: add Spa/Pool gallery tabs, rename Social to Public Events, add Private Events
- Add 'Spa Gallery' (🧖) section in Image Gallery
- Add 'Pool Gallery' (🏊) section in Image Gallery
- Rename 'Social Events' to 'Public Events' (🎪) in sidebar
- Add 'Private Events' (🔒) placeholder section in sidebar
- Update category filters for spa/pool/public/private images
2026-07-02 20:26:16 -05:00
muken 5b30d0ca24 feat: add Food Gallery category to image gallery
- Add 'food' category filter in ImageGallery component
- Add '🍽️ Food Gallery' section in sectionCategories
- Update filteredImages logic to handle food category
- Clean up duplicate logo/favicon images in database
2026-07-02 20:22:13 -05:00
muken d730961c96 fix: SVG icons now scale properly with CSS instead of fixed width/height
- Remove hardcoded width/height attributes from SVGs
- Use CSS (width:100%;height:100%) for proper scaling
- Fixes amenity icons appearing compacted/overlapping
- viewBox maintains aspect ratio, CSS controls display size
2026-07-01 21:59:22 -05:00
muken 09bbe0a441 refactor: migrate room photos from rooms.photos to images table
- Photos now stored exclusively in images table (no duplication)
- rooms.photos array cleared, freed 17 MB storage
- Updated room APIs to fetch images by room_id
- Added PUT endpoint for room updates
- Updated RoomEditor to load/delete images from images table
- Fixed images API to return 'data' key consistently
2026-07-01 21:54:39 -05:00
muken ee68dc2897 feat: add WebP migration UI and API endpoint
- Add /api/admin/migrate-images endpoint to convert JPEG/PNG to WebP
- Add WebPMigration component in admin gallery showing stats
- Upload endpoint already converts new images to WebP
- Migration saves ~30-50% storage space per image
2026-07-01 21:47:16 -05:00
muken e299c07912 feat: show menu item photo thumbnail in admin list 2026-06-30 00:22:07 -05:00
muken ef2bfa5f05 fix: properly track featured_photo state in menu editor 2026-06-30 00:13:30 -05:00
muken 271457dfa5 fix: replace England flag with UK flag for English language 2026-06-30 00:09:25 -05:00
muken b46d490be2 feat: add photo support to food menu items
- Add photos and featured_photo columns to menu_items table
- Update MenuEditor with photo upload functionality
- Add click-to-set-featured-photo interaction
- Update menu API endpoints to handle photos
2026-06-30 00:04:04 -05:00
muken f9c8d48631 fix: use Ecuador timezone (GMT-5) for all date displays across the app 2026-06-29 23:53:58 -05:00
muken d67759485a fix: menu reorder - use items state after drag, add logging 2026-06-29 21:46:48 -05:00
muken d753a3713f fix: menu drag-and-drop reorder using sorted array and correct sort_order 2026-06-29 21:41:12 -05:00
muken 2dc949553e fix: slide image upload - clear image_url when image_id set, fix slides.image_url column type to TEXT, add bed amenities (Queen, 2 Queen) 2026-06-29 21:38:27 -05:00
muken 91fce014fd feat: room amenities selection in room editor 2026-06-29 20:49:51 -05:00
muken 262cd4745c feat: room amenities with editable SVG icons 2026-06-29 20:45:56 -05:00
muken 6b7720d2d8 feat: users can change their own password via user portal 2026-06-29 18:09:54 -05:00
muken 765465348e feat: allow admins to change user passwords 2026-06-29 18:07:24 -05:00
muken 291df16f1f feat: user portal with trips, wifi, welcome message, chat; admin trips & messages mgmt 2026-06-28 23:33:39 -05:00
muken 9f418d6b19 fix: slide editor upload button now works with useRef instead of nested label 2026-06-28 23:26:21 -05:00
muken a1d88af78b feat: add footer configuration (address, phone, email, social URLs, tagline) to admin panel 2026-06-28 23:21:41 -05:00
muken abf46b9075 fix: image upload returns correct data structure for all editors 2026-06-28 23:18:27 -05:00
muken 6b0db0e3cf fix: change admin portal title to Hosteria La Huasca 2026-06-28 23:14:06 -05:00
muken 4d2c26d3af fix: admin data loading - extract data from API response 2026-06-28 23:12:07 -05:00
muken cac82e6d9d fix: admin panel save issues - POST/PUT URLs, users list, image upload 2026-06-28 23:01:13 -05:00
muken f99da73118 fix: login redirect, admin auth guard, JWT_SECRET env 2026-06-28 22:41:08 -05:00
muken 01ea9e391d Add language translation system and weather widget with admin controls 2026-06-28 15:35:02 -05:00
muken 295c024ced fix: image gallery organized with sections and borders, images now show correctly 2026-06-28 13:50:32 -05:00
muken e1b091b25d fix: admin menu fetch and add item — use /api/admin/menu endpoint, parse response.data correctly 2026-06-28 13:45:15 -05:00
muken 4b6e7f4362 feat: menu visibility toggle + drag-and-drop reorder in admin 2026-06-28 13:43:02 -05:00
muken 80c562b439 fix: TypeScript errors — cast style props, replace C.white with literal 2026-06-28 13:25:54 -05:00
muken e97e880695 feat: complete admin portal rewrite with API-connected sections and per-section image uploads 2026-06-28 10:45:47 -05:00
muken 6b13a35fbe Fix database export and admin page structure 2026-06-28 06:29:04 -05:00
muken 52f6668f02 Implement organized image upload functionality: Added category, room, and location target fields for image uploads 2026-06-27 21:12:07 -05:00
muken 69cb389ecf admin: close Image Gallery AccordionSection properly 2026-06-27 20:57:46 -05:00
muken 49bf370d41 Prod hardening and K8s drafts: auth fail-close, DB pool, init/schema split, prod init guard 2026-06-27 20:41:41 -05:00
muken 744830c3cd Add Social Events tab with reservations 2026-06-27 19:40:22 -05:00
muken 71ae322b3f feat(landscape): multi-photo gallery like rooms with uploads and ordering 2026-06-27 19:29:08 -05:00
muken cfd0c533a4 fix(admin): slideshow gallery image selection and preview 2026-06-27 19:26:38 -05:00
muken 4bffc27a5a feat(admin): color picker for calendar events 2026-06-27 19:25:48 -05:00
muken a11bd3ada8 feat: room photo gallery, featured photo, and comments moderation 2026-06-27 19:25:00 -05:00
muken 8394b60bc2 Add admin slideshow, horizontal animated calendar, and weather strip 2026-06-27 18:40:56 -05:00
muken 75da132327 Admin portal, public pages, footer, site config 2026-06-27 18:10:49 -05:00
muken 1148f7a72f Switch navbar to #001321, admin can update logo/favicon, logo links home 2026-06-27 16:44:17 -05:00
muken 8952bbf555 Apply La Huasca brand colors across layout, nav, login, admin, user and home 2026-06-27 16:42:34 -05:00