Skip to content

Improve incidents UI with browsing pages and date formatting - #48

Merged
jasoncrawford merged 2 commits into
mainfrom
feature/incidents-ui-improvements
Feb 23, 2026
Merged

jasoncrawford merged 2 commits into
mainfrom
feature/incidents-ui-improvements

Conversation

@jasoncrawford

Copy link
Copy Markdown
Collaborator

Summary

  • Always show an "Open Incidents" section on the main page — displays a green checkmark "No open incidents" card when none exist, with a "View all incidents →" link to /incidents
  • New /incidents page lists all incidents across all sites (open first, then resolved), with site names, status badges, and smart date+time formatting
  • Site detail page now shows at most 3 incidents, with a "View all incidents →" link to /sites/[id]/incidents when more exist
  • New /sites/[id]/incidents page shows the full incident history for a single site
  • New formatIncidentRange() helper for smart date+time display: ongoing (Feb 19 5:30pm – ongoing), same-day resolved (Feb 19 5:30pm–5:53pm), or cross-day (Feb 19 5:30pm – Feb 20 10:15am)

Closes #47

Test plan

  • Visit / with no open incidents → see green checkmark "No open incidents" card + "View all incidents" link
  • Visit / with open incidents → see them listed + "View all incidents" link
  • Click "View all incidents" → /incidents shows all incidents across sites with site names and date ranges
  • Visit /sites/[id] → see at most 3 incidents; "View all incidents" link appears if >3
  • Click site "View all incidents" → /sites/[id]/incidents shows full list for that site
  • Verify date formatting: same-day omits end date, cross-day shows both, open shows "ongoing"

🤖 Generated with Claude Code

…ting

- Add formatIncidentRange() for smart date+time display (ongoing, same-day, cross-day)
- Show "No open incidents" card with green checkmark on main page when none exist
- Add "View all incidents" link on main page pointing to /incidents
- Create /incidents page listing all incidents across all sites
- Limit site detail page to 3 incidents with "View all" link to /sites/[id]/incidents
- Create /sites/[id]/incidents page for full site-scoped incident list

Closes #47

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

vercel Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
site-status Ready Ready Preview, Comment Feb 23, 2026 2:05am

Request Review

@supabase

supabase Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

Updates to Preview Branch (feature/incidents-ui-improvements) ↗︎

Deployments Status Updated
Database ✅ Mon, 23 Feb 2026 02:05:06 UTC
Services ✅ Mon, 23 Feb 2026 02:05:06 UTC
APIs ✅ Mon, 23 Feb 2026 02:05:06 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations ✅ Mon, 23 Feb 2026 02:05:08 UTC
Migrations ✅ Mon, 23 Feb 2026 02:05:08 UTC
Seeding ✅ Mon, 23 Feb 2026 02:05:09 UTC
Edge Functions ✅ Mon, 23 Feb 2026 02:05:09 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

The heading is now always shown with a "No open incidents" message
when none exist, so update the assertion accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jasoncrawford
jasoncrawford merged commit bd39e21 into main Feb 23, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 21cb2068 Deployed Feb 23, 2026 by vercel[bot]
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.

Incidents UI

1 participant