-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add widget.mount(), use it in demo, add branding to DOM #17
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
Conversation
const CLIENT_ID = process.env.CLIENT_ID; | ||
const CLIENT_SECRET = process.env.CLIENT_SECRET; | ||
const WORKSPACE_ID = process.env.WORKSPACE_ID; | ||
const ORGANIZATION_ID = process.env.ORGANIZATION_ID; |
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.
was not used
const CLIENT_SECRET = process.env.CLIENT_SECRET; | ||
const WORKSPACE_ID = process.env.WORKSPACE_ID; | ||
const ORGANIZATION_ID = process.env.ORGANIZATION_ID; | ||
const ALLOWED_ORIGIN = process.env.ALLOWED_ORIGIN || "http://localhost:3000"; |
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.
can be inferred!
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.
I couldn't hang with the very random TS that was going on in here. I've pulled out an named a number of functions and styles so this is more readable. That's the bulk of the changes here. Technically should have been a separate refactor PR probably.
closes https://github.com/airbytehq/airbyte-internal-issues/issues/12663
Adds Airbyte Embedded branding to the backdrop as seen in Figma
I also noticed while working on adding the branding that our docs say we should have a
widget.mount()
method that attaches it to the correct DOM element. We weren't using this, though. Now we are!Some of the commits in this history are from working on adding a
dev
project in here. I will split that into a separate PR, though.Last but not least: the updates to the lockfile is a fix from my last PR.
NOTE: there isn't a great way to run the widget locally to confirm these changes... which is why I also have a PR open to add a
dev
Nextjs app that makes that possible #16