feat: add CapabilityStatus component (0.9.0)#4
Merged
Conversation
Add a generic presentational status row for reporting runtime capability availability on admin status pages. Renders a green check when available and a red warning when not, mirroring the look of HealthStatus and reusing the Card + Tooltip primitives. An optional `hint` is surfaced as a tooltip (intended for the unavailable case, e.g. a remediation pointer). This is the ui half of the cross-repo HEIC-support-status feature; the nextjs-app-layer status page will render one row per configured capability. Part of OpenElementsLabs/nextjs-app-layer#6 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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 generic, presentational
CapabilityStatuscomponent: a status row that reports whether a runtime capability is available. Green check + text when available; red warning + text when not, with an optionalhintsurfaced as a tooltip (intended for the unavailable case — e.g. a remediation pointer). Mirrors the look ofHealthStatusand reuses the existingCard+Tooltipprimitives.This is the ui half of the cross-repo HEIC-support-status feature (open-crm spec
112-heic-support-status). The consumer (@open-elements/nextjs-app-layer) will render one row per configured capability on the/admin/statuspage.API
The component is fully app-agnostic — all display strings are passed in by the consumer, keeping it reusable for future capabilities (WebP, PDF rendering, …).
Changes
src/components/capability-status.tsx("use client", brand colors--color-oe-green/--color-oe-red).CapabilityStatus+CapabilityStatusPropsfromsrc/index.ts.0.8.0→0.9.0.Test coverage
typecheck/lint/format:check/buildall pass locally.Follow-up
Once merged and published to npm as
@open-elements/ui@0.9.0, the pairednextjs-app-layerPR (capabilities option oncreateServerStatusPage) can bump to it and go green.Part of OpenElementsLabs/nextjs-app-layer#6
🤖 Generated with Claude Code