CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

Refactor: Code splitting, SEO improvements, and contact form removal #3726

Merged⚡ AI-generatedXLccantynz wants to mergeclaude/audit-website-bookings-7zBvmmainopened Mar 11, 2026
ccantynzcommented Mar 11, 2026

Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/Hibiscus-to-airport/pull/21


Summary

This PR implements performance optimizations through code splitting, enhances SEO with structured data and meta tags, simplifies the contact section to focus on booking CTAs, and establishes a source-of-truth document for business details.

Key Changes

Performance & Architecture

  • Code splitting: Converted 40+ page and service components to lazy-loaded routes using React.lazy() and Suspense, keeping only HomePage and BookingPage eagerly loaded
  • Import path simplification: Updated jsconfig.json to use baseUrl: "src" instead of path aliases, reducing import complexity across 50+ UI component files
  • Dependency addition: Added react-helmet-async for server-safe SEO meta tag management

SEO Improvements

  • PageMeta component: Created reusable component for consistent title, description, canonical URL, and og: tag management
  • Structured data: Added FAQ schema (FAQPage with Question/Answer entities) to FAQ page
  • Meta tags: Enhanced index.html with og:image, og:image:width/height, og:image:alt for social sharing
  • Sitemap refresh: Updated all lastmod dates to 2026-03-10 and reorganized sections (removed Matakana destination pages, added Northern Towns section with Warkworth, Wellsford, Leigh, Omaha, Puhoi, Snells Beach)

UX & Content Changes

  • Contact section redesign: Removed contact form entirely; replaced with booking CTA button, phone link (021 743 321), and contact info cards (email, address, hours)
  • Booking focus: Simplified messaging from "Get In Touch" to "Ready to Book Your Ride?" with 24/7 availability emphasis
  • Image optimization: Added loading="lazy" to Fleet and Testimonials images for performance

Backend & Configuration

  • Stripe webhook security: Removed fallback unsigned webhook parsing; now requires STRIPE_WEBHOOK_SECRET to be set
  • Email configuration: Updated .env.example to clarify sender email is noreply@bookaride.co.nz
  • Documentation: Added CLAUDE.md as source-of-truth for business details (phone, emails, service area, tech stack, rules for AI sessions)

Page Updates

  • HomePage and BookingPage now include PageMeta component for SEO
  • FAQ page enhanced with structured data and improved meta tags

Implementation Notes

  • All lazy-loaded routes wrapped in Suspense (no fallback UI specified—consider adding loading state if needed)
  • Import path changes are mechanical and non-functional
  • Contact form removal is intentional; booking is now the primary conversion path
  • Sitemap reorganization reflects updated service area focus

https://claude.ai/code/session_01QC4cNbiLcqHXhN2MEfwb8N

ccantynzcommented Mar 11, 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 Ready Ready Preview, Comment Mar 11, 2026 1:56am
hibiscus-to-airport-crr3 Ready Ready Preview, Comment Mar 11, 2026 1:56am
hibiscus-to-airport1 Ready Ready Preview, Comment Mar 11, 2026 1:56am
hibiscus-to-airport2 Ready Ready Preview, Comment Mar 11, 2026 1:56am

Request Review

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
⮌ Merged

This pull request was merged into main.

c comment · e edit title · m merge · a approve · r request changes · ? shortcuts