Skip to content

refactor(hotel): decompose monolithic HTML into Next.js component architecture#8

Open
GaneshAdimalupu wants to merge 2 commits into
FossHack-26:mainfrom
GaneshAdimalupu:main
Open

refactor(hotel): decompose monolithic HTML into Next.js component architecture#8
GaneshAdimalupu wants to merge 2 commits into
FossHack-26:mainfrom
GaneshAdimalupu:main

Conversation

@GaneshAdimalupu
Copy link
Copy Markdown
Member

What

Converts the standalone captainhotel.html (4,021 lines) into a modular
Next.js React component system, promoted to the app root (/).

Changes

Components

  • app/page.jsx — root orchestrator with HotelProvider + screen switcher
  • context/HotelContext.jsx — global state + OCaptain backend bridge
  • components/hotel/ReceptionScreen.jsx — check-in desk (tabs, forms, bell, guest dots)
  • components/hotel/HallwayScreen.jsx — door corridor with correct hall-header structure
  • components/hotel/DoorUnit.jsx — individual door card with mini-room preview
  • components/hotel/CreateDoorModal.jsx — custom room builder with live preview
  • components/hotel/RoomScreen.jsx — full immersive room with all furniture
  • components/hotel/Flash.jsx — screen transition overlay
  • lib/hotelData.js — room configs, palettes, quotes, previews

Notes

  • OCaptain bridge preserved for backend integration
  • client/public/captainhotel.html removed (superseded)
  • @/* alias used throughout, no relative imports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant