-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "🪟 🎨 Streams table design pass (#18908)"
This reverts commit a72deb1.
- Loading branch information
1 parent
9bf5dac
commit 721fec0
Showing
16 changed files
with
94 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
airbyte-webapp/src/components/connection/CatalogTree/CatalogTreeSearch.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
airbyte-webapp/src/components/connection/CatalogTree/next/CatalogTreeTableHeader.module.scss
This file was deleted.
Oops, something went wrong.
65 changes: 29 additions & 36 deletions
65
airbyte-webapp/src/components/connection/CatalogTree/next/CatalogTreeTableHeader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,70 @@ | ||
import React from "react"; | ||
import { FormattedMessage } from "react-intl"; | ||
|
||
import { Cell, Header } from "components/SimpleTableComponents"; | ||
import { CheckBox } from "components/ui/CheckBox"; | ||
import { Text } from "components/ui/Text"; | ||
import { InfoTooltip, TooltipLearnMoreLink } from "components/ui/Tooltip"; | ||
|
||
import { useBulkEditService } from "hooks/services/BulkEdit/BulkEditService"; | ||
import { useConnectionFormService } from "hooks/services/ConnectionForm/ConnectionFormService"; | ||
import { links } from "utils/links"; | ||
|
||
import styles from "./CatalogTreeTableHeader.module.scss"; | ||
|
||
const TextCell: React.FC<React.PropsWithChildren<{ flex?: number }>> = ({ flex, children }) => { | ||
return ( | ||
<Cell flex={flex}> | ||
<Text size="sm" className={styles.cellText}> | ||
{children} | ||
</Text> | ||
</Cell> | ||
); | ||
}; | ||
|
||
export const CatalogTreeTableHeader: React.FC = () => { | ||
const { mode } = useConnectionFormService(); | ||
const { onCheckAll, selectedBatchNodeIds, allChecked } = useBulkEditService(); | ||
|
||
return ( | ||
<Header className={styles.headerContainer}> | ||
<div className={styles.checkboxCell}> | ||
<Header> | ||
<Cell> | ||
{mode !== "readonly" && ( | ||
<CheckBox | ||
onChange={onCheckAll} | ||
indeterminate={selectedBatchNodeIds.length > 0 && !allChecked} | ||
checked={allChecked} | ||
/> | ||
)} | ||
</div> | ||
<TextCell flex={0.5}> | ||
</Cell> | ||
<Cell> | ||
<FormattedMessage id="sources.sync" /> | ||
</TextCell> | ||
{/* <TextCell> | ||
</Cell> | ||
<Cell> | ||
<FormattedMessage id="form.fields" /> | ||
</TextCell> */} | ||
<TextCell flex={1}> | ||
</Cell> | ||
<Cell> | ||
<FormattedMessage id="form.namespace" /> | ||
</TextCell> | ||
<TextCell flex={1}> | ||
</Cell> | ||
<Cell> | ||
<FormattedMessage id="form.streamName" /> | ||
</TextCell> | ||
<TextCell flex={2}> | ||
</Cell> | ||
<Cell> | ||
<FormattedMessage id="form.syncMode" /> | ||
<InfoTooltip> | ||
<FormattedMessage id="connectionForm.syncType.info" /> | ||
<TooltipLearnMoreLink url={links.syncModeLink} /> | ||
</InfoTooltip> | ||
</TextCell> | ||
<TextCell flex={1}> | ||
</Cell> | ||
<Cell> | ||
<FormattedMessage id="form.cursorField" /> | ||
<InfoTooltip> | ||
<FormattedMessage id="connectionForm.cursor.info" /> | ||
</InfoTooltip> | ||
</TextCell> | ||
<TextCell flex={1}> | ||
</Cell> | ||
<Cell> | ||
<FormattedMessage id="form.primaryKey" /> | ||
</TextCell> | ||
<div className={styles.arrowPlaceholder} /> | ||
<TextCell flex={1}> | ||
</Cell> | ||
<Cell /> | ||
<Cell> | ||
<FormattedMessage id="form.namespace" /> | ||
</TextCell> | ||
<TextCell flex={1}> | ||
</Cell> | ||
<Cell> | ||
<FormattedMessage id="form.streamName" /> | ||
</TextCell> | ||
</Cell> | ||
<Cell> | ||
<FormattedMessage id="form.syncMode" /> | ||
<InfoTooltip> | ||
<FormattedMessage id="connectionForm.syncType.info" /> | ||
<TooltipLearnMoreLink url={links.syncModeLink} /> | ||
</InfoTooltip> | ||
</Cell> | ||
</Header> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.