Skip to content

Update UI with new design system, fonts, and interactive platform pills#4

Merged
pstaylor-patrick merged 4 commits into
mainfrom
baguette-mvp
Feb 9, 2026
Merged

Update UI with new design system, fonts, and interactive platform pills#4
pstaylor-patrick merged 4 commits into
mainfrom
baguette-mvp

Conversation

@pstaylor-patrick

@pstaylor-patrick pstaylor-patrick commented Feb 9, 2026

Copy link
Copy Markdown
Collaborator

related to #1

👋 TL;DR

Added a latency analytics dashboard with historical tracking, a metadata database using Drizzle ORM, and improved the UI with better visual design and platform comparison tools.

Screen Recording 2026-02-09 at 09 40 07-24fps-half high

🔎 Details

This PR introduces a comprehensive latency monitoring system that tracks database platform health over time. Key changes include:

  1. Metadata Database: Added Drizzle ORM with a latency_snapshots table to store historical health check data
  2. Cron Endpoint: Created /api/cron/latency for scheduled health checks (QStash compatible)
  3. Analytics Dashboard: New /api/analytics/latency endpoint and UI component with interactive charts and statistics
  4. UI Refresh: Updated design system with new color palette, typography (Inter/JetBrains Mono), and improved component styling
  5. Platform Comparison: Enhanced platform selection with pill-based UI, relative performance indicators, and "fastest" badges
  6. Database Management: Refactored scripts with db:reset:<target>, db:migrate:<target>, and db:seed:<target> commands
  7. SQL Syntax Highlighting: Added keyword highlighting in the query runner for better readability

New environment variables:

  • DATABASE_URL_METADATA: Connection string for analytics database
  • APP_ENVIRONMENT: Runtime environment (local/firebase)
  • CRON_SECRET: Authentication for cron endpoints

✅ How to Test

  1. Setup Metadata DB:

    • Add DATABASE_URL_METADATA to .env.local
    • Run npm run db:migrate:metadata to create tables
    • Run npm run db:studio to verify schema
  2. Test Health Checks:

    • Start all platforms: npm run db:up
    • Verify health: npm run db:verify:local etc.
    • Manually trigger cron: curl -X POST http://localhost:3002/api/cron/latency
  3. UI Testing:

    • Load dashboard and verify new pill-based platform selector
    • Check that "fastest" platform is correctly identified
    • Navigate to Analytics tab and filter by time range/environment
    • Verify SQL syntax highlighting in query runner
    • Test schema comparison between platforms
  4. Database Reset:

    • Test reset workflow: npm run db:reset:local
    • Verify confirmation prompt and proper cleanup/recreation
  5. Visual Regression:

    • Check new color scheme and typography
    • Verify responsive design on different screen sizes
    • Test all interactive states (hover, active, disabled)

🥜 GIF

lack-of-hustle

@pstaylor-patrick pstaylor-patrick marked this pull request as ready for review February 9, 2026 17:19
@pstaylor-patrick pstaylor-patrick merged commit d84baca into main Feb 9, 2026
6 checks passed
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