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

Highlight removed and added streams in Connection form #13392

Merged
merged 14 commits into from
Jun 3, 2022

Conversation

teallarson
Copy link
Contributor

@teallarson teallarson commented Jun 1, 2022

What

Gives the user feedback on the Connection Replication view as to what streams will be enabled or disabled from their Sync upon saving their changes.

Also does some minor adjustments to spacing/sizing to match Figma more closely.

Screen Shot 2022-06-02 at 3 01 35 PM

Closes #13326

How

The CatalogTree now calculates values against initialValues on render and passes whether each stream's "enabled" state has changed to the stream's row in the table. The row uses that + whether or not it is enabled to render red/green and add the icon.

Also migrated these components to .scss. For now, some of the shared components exist in two forms: in some places using styled components and in some using .scss as I didn't want to dive into making unrelated changes in this PR.

Recommended reading order

  1. CatalogTree.tsx
  2. CatalogSection (.tsx and .module.scss)
  3. StreamHeader (.tsx and .module.scss)
  4. Other (added theme colors)

Notes for testing:
This feature is only turned on for editing (not creating) a connection. So you will need to create and save a connection, then revisit the Replication page.

@github-actions github-actions bot added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Jun 1, 2022
@teallarson teallarson force-pushed the teal/highlight-removed-and-added-streams branch from e56c669 to b46ef2a Compare June 2, 2022 13:23
@teallarson teallarson changed the title Teal/highlight removed and added streams Highlight removed and added streams Jun 2, 2022
@teallarson teallarson changed the title Highlight removed and added streams Highlight removed and added streams un Connection form Jun 2, 2022
@teallarson teallarson changed the title Highlight removed and added streams un Connection form Highlight removed and added streams in Connection form Jun 3, 2022
@teallarson teallarson marked this pull request as ready for review June 3, 2022 13:36
@teallarson teallarson requested a review from a team as a code owner June 3, 2022 13:36
@@ -223,7 +223,7 @@ export const CreationFormPage: React.FC = () => {

return (
<>
<HeadTitle titles={[{ id: "sources.newSourceTitle" }]} />
<HeadTitle titles={[{ id: "connection.newConnectionTitle" }]} />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Tiny bug fix.

Copy link
Contributor

@edmundito edmundito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is good and tested locally and looks great. Just commented on some trivial things

margin-bottom: 29px;
max-height: 600px;
overflow-y: auto;
--webkit-overlay: true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit weary of using this specific style. I couldn't find anything online about it. How does it work? Although it looks like this was copied over from the styled component.

Copy link
Contributor Author

@teallarson teallarson Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was copied from what was originally there. I tried out Chrome, Firefox, and Safari and don't see that it makes any change if I remove the --webkit-overlay rule. Let's get it out of there.

@teallarson teallarson merged commit 850ff58 into master Jun 3, 2022
@teallarson teallarson deleted the teal/highlight-removed-and-added-streams branch June 3, 2022 14:55
chebalski added a commit to BluestarGenomics/airbyte that referenced this pull request Jul 25, 2022
* master: (142 commits)
  Highlight removed and added streams in Connection form (airbytehq#13392)
  🐛  Source Amplitude: Fixed JSON Validator `date-time` validation (airbytehq#13373)
  🐛 Source Mixpanel: publish v0.1.17 (airbytehq#13450)
  Fixed reverted PR: Fix cancel button when it doesn't provide feedback to the user + UX improvements (airbytehq#13388)
  🎉 Source Freshdesk: Added new streams (airbytehq#13332)
  Prepare YamlSeedConfigPersistence for dependency injection (airbytehq#13384)
  helm chart: Support nodeSelector, tolerations and affinity on the booloader pod (airbytehq#11467)
  airbyte-api: add jackson model annotations to remove null values from responses (airbytehq#13370)
  Change stage to `beta` (airbytehq#13422)
  🐛 Source Google Sheets: Retry on server errors (airbytehq#13446)
  Improve kube deploy process. (airbytehq#13397)
  Helm chart dependencies fix (airbytehq#13432)
  🐛 Source HubSpot: Transform `contact_lists` data to comply with schema (airbytehq#13218)
  airbytehq#11758: Source Google Ads to GA (airbytehq#13441)
  Add more pr actions to tag pull requests (airbytehq#13437)
  Source Google Ads: drop schema field that filters out the data from stream (airbytehq#13423)
  Updates error view with new design (airbytehq#13197)
  Source MSSQL: correct enum Standard method (airbytehq#13419)
  Update postgres doc about cdc publication (airbytehq#13433)
  run source acceptance tests against image built from branch (airbytehq#13401)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Highlight removed/added streams when editing connection
2 participants