Clean up backup files and consolidate database connection #3729
ccantynzcommented Feb 27, 2026
Originally written by @vercel[bot] on GitHub.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| hibiscus-to-airport | Preview, Comment | Feb 27, 2026 11:22pm | |
| hibiscus-to-airport-crr3 | Preview, Comment | Feb 27, 2026 11:22pm | |
| hibiscus-to-airport1 | Preview, Comment | Feb 27, 2026 11:22pm | |
| hibiscus-to-airport2 | Preview, Comment | Feb 27, 2026 11:22pm |
Cross-repo impact
See what breaks downstream if this PR merges.
⮌ Merged
This pull request was merged into main.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts
Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/Hibiscus-to-airport/pull/18
Summary
This PR removes numerous backup and temporary files that accumulated during development, consolidates the MongoDB connection into a single shared module, and makes minor improvements to environment configuration and component imports.
Key Changes
Cleanup & Organization:
.bak,.bak_*timestamps) from frontend and backendbackend_test.py,customer_booking_test.py,additional_test.py)BOOKARIDE_COMPLETE_HANDBOOK.md,ADMIN_LOGIN_FIX_GUIDE.md,DEPLOYMENT_STATUS.md, etc.).gitignoreto properly exclude environment filesDatabase Connection Consolidation:
backend/db.pymodule to provide a single shared MongoDB connection instancebackend/booking_routes.pyto importdbfrom the new module instead of creating its ownAsyncIOMotorClientbooking_routes.pymotor.motor_asyncioimportMinor Improvements:
format_date_nzto imports inbooking_routes.py.env.examplewith clearer environment variable documentationfrontend/tailwind.config.jswith gold and elegant-dark color definitionsAIChatbotcomponent import fromBookingPage.jsxImplementation Details
The database consolidation follows the singleton pattern—all routes now import the shared
dbinstance frombackend/db.py, preventing multiple MongoClient connections and improving resource efficiency. This is a non-breaking change that maintains the same API surface while improving internal architecture.https://claude.ai/code/session_01PyqnVrkpBzFz9BMiQfPP3t