Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DocsPage in v6 store #18763

Merged
merged 4 commits into from
Jul 26, 2022
Merged

Support DocsPage in v6 store #18763

merged 4 commits into from
Jul 26, 2022

Conversation

tmeasday
Copy link
Member

Telescoping on #18762

Issue: https://linear.app/chromaui/issue/SB-475/support-storystorev6

What I did

Implement DocsPage 2 in SSv6:

  1. Generate extra entries when converting SET_STORIES to an index in the manager
  2. Also generate extra internal entries in the client API facade, to pass to story store (and allow importing)

To discuss

We didn't yet talk about how story sorting (v6) will work with docs page. For now I just generate a "story like" object to pass to the sort function that'll have an appropriate name + title. There's no easy way to tell it is a docs entry though.

How to test

  • Is this testable with Jest or Chromatic screenshots?

Our tests in the manager are OK. We don't really have tests for the preview side -- I'm not quite sure how to think about SSv6. Probably as it's not something we focus on, tests are more important--I'll try and add some in an upcoming refactor of this area of the code.

To test in react-ts, turn off storyStoreV7 and remove the docs 2 stories entries.

@nx-cloud
Copy link

nx-cloud bot commented Jul 22, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 8dbe13c. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@tmeasday tmeasday force-pushed the tom/sb-475-support-storystorev6 branch 2 times, most recently from 9807793 to 8dbe13c Compare July 22, 2022 02:03
lib/api/src/lib/stories.ts Outdated Show resolved Hide resolved
Base automatically changed from tom/sb-505-info-remains-selected-when-changing to next July 26, 2022 04:16
@tmeasday tmeasday force-pushed the tom/sb-475-support-storystorev6 branch from 3d9ec15 to 23a2c7c Compare July 26, 2022 12:50
@tmeasday tmeasday merged commit 3db4db6 into next Jul 26, 2022
@tmeasday tmeasday deleted the tom/sb-475-support-storystorev6 branch July 26, 2022 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants