Skip to content

πŸ‡±πŸ‡° Customize RouteIQ for Sri Lanka β€” Colombo routes + unified SaaS color system - #2

Merged
arena-ai-coding-agent[bot] merged 2 commits into
mainfrom
arena/019f9a53-routeiq
Jul 25, 2026
Merged

arena-ai-coding-agent[bot] merged 2 commits into
mainfrom
arena/019f9a53-routeiq

Conversation

@arena-ai-coding-agent

Copy link
Copy Markdown
Contributor

Summary

This PR customizes RouteIQ for Sri Lanka with Colombo as the central transit hub, and unifies the entire UI into a professional blue-based SaaS color system.


πŸ‡±πŸ‡° Sri Lanka / Colombo Localization

Routes & Map

  • 4 expressway corridor polylines on the live Leaflet map:
    • πŸ”΅ Colombo β†’ Kandy (A1 Highway)
    • 🟣 Colombo β†’ Galle (E01 Southern Expressway)
    • 🟒 Colombo β†’ Negombo (A3 Airport Road)
    • 🟑 Colombo β†’ Matara (Southern Coastal)
  • 13 real bus stops with accurate GPS coordinates (Fort, Pettah, Kadawatha, Wellawatte, Panadura, Kalutara, Galle, Matara, Ja-Ela, Katunayake Airport, Negombo, Mawanella, Kandy)
  • Route legend overlay on the map for corridor identification

Seed Data (backend/seeds/colomboRoutes.js)

  • 8 real Colombo transit routes with accurate distances, durations, and LKR fares
  • 12 sample buses with Sri Lankan registration numbers (WP-CA-1001, SP-GA-1501, etc.)
  • Sri Lankan driver names and +94 contact numbers
  • Run with: npm run seed:colombo

UI Updates

  • Hero trending destinations β†’ Kandy, Galle, Negombo, Nuwara Eliya, Jaffna, Matara
  • Hero deals section β†’ Colombo β†’ Kandy route
  • AddBusForm β†’ Default GPS coordinates to Colombo (6.9271, 79.8612), placeholder WP-CA-1001
  • CustomerBooking β†’ Placeholders updated to Colombo Fort / Kandy
  • Contact β†’ Phone +94 11 234 5678, Head Office "Colombo 01, Sri Lanka"
  • Footer β†’ RouteIQ Sri Lanka branding

Backend

  • Haversine test updated to Colombo Fort β†’ Kadawatha route
  • Server startup message references "RouteIQ Colombo"
  • npm run seed:colombo script added to package.json

🎨 Unified SaaS Color System

Replaced inconsistent color scheme (rose/lime/fuchsia scattered across pages) with a professional blue-based palette:

Role Color Usage
Primary blue-600 Buttons, CTAs, active states, map routes
Secondary violet-600 Accent gradients, secondary elements
Highlight cyan-400 Navbar brand, badges, active nav items
Success emerald-500 Live status dots, confirmations
Warning amber-500 Alerts, attention states
Error red-500 Delayed status, error messages
Neutral slate-* Backgrounds, text, cards, borders

Files Updated: 23 total

  • All components (Hero, Navbar, Footer, Contact, AddBusForm, BusMapPreview, etc.)
  • All pages (AdminDashboard, CustomerBooking, LiveTracking, MyBookings, etc.)
  • CSS file (index.css) β€” 30+ lime/green hex codes replaced with blue equivalents
  • UI primitives (button, badge)

Files Changed

