Skip to content

🪟 🎨 New stream details panel #19219

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

Merged
merged 67 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
44be48c
move all stream details table related components to separate folder;
dizel852 Nov 9, 2022
2857f77
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Nov 10, 2022
a1e130f
init a copy of existing <Table /> component - <NextTable />
dizel852 Nov 10, 2022
2683c52
fixed calc error
dizel852 Nov 11, 2022
4762ec6
first implementation of NextTable:
dizel852 Nov 11, 2022
e10558c
remove StreamDetailsHeader
dizel852 Nov 11, 2022
bab038c
updated StreamFieldsTable
dizel852 Nov 11, 2022
0c51fea
fix typings error
dizel852 Nov 14, 2022
26bdcfa
update NextTable cells classnames
dizel852 Nov 14, 2022
9b3d3f5
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Nov 14, 2022
55c503e
remove last styled component from NextTable
dizel852 Nov 14, 2022
79da2d7
add base tests for NextTable component
dizel852 Nov 14, 2022
adbfa7a
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Nov 14, 2022
ff7d723
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Nov 18, 2022
f809457
remove comments
dizel852 Nov 21, 2022
c86d71f
replace "any" type with "unknown" where possible
dizel852 Nov 21, 2022
bd1323e
add react-table v8 package
dizel852 Nov 22, 2022
977bb14
update NextTable component
dizel852 Nov 22, 2022
6822e57
update NextTable component
dizel852 Nov 22, 2022
9ebca26
extend react-table ColumnMeta interface
dizel852 Nov 22, 2022
259825d
update StreamFieldsTable component
dizel852 Nov 22, 2022
ae43af1
update NextTable tests
dizel852 Nov 22, 2022
0bb9d7a
update NextTable storybook
dizel852 Nov 22, 2022
79d1daf
fixed crashed StreamConnectionHeader during connection creation
dizel852 Nov 23, 2022
d47e61f
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Nov 23, 2022
f308517
replace useConnectionEditService with useConnectionFormService hook
dizel852 Nov 23, 2022
5e1db97
remove getIcon wrap function and combine all parts in separate component
dizel852 Nov 23, 2022
9d352ae
update styles
dizel852 Nov 23, 2022
bfbf327
extract common logic to separate function
dizel852 Nov 23, 2022
ff096a2
fix performance
dizel852 Nov 23, 2022
7441bd3
fix not capitalized table header cell
dizel852 Nov 23, 2022
e537f40
fix checkbox style issue
dizel852 Nov 23, 2022
24b9113
make thead sticky by default
dizel852 Nov 23, 2022
d2e3257
fix not scrollable table
dizel852 Nov 23, 2022
8844c22
fixed top bar overflow during scrolling table
dizel852 Nov 29, 2022
5c31048
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Nov 29, 2022
671a77a
fix top bar overflow during scrolling table - second try
dizel852 Nov 29, 2022
637668a
fix hidden cursor and pk columns
dizel852 Nov 29, 2022
a3be3cb
fix hidden cursor and pk columns
dizel852 Nov 29, 2022
55c9eab
fix PR comments: replace css values with variables
dizel852 Nov 30, 2022
c5f2349
remove unnecessary hook dependencies
dizel852 Nov 30, 2022
e404747
fix relative import component path
dizel852 Nov 30, 2022
a0b0566
add space around panel;
dizel852 Dec 1, 2022
ce62b2a
fix arrow color
dizel852 Dec 2, 2022
2a8fb82
align table padding with toggle
dizel852 Dec 2, 2022
73c328e
add ArrowRight icon from design
dizel852 Dec 3, 2022
9fbd654
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Dec 3, 2022
d7fedc2
move NextTable component to ui folder
dizel852 Dec 5, 2022
03f432c
move StreamDetailsPanel component to separate folder
dizel852 Dec 5, 2022
7c47f66
move StreamPanelHeader component to separate folder
dizel852 Dec 5, 2022
e9a3eed
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Dec 5, 2022
fcf34cc
remove obsolete DetailsPanel components
dizel852 Dec 5, 2022
1ca986e
move all DetailsPanel related components to separate folder
dizel852 Dec 5, 2022
6156c03
fix when no namespace
dizel852 Dec 5, 2022
1d5b6b1
fixed details panel header sync mode label
dizel852 Dec 5, 2022
3436402
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Dec 5, 2022
0c19aa8
fix relative import path
dizel852 Dec 7, 2022
80b1006
move react-table.d.ts to src/types
dizel852 Dec 7, 2022
4b98045
remove fake destination data type column
dizel852 Dec 7, 2022
6afc3db
add FormattedMessage to ConnectorHeaderGroupIcon
dizel852 Dec 7, 2022
decdf8c
fix StreamPanelHeader style to match Figma
dizel852 Dec 7, 2022
0106fe8
change td color from grey-100 to grey-50
dizel852 Dec 7, 2022
9ab40af
temporary remove @tanstack/react-table package
dizel852 Dec 7, 2022
cb6c52b
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Dec 7, 2022
567fa06
add @tanstack/react-table back to package.json
dizel852 Dec 7, 2022
ebae26e
fix cross icon color
dizel852 Dec 7, 2022
62c13e2
Merge branch 'master' into vlad/18242-new-streams-details-panel
dizel852 Dec 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 56 additions & 10 deletions airbyte-webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions airbyte-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@monaco-editor/react": "^4.4.5",
"@sentry/react": "^6.19.6",
"@sentry/tracing": "^6.19.6",
"@tanstack/react-table": "^8.5.30",
"@types/segment-analytics": "^0.0.34",
"classnames": "^2.3.1",
"dayjs": "^1.11.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ConnectionFormValues, SUPPORTED_MODES } from "views/Connection/Connecti

