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

Blocks: Story stories #19805

Merged
merged 8 commits into from
Nov 16, 2022
Merged

Blocks: Story stories #19805

merged 8 commits into from
Nov 16, 2022

Conversation

JReinhold
Copy link
Contributor

@JReinhold JReinhold commented Nov 11, 2022

Telescoping on top of #19804

This PR adds stories for the Story block, by using the Boolean Control as an example - therefore also adding a few stories to that one.

A major find from this work is that the Story block doesn't actually support overriding any annotations with props, like parameters or args - even though the typings says it does. This is an ommision that will be fixed in another PR.

@JReinhold JReinhold marked this pull request as draft November 11, 2022 14:38
@JReinhold JReinhold added the maintenance User-facing maintenance tasks label Nov 11, 2022
@JReinhold JReinhold marked this pull request as ready for review November 11, 2022 15:00
@JReinhold JReinhold requested review from shilman and tmeasday and removed request for shilman November 11, 2022 15:10
@JReinhold JReinhold self-assigned this Nov 11, 2022
@JReinhold JReinhold requested a review from shilman November 11, 2022 15:10
@JReinhold JReinhold marked this pull request as draft November 11, 2022 15:12
@JReinhold JReinhold marked this pull request as ready for review November 11, 2022 20:23
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

Nice job

code/ui/blocks/src/blocks/Story.stories.tsx Outdated Show resolved Hide resolved
Comment on lines +96 to +98
// TODO: types suggest that <Story /> can take ProjectAnnotations, but it doesn't seem to do anything with them
// Such as parameters, decorators, etc.
// they seem to be taken from the story itself, and not from the <Story /> call
Copy link
Member

Choose a reason for hiding this comment

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

Probably for portable docs, and wouldn't apply in non-external. We should probably talk this through.

@JReinhold JReinhold changed the title Blocks: Stories for Story block Blocks: Story stories Nov 15, 2022
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"module": "esnext",
Copy link
Contributor Author

@JReinhold JReinhold Nov 16, 2022

Choose a reason for hiding this comment

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

@ndelangen I changed this so TS wouldn't complain that I was referencing import.meta.env, do you know if changing this will break something somewhere else? Or does tsup ignore this?

Copy link
Member

Choose a reason for hiding this comment

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

is completely ignored 👍

Base automatically changed from jeppe/sb-898-blocks-canvas to next November 16, 2022 13:45
@JReinhold JReinhold merged commit 2d815dc into next Nov 16, 2022
@JReinhold JReinhold deleted the jeppe/sb-898-blocks-story branch November 16, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants