-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add Playroom integration #4576
base: master
Are you sure you want to change the base?
Add Playroom integration #4576
Conversation
Size Change: +1 B (0%) Total Size: 459 kB
ℹ️ View Unchanged
|
Deploying orbit with Cloudflare Pages
|
ad98184
to
fd6ec03
Compare
fd6ec03
to
9f11c38
Compare
c48324a
to
07f47d4
Compare
b97c88c
to
9c8f970
Compare
Storybook staging is available at https://kiwicom-orbit-devin-1736720770-playroom-setup.surge.sh |
51911da
to
d9f8770
Compare
d9f8770
to
96b3710
Compare
96b3710
to
956ef68
Compare
const FrameComponent = ({ children }) => { | ||
return ( | ||
<OrbitProvider theme={defaultTheme} useId={React.useId}> | ||
<div id="playroom-frame" dir="ltr"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like playroom-frame
is not used anywhere. Is it necessary to specify the id
and dir
attributes here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dir
yes. Some components rely on it. The id is just a good practice. Doesn't harm to keep. It helps with DOM debug.
Co-Authored-By: [email protected] <[email protected]>
The code now exposes the provider and a wrapper div, also allowing for more customization
It was not behaving as expected. To be fixed later
956ef68
to
453b519
Compare
Storybook staging is available at https://kiwicom-orbit-devin-1736720770-playroom-setup.surge.sh Playroom staging is available at https://kiwicom-orbit-devin-1736720770-playroom-setup.surge.sh/playroom |
453b519
to
9935cac
Compare
@@ -9,7 +9,7 @@ import ReadArt from "../../images/streamline-light/read-art.svg"; | |||
import IrisScanIcon from "../../images/streamline-light/iris-scan.svg"; | |||
import ScriptIcon from "../../images/streamline-light/script.svg"; | |||
|
|||
type Link = "Components" | "Guides" | "Tokens" | "Accessibility" | "Foundation" | "Playground"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we remove the playground logic? If so, will it be part of a different task?
In case we want to create a ticket.
baseUrl: "/playroom/", | ||
webpackConfig: () => ({ | ||
resolve: { | ||
extensions: [".js", ".jsx", ".ts", ".tsx", ".css"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need .js* extensions?
], | ||
}, | ||
{ | ||
test: /\.(js|jsx|ts|tsx)$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, do you know if there is any possibility of customizing the Playroom UI a little bit? Adding an orbit header, palette, etc.
Not critical of course.
}, | ||
}), | ||
reactDocgenTypescriptConfig: { | ||
// TODO: Disabling prop intellisense until we can fix the issue with correctly getting the props |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we created a ticket about this?
Kudos to all of you involved! 🙌 |
Add Playroom Integration
This PR adds Playroom integration to Orbit components. The setup includes:
Changes
Testing
Link to Devin run: https://app.devin.ai/sessions/7f5abe9df1824beb8cc2f5a28fab8529