FleetOS Quick Start - Test What We Built

Fast track to testing the complete flow in 5 minutes.


⚑ Quick Setup (5 minutes)

1. Check Supabase Credentials

Open .env and verify these are filled:

VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key-here

Don't have Supabase yet?

  1. Go to https://supabase.com

  2. Click "Start your project"

  3. Create free project

  4. Go to Settings β†’ API

  5. Copy URL and anon key to .env


2. Run Database Migration

Option A: Via Supabase Dashboard (Recommended)

  1. Open https://app.supabase.com

  2. Go to SQL Editor

  3. Copy contents of database/fleetos/add-viral-tracking.sql

  4. Paste and click Run

  5. Should see: "Success. No rows returned"

Option B: Via Command Line


3. Create Test Supplier

Run this SQL in Supabase SQL Editor:


4. Start Dev Server

Opens at: http://localhost:5173


πŸ§ͺ Test Flow (2 minutes)

Test 1: Submit Request

  1. Open: http://localhost:5173/request/miami-tire-service

  2. Fill form:

    • Company: ABC Logistics

    • Phone: +13055559999

    • Vehicle: Truck #402

    • Location: 1200 Brickell Ave, Miami

    • Urgency: TODAY (yellow)

    • Description: Flat tire, need service today

  3. Click Submit

  4. βœ… Should see success page with tracking link

Test 2: View Pending Queue

  1. Go to: http://localhost:5173/fleetos

  2. Click Login

  3. Select Supplier β†’ Choose "Miami Tire & Service"

  4. βœ… Should see yellow Pending Fleet Requests section

  5. βœ… Request from ABC Logistics appears

Test 3: Accept with Note

  1. Click "βœ“ Add to Queue"

  2. Enter note: "We'll handle this today between 9-4 PM"

  3. Click Confirm

  4. βœ… Request moves to Today's Dispatch section

Test 4: Complete Status Flow

  1. In Today's Dispatch, click "βœ“ Accept & Start"

  2. βœ… Button changes to "βœ“ Mark Complete"

  3. Click "βœ“ Mark Complete"

  4. βœ… Shows green "βœ“ Completed" badge

DONE! You've tested the complete flow.


πŸ” Verify in Database

Quick check in Supabase SQL Editor:

Expected to see:

  • Your ABC Logistics request

  • Status: 'completed'

  • supplier_action_status: 'accepted_as_todo'

  • is_manual_todo: true

  • source_channel: 'web_form'


πŸ§ͺ Bonus Tests

Test Invite Flow

  1. Submit another request (different company)

  2. In Pending Queue, click "πŸ“§ Invite Fleet"

  3. Check database:

Test Decline Flow

  1. Submit another request

  2. Click "βœ— Decline"

  3. Enter reason: "Outside service area"

  4. Confirm

  5. Request disappears

Test Pre-population

Open: http://localhost:5173/request/miami-tire-service?fleet=PrepopCo&phone=+13055557777

  • Company and phone should be pre-filled and disabled


❌ Troubleshooting

"Cannot connect to Supabase"

  • Check .env has correct VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY

  • Restart dev server: Ctrl+C, then npm run dev

"Supplier not found"

  • Run the SQL from Step 3 again

  • Check spelling: 'test-supplier-001'

"Column does not exist"

  • Migration didn't run properly

  • Re-run the migration SQL from Step 2

Request doesn't appear in pending queue

  • Check browser console (F12) for errors

  • Verify supplier_id matches in database:


πŸ“Š What's Working Now

After testing, you have a working system:

βœ… Fleet Side:

  • Public request form (no login needed)

  • Success page with tracking link

  • Pre-population from invite links

βœ… Supplier Side:

  • Pending queue for unknown fleets

  • Accept with optional note

  • Invite fleet to FleetOS

  • Decline with reason

  • Today's Dispatch queue

  • Status workflow (accept β†’ complete)

  • Notifications (console logs)

βœ… Database:

  • All requests tracked

  • Magic link tokens generated

  • Status changes logged

  • Invite system working


πŸš€ What's Next

Choose your path:

Option A: Complete Phase 1

  • Build WhatsApp inbound webhook

  • Build Email inbound parsing

  • Build keyword routing (TIRES123)

Option B: Add Viral Mechanics

  • Implement 6 viral UX moments

  • Add Rβ‚€ tracking dashboard

  • A/B test CTA copy

Option C: Production Deploy

  • Set up real domain

  • Configure WhatsApp Business API

  • Deploy to production Supabase


Need help? Check TESTING_GUIDE.md for detailed instructions.

Last updated

Was this helpful?