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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃獰 馃悰 馃帹 Fix design issues with CatalogDiff modal #18870

Merged
merged 8 commits into from
Nov 15, 2022

Conversation

edmundito
Copy link
Contributor

@edmundito edmundito commented Nov 2, 2022

What

Fixes the catalog diff modal size along with some styling issues with how fields were being displayed.

Before:
Screen Shot 2022-11-02 at 15 38 10

After:
Screen Shot 2022-11-04 at 15 53 17

How

  • Improved paddings and gaps
  • Field table was manually controlling the margins around the accordion, now the accordion pushes the table inward
  • Fix CatalogDiff storybook
  • Update text colors of Number badge to be consistent
  • Remove relative paths from scss files

Recommended reading order

Top to bottom

@edmundito edmundito added team/platform-move area/frontend Related to the Airbyte webapp labels Nov 2, 2022
@github-actions github-actions bot added the area/platform issues related to the platform label Nov 2, 2022
Comment on lines +14 to +23
const { formatMessage } = useIntl();

const text = formatMessage(
{
id: `connection.updateSchema.${diffVerb}`,
},
{
value: diffCount,
item: formatMessage({ id: `connection.updateSchema.${diffType}` }, { count: diffCount }),
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nit change: This was rendered strangely in the inspector. The string was split into 3 parts in the dom. This change will render the string as a whole.

@edmundito edmundito force-pushed the edmundito/fix-catalogdiff-styles branch from ecc14b7 to be4ed4d Compare November 4, 2022 19:53
@edmundito edmundito marked this pull request as ready for review November 4, 2022 19:55
@edmundito edmundito requested a review from a team as a code owner November 4, 2022 19:55
@edmundito edmundito self-assigned this Nov 9, 2022
Copy link
Contributor

@krishnaglick krishnaglick left a comment

Choose a reason for hiding this comment

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

Can you update this against master? This doesn't have a start:cloud right now and I've deleted my .env.development so I can't test this fully.

Comment on lines 22 to 24
onClose={() => {
return null;
}}
Copy link
Contributor

Choose a reason for hiding this comment

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

This is an optional param

Suggested change
onClose={() => {
return null;
}}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not optional for catalog diff. Will clean it up.

timroes
timroes previously requested changes Nov 9, 2022
@@ -17,23 +17,21 @@
font-style: normal;
font-weight: 500;
font-size: 10px;
color: colors.$white;
Copy link
Collaborator

@timroes timroes Nov 9, 2022

Choose a reason for hiding this comment

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

This is the wrong text color for this background color. It's not fulfilling WCAG AA contrast ratios. The supposed text colors on those background colors were correct before this PR.

If we're unhappy with the different text colors we can change the background colors to some that allow us having the same text color on top of them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was not an arbitrary change, but the current design has not been updated to reflect this. Neither @Upmitt nor I were aware that this change was made for this reason. I have reverted the change.

Add ModalService to CatalogDiff to fix story
* Update how icons work
* Rearrange table headings and cells to align correctly
* Add more spacing to the Diff Icon badges
* Remove div from DiffHeader and simplify rendering
* Remove border-spacing from tables
* Move table margins to be set by padding on the panel itself
@edmundito edmundito force-pushed the edmundito/fix-catalogdiff-styles branch from be4ed4d to 7ca4490 Compare November 10, 2022 15:22
@timroes timroes dismissed their stale review November 10, 2022 21:34

Has been addressed

@timroes timroes removed their request for review November 10, 2022 21:35
@krishnaglick
Copy link
Contributor

Screenshot 2022-11-14 at 2 46 51 PM
Could maybe use a little extra padding on the bottom, but otherwise LGTM!

Update CatalogDiff stories to include different use cases
@edmundito edmundito changed the title [WIP] 馃獰 馃悰 馃帹 Fix design issues with CatalogDiff modal 馃獰 馃悰 馃帹 Fix design issues with CatalogDiff modal Nov 15, 2022
@edmundito
Copy link
Contributor Author

@krishnaglick Added the padding and looks better, and I updated the storybook to preview with different combinations

Copy link
Contributor

@krishnaglick krishnaglick left a comment

Choose a reason for hiding this comment

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

LGTM!

@edmundito edmundito merged commit 7e709b5 into master Nov 15, 2022
@edmundito edmundito deleted the edmundito/fix-catalogdiff-styles branch November 15, 2022 15:51
akashkulk pushed a commit that referenced this pull request Dec 2, 2022
* Increase size of CatalogDiff modal
Add ModalService to CatalogDiff to fix story

* Fix issues with catalog diff field section styles

* Update how icons work
* Rearrange table headings and cells to align correctly
* Add more spacing to the Diff Icon badges
* Remove div from DiffHeader and simplify rendering
* Remove border-spacing from tables
* Move table margins to be set by padding on the panel itself

* Update spacing on field section to align more closely with design

* Update text color in NumberBadge to be consistent.

* Update spacing and alignment in stream row to match design

* Restore text color in NumberBadge

* Cleanup onClose fn in CatalogDiff story

* Add padding bottoom to DiffAccordion
Update CatalogDiff stories to include different use cases
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 team/platform-move
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants