Skip to content

Add SkeletonField component with context provider and Storybook stories#2176

Merged
rSnapkoOpenOps merged 3 commits intomainfrom
feat/add-skeleton-field-wrapper
Mar 27, 2026
Merged

Add SkeletonField component with context provider and Storybook stories#2176
rSnapkoOpenOps merged 3 commits intomainfrom
feat/add-skeleton-field-wrapper

Conversation

@rSnapkoOpenOps
Copy link
Copy Markdown
Collaborator

Fixes OPS-4009

@linear
Copy link
Copy Markdown

linear bot commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 SkeletonField and SkeletonFieldProvider/useSkeletonField context.
  • 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.

@rSnapkoOpenOps rSnapkoOpenOps marked this pull request as ready for review March 27, 2026 08:39
@sonarqubecloud
Copy link
Copy Markdown

@rSnapkoOpenOps rSnapkoOpenOps merged commit 368af90 into main Mar 27, 2026
25 checks passed
@rSnapkoOpenOps rSnapkoOpenOps deleted the feat/add-skeleton-field-wrapper branch March 27, 2026 09:05
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.

3 participants