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

🪟 🎨 Streams table design pass [with fix] #19431

Merged

Conversation

teallarson
Copy link
Contributor

@teallarson teallarson commented Nov 15, 2022

Reverts #19397 and removes the broken CSS from the original PR.

When the stream tables design pass was originally merged, there was an unneeded min-width: 0 that caused the fields panel dropdown arrow to disappear on the master table (IE: not the one hidden behind the .env variable)

This PR removes that min-width: 0

It does not cause and visual changes to the main table, but does re-introduce the styles for our new sync catalog table!

@octavia-squidington-iv octavia-squidington-iv added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Nov 15, 2022
@teallarson teallarson marked this pull request as ready for review November 15, 2022 14:48
@teallarson teallarson requested a review from a team as a code owner November 15, 2022 14:48
@teallarson teallarson changed the title 🪟 🎨 Streams table design pass (fix) 🪟 🎨 Streams table design pass Nov 15, 2022
@krishnaglick
Copy link
Contributor

krishnaglick commented Nov 15, 2022

Confirmed visually that this fixes the arrow bug

@teallarson teallarson changed the title 🪟 🎨 Streams table design pass 🪟 🎨 Streams table design pass [with fix] Nov 15, 2022
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.

When testing, a couple of issues while testing the existing table. It looks like because of the flushing of the card, some of the padding was lost around the table. You can see in this screenshot that the + and - icons are too close to the edge and on the right side the row does not have the padding it had before:

Screen Shot 2022-11-15 at 10 31 19

This is master:
image

@@ -5,16 +5,37 @@ $icon-size: 15px;
.container {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: variables.$spacing-lg calc(variables.$spacing-lg * 2);
padding: variables.$spacing-xl calc(#{variables.$spacing-lg} * 2) 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same suggestion as above. No need to use the calc since it will appear in css as calc(10px * 2) instead of 20px when adding sass vars.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! For my own understanding.... the right time to use calc is when you're referring to something outside of the css vars as part of the expression (like 10%)... but if you're just evaluating something with the variables and a static number, simply put the variable?

@edmundito
Copy link
Contributor

I also noticed that the new table header is way off with the new table width. I am OK fixing this separately:
Screen Shot 2022-11-15 at 10 34 52

@teallarson
Copy link
Contributor Author

I left #17937 open with a note RE: the headers.
@edmundito other items have been addressed!

@teallarson
Copy link
Contributor Author

Addressed offline feedback RE: alignment of the search bar and card heading for the sync catalog on the "classic view" + 1 more item (the left padding on icons for an enabled/disabled row) on the "new view".

@@ -583,6 +583,9 @@ exports[`CreateConnectionForm should render 1`] = `
<div
class="<removed-for-snapshot-test>"
>
<div
Copy link
Contributor Author

Choose a reason for hiding this comment

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

extra div is because i fixed some bad alignment in the header

@@ -530,6 +530,9 @@ exports[`ConnectionReplicationTab should render 1`] = `
<div
class="<removed-for-snapshot-test>"
>
<div
Copy link
Contributor Author

@teallarson teallarson Nov 16, 2022

Choose a reason for hiding this comment

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

same as other snapshot file... added this div to fix header alignment some

@teallarson teallarson merged commit f0d331c into master Nov 16, 2022
@teallarson teallarson deleted the revert-19397-revert-18908-teal/streams-table-design-pass branch November 16, 2022 16:21
akashkulk pushed a commit that referenced this pull request Dec 2, 2022
* Revert "Revert "🪟 🎨 Streams table design pass (#18908)" (#19397)"

This reverts commit ebbe5a9.

* remove min-width 0 that broke the table

* Update airbyte-webapp/src/components/connection/CatalogTree/next/CatalogTreeTableRow.module.scss

Co-authored-by: Edmundo Ruiz Ghanem <[email protected]>

* fix styling for master table with (padding)

* fix alignment somewhat on master view

* fix padding differences between old/new tables

* fix icon alignment in new table rows

* update snapshots

Co-authored-by: Edmundo Ruiz Ghanem <[email protected]>
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.

4 participants