-
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
🪟🎨 Connector form: Improve logs look and feel #20951
Conversation
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.
Had a few comments but nothing majorly blocking. Lmk if you want me to take another look if you decide to replace the button.
Tested locally and it works as expected
airbyte-webapp/src/views/Connector/ConnectorCard/ConnectorCard.tsx
Outdated
Show resolved
Hide resolved
<Button | ||
variant="secondary" | ||
onClick={() => { | ||
setLogsVisible(!logsVisible); |
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.
nit
setLogsVisible(!logsVisible); | |
setLogsVisible((prevLogsVisible) => !prevLogsVisible); |
{job && (advancedMode || !job.succeeded) && <JobItem job={job} />} | ||
{job && ( | ||
<div className={styles.connectionTestLogs}> | ||
<Button |
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.
It feels like it may make more sense to use an expandable section here rather than a Button, similar to how the BuilderOptional component looks.
Since this button is just showing/hiding additional info, using the faAngleRight / faAngleDown icon next to some text that just says Connection test logs
feels like a more natural UX. What do you think?
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.
…rbyte into flash1293/improve-logs-view
* improve logs look and feel in connector form * add button to toggle * lokk and feel
Fixes #20238
What
Improves the look of the logs in the connector form.
Old:
New:
How
JobItem
wrapper and useJobLogs
directly - as there is only ever a single entry it doesn't make sense to wrap it into an accordion which looks like a list entryDrive-by fix
In the old implementation there was a weird edge case:
This PR is clearing out the log when the connector is re-tested
Also fixes some inconsistent spacing between components. The whole connector form controls should be cleaned up, but that will be a separate PR.