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

add cloud version #5198

Merged
merged 23 commits into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ crash.log
# Airflow Demo
resources/examples/airflow/logs/*
!resources/examples/airflow/logs/.gitkeep

# Cloud Demo
!airbyte-webapp/src/packages/cloud/data
20 changes: 13 additions & 7 deletions airbyte-webapp/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
module.exports = {
"stories": [
"../src/**/*.stories.@(ts|tsx)"
],
"addons": [
stories: ["../src/**/*.stories.@(ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
"storybook-addon-styled-component-theme/dist"
]
}
"storybook-addon-styled-component-theme/dist",
],
webpackFinal: (config) => {
config.resolve.modules.push(process.cwd() + "/node_modules");
config.resolve.modules.push(process.cwd() + "/src");

// this is needed for working w/ linked folders
config.resolve.symlinks = false;
return config;
},
};
15 changes: 12 additions & 3 deletions airbyte-webapp/.storybook/withProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { Router } from "react-router-dom";
import * as React from "react";
import { IntlProvider } from "react-intl";
import { createMemoryHistory } from "history";
import { ThemeProvider } from "styled-components";

import { Theme } from "../src/theme";
// TODO: theme was not working correctly so imported directly
import { theme, Theme } from "../src/theme";
import GlobalStyle from "../src/global-styles";
import messages from "../src/locales/en.json";

interface Props {
theme?: Theme;
Expand All @@ -16,11 +20,16 @@ interface Props {

class WithProviders extends React.Component<Props> {
render() {
const { theme, children } = this.props;
const { children } = this.props;

return (
<Router history={createMemoryHistory()}>
<ThemeProvider theme={theme}>{children}</ThemeProvider>
<IntlProvider messages={messages} locale={"en"}>
<ThemeProvider theme={theme}>
<GlobalStyle />
{children}
</ThemeProvider>
</IntlProvider>
</Router>
);
}
Expand Down