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

fix(network): string type in node/linkComponent #1078

Merged
merged 3 commits into from
Feb 24, 2021

Conversation

jraymakers
Copy link
Contributor

@jraymakers jraymakers commented Feb 21, 2021

Fixes #939

💥 Breaking Changes

  • This changes the type signature of a public-facing prop, so it might be considered a breaking change. However, the type option that's being removed was broken anyway, so this doesn't break any functionality.

📝 Documentation

🐛 Bug Fix

@jraymakers
Copy link
Contributor Author

jraymakers commented Feb 22, 2021

I can't tell why Happo failed, because I can't follow the Detail link. (It says, "Sign in with your airbnb.com account to view this page.") But, it seems likely it's detecting the changes I made (intentionally) to the network gallery page.

@williaster
Copy link
Collaborator

williaster commented Feb 24, 2021

Hey @jraymakers sorry for the delay, thanks for the fix! I agree this shouldn't be considered breaking since it was broken :)

We recently added happo and there are a couple of demos that are flaky, apologies for making you think you did something wrong and that you can't access the report. This is what it's reporting for your change:

image

It's a pretty big change aesthetically, I'm wondering if we could update the logic such that a single link is changed and a single node is changed. This would demonstrate the customizability and keep the aesthetics similar to before. It'd also be great to shift the bottom rectangle up to be visible in the gallery tile since it's clipped with the new y-offset.

@williaster williaster added this to the 1.6.0 milestone Feb 24, 2021
@jraymakers
Copy link
Contributor Author

Sure, that makes sense. I'll make the customizations more subtle.

@jraymakers
Copy link
Contributor Author

@williaster I changed the example to just have one custom node and one custom link, and used styling that should fit in better with the defaults and the other gallery tiles. I also fixed the clipping issue.

As an added bonus, the example now shows how to use custom node and link types with this generic component.

Copy link
Collaborator

@williaster williaster left a comment

Choose a reason for hiding this comment

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

@jraymakers amazing, it looks great! thanks for being open to iterating on styles 😄

image

Heads up I'm working on automating releases, I think this could be a good candidate for testing but it may take me a couple days to get it right.

@github-actions
Copy link

🎉 This PR is included in version v1.6.1-alpha.5 of the packages modified 🎉

@github-actions
Copy link

🎉 This PR is included in version v1.6.1-alpha.6 of the packages modified 🎉

@github-actions
Copy link

🎉 This PR is included in version v1.6.1-alpha.7 of the packages modified 🎉

@github-actions
Copy link

🎉 This PR is included in version v1.6.1-alpha.8 of the packages modified 🎉

@github-actions
Copy link

🎉 This PR is included in version v1.6.1-alpha.9 of the packages modified 🎉

@github-actions
Copy link

github-actions bot commented Mar 1, 2021

🎉 This PR is included in version v1.6.1-alpha.10 of the packages modified 🎉

@github-actions
Copy link

github-actions bot commented Mar 1, 2021

🎉 This PR is included in version v1.6.1-alpha.11 of the packages modified 🎉

@github-actions
Copy link

github-actions bot commented Mar 1, 2021

🎉 This PR is included in version v1.6.1-alpha.12 of the packages modified 🎉

@williaster williaster removed this from the 1.6.0 milestone Mar 8, 2021
@github-actions
Copy link

github-actions bot commented Mar 8, 2021

🎉 This PR is included in version v1.6.1 of the packages modified 🎉

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.

bug(network): string type is invalid for node/linkComponent
2 participants