Repository navigation
Add UptimeBar component for service health visualization - #127
Merged
Merged
Conversation
…) with Storybook stories Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AjwCRc9SvoEkGtg8Kd1Bdv
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
UptimeBarcomponent for displaying service uptime history as a status-page style bar chart. One tick per period (typically a day), colored by status (operational, degraded, outage, maintenance, or no-data), with tooltips showing date, status, uptime percentage, and incident details.Changes
New component:
UptimeBarinsrc/components/ui/uptime-bar/Exports:
UptimeBar,calculateUptimePercentage(), type definitions, and variant utilitiesStorybook stories: Comprehensive examples including default, legend, all-operational, monitoring recently started, sizes, shapes, status page layout, custom formatting, and clickable periods
Updated exports: Added to
src/components/ui/index.tsunder the "Charts & Graphs" sectionVersion bump: 0.111.0 → 0.112.0
Implementation Details
class-variance-authorityfor size and shape variantsTooltipcomponent for period detailsperiodUptime()across all non-"no-data" periodshttps://claude.ai/code/session_01AjwCRc9SvoEkGtg8Kd1Bdv