Skip to content

Commit 42e26c8

Browse files
Productionize the export step: add lots of nice styling, bells and whistles, etc.
Render each export(able|ed) query/table in a Splitgraph embed, with a tabbed conainer for switching to a Seafowl embed when it's ready, i.e. show each table/query individually, inline with its loading state.
1 parent afcfff3 commit 42e26c8

8 files changed

Lines changed: 388 additions & 81 deletions

File tree

examples/nextjs-import-airbyte-github-export-seafowl/components/ImportExportStepper/ChartsPanel.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ export const ChartsPanel = () => {
4040
</a>
4141
.
4242
</StepDescription>
43-
<Charts
44-
importedRepository={{
45-
githubNamespace,
46-
githubRepository,
47-
splitgraphNamespace,
48-
splitgraphRepository,
49-
}}
50-
/>
43+
{stepStatus === "active" && (
44+
<Charts
45+
importedRepository={{
46+
githubNamespace,
47+
githubRepository,
48+
splitgraphNamespace,
49+
splitgraphRepository,
50+
}}
51+
/>
52+
)}
5153
</div>
5254
);
5355
};
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
.embeddedQuery {
2+
border-left: 4px solid var(--muted);
3+
padding-left: 10px;
4+
margin-bottom: 2rem;
5+
}
6+
7+
.topBar {
8+
display: flex;
9+
flex-direction: row;
10+
justify-content: space-between;
11+
align-items: center;
12+
margin-bottom: 8px;
13+
}
14+
15+
.consoleFlavorButtonsAndLoadingBar {
16+
display: inline-flex;
17+
flex-direction: row;
18+
}
19+
20+
.embeddedQuery iframe {
21+
width: 100%;
22+
}
23+
24+
.heading {
25+
font-size: 1.5rem;
26+
font-weight: bold;
27+
display: inline-flex;
28+
align-items: center;
29+
padding-top: 10px;
30+
padding-bottom: 10px;
31+
}
32+
33+
.embedControls {
34+
background: inherit;
35+
}
36+
37+
.openInConsoleLink {
38+
display: inline-flex;
39+
align-items: center;
40+
font-size: small;
41+
}
42+
43+
.openInConsoleLink svg {
44+
margin-right: 4px;
45+
}

examples/nextjs-import-airbyte-github-export-seafowl/components/ImportExportStepper/ExportPanel.module.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
text-decoration: none;
2323
font-weight: bold;
2424
border-style: none;
25+
margin-bottom: 1rem;
26+
}
27+
28+
.startExportButtonLoading {
29+
/* color: var(--muted); */
30+
/* background-color: transparent; */
31+
opacity: 0.5;
2532
}
2633

2734
.startExportButton:hover {
@@ -36,3 +43,17 @@
3643
.exportInfo p {
3744
margin-bottom: 1rem;
3845
}
46+
47+
.exportPreviewHeading {
48+
margin-bottom: 0;
49+
}
50+
51+
.exportPreviewDescription {
52+
margin-bottom: 1rem;
53+
}
54+
55+
.exportNote {
56+
font-size: small;
57+
/* color: red !important; */
58+
display: block;
59+
}

0 commit comments

Comments
 (0)