Skip to content

feat(react-native): add select-story-sync channel endpoint#860

Merged
dannyhw merged 15 commits into
nextfrom
dannyhw/feat/select-story-sync-endpoint
Mar 7, 2026
Merged

feat(react-native): add select-story-sync channel endpoint#860
dannyhw merged 15 commits into
nextfrom
dannyhw/feat/select-story-sync-endpoint

Conversation

@dannyhw

@dannyhw dannyhw commented Mar 3, 2026

Copy link
Copy Markdown
Member

10.3.0-canary-20260305205402

Summary

  • add POST /select-story-sync/:storyId to the React Native channel server and extract the implementation into selectStorySyncEndpoint.ts
  • wait for a matching storyRendered event before returning success, with a 500ms fast-path for already-rendered stories and a 1000ms timeout otherwise
  • track rendered state per connected socket so disconnected clients cannot cause false-positive sync responses
  • add channel server integration tests covering success, already-rendered, timeout, and disconnect/reconnect cases
  • switch the Expo Maestro screenshot flows from repeated deep links to channel-server-driven story selection via select-story-sync
  • add generated Maestro capture/assert flows and move the checked-in screenshot baselines under .maestro/output/screenshots
  • update buildIndex to respect explicit story.id values so generated Maestro story IDs match the actual story index
  • document the new endpoint in the example channel server script output and scope LogBox suppression to screenshot runs only
  • refresh the Storybook alpha dependency set used by the example and workspace packages

Testing

  • pnpm --filter @storybook/react-native test -- channelServer.test.ts
  • pnpm --filter expo-example check

@changeset-bot

changeset-bot Bot commented Mar 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 61b2e5c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@storybook/react-native Patch
@storybook/react-native-ui Patch
@storybook/react-native-ui-lite Patch
@storybook/react-native-ui-common Patch
@storybook/react-native-theming Patch
@storybook/addon-ondevice-actions Patch
@storybook/addon-ondevice-backgrounds Patch
@storybook/addon-ondevice-controls Patch
@storybook/addon-ondevice-notes Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dannyhw dannyhw merged commit 794f4f0 into next Mar 7, 2026
1 check passed
@dannyhw dannyhw deleted the dannyhw/feat/select-story-sync-endpoint branch June 6, 2026 22:36
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.

1 participant