-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🪟 🧹 Credits page component cleanup #21870
🪟 🧹 Credits page component cleanup #21870
Conversation
68e1430
to
18f10af
Compare
18f10af
to
36d06cf
Compare
connectionName: string; | ||
status: ConnectionStatus; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New data added to this endpoint in https://github.com/airbytehq/airbyte-platform-internal/pull/4164
|
||
.chartWrapper { | ||
width: 100%; | ||
height: 260px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't currently have any standardized height variables, but i wonder if we should.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in a lot of cases it will depend on the specific component. I did recently add button heights to _variables.scss
because they were referenced in e.g. table styling, so there is some precedent! https://github.com/airbytehq/airbyte/blob/master/airbyte-webapp/src/scss/_variables.scss#L41-L43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Much cleaner 🙂 just left a couple CSS ideas, but approving since they are not blocking.
|
||
.chartWrapper { | ||
width: 100%; | ||
height: 260px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in a lot of cases it will depend on the specific component. I did recently add button heights to _variables.scss
because they were referenced in e.g. table styling, so there is some precedent! https://github.com/airbytehq/airbyte/blob/master/airbyte-webapp/src/scss/_variables.scss#L41-L43
...te-webapp/src/packages/cloud/views/credits/CreditsPage/components/ConnectionCell.module.scss
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/packages/cloud/views/credits/CreditsPage/components/ConnectionCell.tsx
Outdated
Show resolved
Hide resolved
* update styling on connectionCell * cleanup the component and get rid of custom styles where possible * convert CreditsUsage page to scss module * cleanup * add connection status and connection name to endpoint data types * use variable * remove unused line * align icon and name center * adjust styling for arrow cell --------- Co-authored-by: Joey Marshment-Howell <josephkmh@users.noreply.github.com>
What
Tackles some preparation for the Billing Insights PR.
Minimal visual changes due to using our standard spacing variables. Though one visual improvement is that the connection column now displays correctly!
How
✨ magic ✨ (jk, it's code.)
Recommended reading order
Not critical, but it may make most sense to start with the
CreditsPage
and work your way down the component tree.