Skip to content

Add developer tools page and API status page#837

Draft
anth-volk wants to merge 8 commits intomainfrom
feat/api-v1-status-page
Draft

Add developer tools page and API status page#837
anth-volk wants to merge 8 commits intomainfrom
feat/api-v1-status-page

Conversation

@anth-volk
Copy link
Collaborator

Fixes #836

Summary

  • Adds "Developer tools" link to the site footer
  • Creates /dev-tools landing page with card grid linking to API status
  • Creates /dev-tools/api-status page with aggregate status banner, per-service 90-day uptime bars, and uptime percentages
  • Adds Vercel serverless function at /api/betterstack to proxy BetterStack Uptime API
  • Adds /api/:path* rewrite before the SPA catch-all in vercel.json

Test plan

  • Verify Vercel preview deploy serves /api/betterstack correctly (returns JSON, not HTML)
  • Verify status page loads with live BetterStack data
  • Verify aggregate banner reflects correct status
  • Verify 90-day uptime bars render with correct day colors
  • Verify footer link navigates to developer tools page
  • Verify developer tools card links to API status page

🤖 Generated with Claude Code

anth-volk and others added 2 commits March 12, 2026 00:56
…tion

- Add "Developer tools" link to footer
- Create /dev-tools page with card grid linking to developer resources
- Create /dev-tools/api-status page with 90-day uptime visualization
- Add Vercel serverless function to proxy BetterStack Uptime API
- Aggregate status banner, per-monitor uptime bars, and status legend
- Per-day bar color: green (no outage), yellow (≤1hr), red (>1hr)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add /api/:path* rewrite before the SPA catch-all in vercel.json so
serverless functions are routed correctly. Remove unused mock data
and fallback logic from the status page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-app-v2 Ready Ready Preview, Comment Mar 14, 2026 0:02am
policyengine-calculator Ready Ready Preview, Comment Mar 14, 2026 0:02am

Request Review

Vercel detects serverless functions from the api/ directory at the
project root, not from app/api/. This was causing /api/betterstack
to return the SPA HTML instead of executing the function.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace discrete color buckets with Atlassian-style continuous gradient.
Server returns downtimeMinutes per day, client interpolates across
green→yellow→orange→red color stops based on outage duration.
Legend updated to show gradient bar.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Gradient now jumps to yellow for any non-zero downtime, then
interpolates yellow→orange→red over 0-60 minutes. Replaced native
title attributes with positioned hovercards showing formatted date,
status dot with label, and downtime duration. Hovercard styling
matches the existing chart tooltip pattern (TOOLTIP_STYLE).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@anth-volk
Copy link
Collaborator Author

Holding off on this PR to await NextJS migration changes

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.

Add API status page

1 participant