import styles from "./CatalogSection.module.scss";
import { CatalogTreeTableRow } from "./next/CatalogTreeTableRow";
import { StreamDetailsPanel } from "./next/StreamDetailsPanel";
import { StreamDetailsPanel } from "./next/StreamDetailsPanel/StreamDetailsPanel";
import { StreamFieldTable } from "./StreamFieldTable";
import { StreamHeader } from "./StreamHeader";
import { flatten, getPathType } from "./utils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { getIcon } from "utils/imageUtils";

import styles from "./StreamConnectionHeader.module.scss";

const renderIcon = (icon?: string): JSX.Element => <div className={styles.icon}>{getIcon(icon)}</div>;
export const renderIcon = (icon?: string): JSX.Element => <div className={styles.icon}>{getIcon(icon)}</div>;

export const StreamConnectionHeader: React.FC = () => {
const {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@use "scss/colors";
@use "scss/variables" as vars;
@use "scss/z-indices";

$container-left-space: vars.$spacing-xl;
$container-right-space: vars.$spacing-xl * 2;

.dialog {
z-index: z-indices.$modal;
}

.container {
position: fixed;
bottom: 0;
left: vars.$width-size-menu + $container-left-space;
width: calc(100% - (vars.$width-size-menu + $container-right-space));
z-index: 1000;
height: calc(100vh - 100px);
background: colors.$white;
border-radius: vars.$border-radius-2xl vars.$border-radius-2xl 0 0;
box-shadow: 0 0 22px rgba(colors.$dark-blue-900, 12%);
}

.tableContainer {
height: calc(100% - 64px);
overflow: scroll;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Dialog } from "@headlessui/react";
import React from "react";

import { Overlay } from "components/ui/Overlay";

import { AirbyteStream } from "core/request/AirbyteClient";

import { StreamConnectionHeader } from "./StreamConnectionHeader";
import styles from "./StreamDetailsPanel.module.scss";
import { StreamFieldsTable, StreamFieldsTableProps } from "./StreamFieldsTable";
import { StreamPanelHeader } from "./StreamPanelHeader";
import { StreamFieldsTable, StreamFieldsTableProps } from "./StreamFieldsTable/StreamFieldsTable";
import { StreamPanelHeader } from "./StreamPanelHeader/StreamPanelHeader";

interface StreamDetailsPanelProps extends StreamFieldsTableProps {
disabled?: boolean;
Expand Down Expand Up @@ -39,15 +39,16 @@ export const StreamDetailsPanel: React.FC<StreamDetailsPanelProps> = ({
onClose={onClose}
onSelectedChange={onSelectedChange}
/>
<StreamConnectionHeader />
<StreamFieldsTable
config={config}
syncSchemaFields={syncSchemaFields}
onCursorSelect={onCursorSelect}
onPkSelect={onPkSelect}
shouldDefinePk={shouldDefinePk}
shouldDefineCursor={shouldDefineCursor}
/>
<div className={styles.tableContainer}>
<StreamFieldsTable
config={config}
syncSchemaFields={syncSchemaFields}
onCursorSelect={onCursorSelect}
onPkSelect={onPkSelect}
shouldDefinePk={shouldDefinePk}
shouldDefineCursor={shouldDefineCursor}
/>
</div>
</Dialog.Panel>
</Dialog>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$connector-icon-size: 28px;

.connectorIconContainer {
display: flex;
flex-direction: row;
align-items: center;
gap: 10px;
}

.icon {
height: $connector-icon-size;
width: $connector-icon-size;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react";

import { getIcon } from "../../../../../../utils/imageUtils";
import styles from "./ConnectorHeaderGroupIcon.module.scss";

interface StreamHeaderGroupIconProps {
type: "source" | "destination";
icon?: string;
}

export const ConnectorHeaderGroupIcon: React.FC<StreamHeaderGroupIconProps> = ({ type, icon }) => {
return (
<span className={styles.connectorIconContainer}>
<div className={styles.icon}>{getIcon(icon)}</div>
{type === "source" ? "Source" : "Destination"}
</span>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
@use "scss/colors";
@use "scss/variables";

$cell-height: 28px;
$cell-left-padding: variables.$spacing-xl + variables.$spacing-sm;

.headerGroupCell {
height: 58px;
background-color: colors.$white;
color: colors.$dark-blue;
font-weight: 700;
font-size: 16px;
line-height: $cell-height;
text-transform: capitalize;

&:first-child {
padding-left: $cell-left-padding;
border-radius: 0;
}

&:last-child {
padding-left: 0;
}
}

.headerCell {
color: colors.$grey;
background-color: colors.$grey-50;
height: $cell-height;
font-weight: 400;
font-size: 12px;
line-height: 15px;
text-transform: capitalize;

&:first-child {
padding-left: $cell-left-padding;
border-radius: 0;
}

&:last-child {
padding-left: 0;
border-radius: 0;
}
}

%bodyCell {
height: $cell-height;
padding: 0;

&:first-child {
padding-left: $cell-left-padding;
border-radius: 0;
}
}

.textCell {
@extend %bodyCell;

color: colors.$dark-blue;
}

.dataTypeCell {
@extend %bodyCell;

color: colors.$grey-400;
}

.arrowCell {
@extend %bodyCell;

svg {
color: colors.$grey-200;
}
}

.checkboxCell {
display: flex;
align-items: center;
height: $cell-height;
overflow: unset;
padding-left: 0;
}

// need to fix styled-component z-index issue
.checkbox {
position: unset !important;
}
Loading