Add SkeletonField component with context provider and Storybook stories#2176
Merged
rSnapkoOpenOps merged 3 commits intomainfrom Mar 27, 2026
Merged
Add SkeletonField component with context provider and Storybook stories#2176rSnapkoOpenOps merged 3 commits intomainfrom
rSnapkoOpenOps merged 3 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new SkeletonField component to ui-components that can render either a skeleton placeholder or its children, with optional control via a context provider. This supports OPS-4009 by enabling consistent “loading field” placeholders that can be toggled globally via context or locally via props.
Changes:
- Introduces
SkeletonFieldandSkeletonFieldProvider/useSkeletonFieldcontext. - Adds a skeleton barrel export file under
components/skeleton/. - Adds Storybook stories (with play assertions) covering prop-based and context-based behavior.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| packages/ui-components/src/stories/skeleton/skeleton-field.stories.tsx | New Storybook stories and play assertions for SkeletonField prop/context behavior. |
| packages/ui-components/src/components/skeleton/skeleton-field.tsx | New SkeletonField component that switches between skeleton placeholder and children. |
| packages/ui-components/src/components/skeleton/skeleton-field-context.tsx | New context/provider to control skeleton visibility across multiple fields. |
| packages/ui-components/src/components/skeleton/index.ts | New barrel exports for the skeleton module. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
alexandrudanpop
approved these changes
Mar 27, 2026
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.



Fixes OPS-4009