README.md                                 | 22 +++-
backend/package.json                      |  3 +-
backend/seeds/colomboRoutes.js            | 163 ++++++++++++++++++++++ (NEW)
backend/server.js                         |  4 +-
backend/tests/api.test.js                 |  4 +-
frontend/src/components/AddBusForm.jsx    |  12 +-
frontend/src/components/AiChatbotModal.jsx|  12 +-
frontend/src/components/BusMapPreview.jsx |  86 ++++++++----
frontend/src/components/Contact.jsx       |  16 +-
frontend/src/components/DriverTrackingPanel.jsx | 6 +-
frontend/src/components/ErrorBoundary.jsx |  6 +-
frontend/src/components/Features.jsx      |  4 +-
frontend/src/components/Footer.jsx        |  8 +-
frontend/src/components/Hero.jsx          |  34 ++---
frontend/src/components/LanguageSwitcher.jsx | 8 +-
frontend/src/components/LoginPage.jsx     |  12 +-
frontend/src/components/ui/badge.jsx      |  2 +-
frontend/src/components/ui/button.jsx     |  4 +-
frontend/src/index.css                    |  24 ++--
frontend/src/pages/Addbuses.jsx           |  12 +-
frontend/src/pages/AdminAllBookings.jsx   |  4 +-
frontend/src/pages/AdminDashboard.jsx     |  16 +-
frontend/src/pages/BusList.jsx            |  4 +-
frontend/src/pages/CustomerBooking.jsx    |  18 +--
frontend/src/pages/CustomerDashboard.jsx  |  18 +--
frontend/src/pages/LiveTracking.jsx       |  8 +-
frontend/src/pages/MyBookings.jsx         |  4 +-
frontend/src/pages/Navbar.jsx             |  20 +--

How to Test

  1. cd backend && npm install && npm run seed:colombo
  2. npm run dev (backend)
  3. cd frontend && npm install && npm run dev (frontend)
  4. Verify all pages use consistent blue palette
  5. Check live map shows 4 Colombo corridor routes with legend

Inkithai and others added 2 commits July 25, 2026 17:33
- Replace Indian cities (Mumbai, Delhi, Pune, Goa, etc.) with Sri Lankan destinations (Colombo, Kandy, Galle, Negombo, Matara, Jaffna, Nuwara Eliya)
- Add 4 Colombo expressway corridor polylines on map (A1 Kandy, E01 Galle, A3 Negombo, Southern Matara)
- Add 13 real Colombo-area bus stops with accurate GPS coordinates
- Add route legend overlay to BusMapPreview for corridor identification
- Update AddBusForm default coordinates from Delhi to Colombo (6.9271, 79.8612)
- Update Contact section: +94 phone, Colombo 01 head office
- Update Hero trending destinations and search placeholders to SL cities
- Update CustomerBooking placeholders to Colombo/Kandy
- Update Footer branding to RouteIQ Sri Lanka
- Create backend/seeds/colomboRoutes.js: 8 real routes + 12 buses with SL registration numbers (WP-CA, SP-GA, etc.)
- Add npm seed:colombo script
- Update backend tests (Haversine) to use Colombo→Kadawatha
- Update README with Sri Lanka customization section and seed instructions
- Update server.js startup message to reference Colombo

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Replace inconsistent color scheme (rose/lime/fuchsia scattered across pages)
with a professional, unified blue-based SaaS design system:

COLOR SYSTEM:
- Primary: Blue (blue-600/700) β€” buttons, CTAs, active states, brand
- Secondary: Violet (violet-600) β€” accent gradients, secondary elements
- Highlight: Cyan (cyan-400) β€” navbar active states, badges, brand text
- Success: Emerald β€” status indicators, confirmations
- Warning: Amber β€” alerts, attention states
- Error: Red β€” error states, delayed status
- Neutral: Slate β€” backgrounds, text, borders

FILES UPDATED (23 total):
- All 8 components (Hero, Navbar, Footer, Contact, AddBusForm, etc.)
- All 8 pages (AdminDashboard, CustomerBooking, LiveTracking, etc.)
- CSS file (index.css) β€” replaced all lime/green hex colors with blue equivalents
- UI components (button, badge)
- BusMapPreview β€” route polylines use distinct blue/indigo/green/amber
- Login/Signup pages β€” gradient backgrounds unified

LANDING PAGE CSS:
- Replaced 30+ lime/green hex codes (#84cc16, #b8f34b, etc.) with blue equivalents
- Updated rgba colors for glows, shadows, gradients
- Background tints changed from green to slate/blue

RESULT: Clean, professional SaaS appearance consistent with industry
leaders (Stripe, Linear, Vercel). No more color conflicts between pages.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@arena-ai-coding-agent
arena-ai-coding-agent Bot merged commit 65ed475 into main Jul 25, 2026
1 check passed
@arena-ai-coding-agent
arena-ai-coding-agent Bot deleted the arena/019f9a53-routeiq branch July 25, 2026 17:39
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