Skip to content

CSF 3 view#3196

Merged
ktabors merged 8 commits intomainfrom
csf3_view
Jun 9, 2022
Merged

CSF 3 view#3196
ktabors merged 8 commits intomainfrom
csf3_view

Conversation

@ktabors
Copy link
Copy Markdown
Collaborator

@ktabors ktabors commented Jun 7, 2022

Part of the Storybook CSF 3.0 migration in issue 3056.

Didn't see the need to add any controls to this.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Kept the existing two view stories.
The second one has a couple auto-generated controls

🧢 Your Project:

RSP

@ktabors ktabors added the small review Easy to review PR label Jun 7, 2022
@adobe-bot
Copy link
Copy Markdown

export default meta;

export const NameMe: ViewStory = {
render: () => (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we can probably completely get rid of all stories for view and only have chromatic ones, if we want to keep any View ones, we can add some controls

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

How I would do your suggestion is to move both stories over to chromatic and not have any storybook stories. These two stories seemed to test passing in cacl() and special strings for width.

I looked at all the props and there were a ton that were mostly formatting related, I didn't want to do argTypes on that many. It seemed like a lot of work for not much return. I could see creating a single story with a number of these props and have Storybook autogenerate controls.

@ktabors ktabors changed the title CSF 3.0. view CSF 3 view Jun 7, 2022
@adobe-bot
Copy link
Copy Markdown

@adobe-bot
Copy link
Copy Markdown

}
};

export const OneOfEachPropGroup: ViewStory = {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I added this story because it touches at least one prop from every group. It's the result of me thinking about what a story with controls might look like.

Co-authored-by: Robert Snow <rsnow@adobe.com>
@adobe-bot
Copy link
Copy Markdown

@adobe-bot
Copy link
Copy Markdown

@ktabors ktabors merged commit 910c933 into main Jun 9, 2022
@ktabors ktabors deleted the csf3_view branch June 9, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small review Easy to review PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants