-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
🪟 🎨 Remove feedback modal from UI #16548
Conversation
Atm, some feedback functionality is left in the airbyte/airbyte-webapp/src/hooks/services/useWorkspace.tsx Lines 48 to 65 in 5e9759b
and in airbyte/airbyte-webapp/src/hooks/services/Onboarding/OnboardingService.tsx Lines 17 to 23 in 8076b56
@timroes should we completely remove the feedback functionality? Or we will use it somehow with Chameleon? |
@dizel852 I'd remove the sendFeedback method from the useWorkspace (as well as the corresponding enum values from the analytic events), but I we should keep the logic about use-cases, there is no (current) plan to change those. |
@timroes I'm not sure I understand fully what you mean. |
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.
Code looks good and tested it locally.
There's at least one i18n string that can be removed too it looks like (onboarding.syncCompleted
) and there may be more than one.
@dizel852 sorry in the OnboardingService a couple of additional lines got marked in your above comments, so I was refering to them (but now noticed that those were most likely only marked by misstake, and it's about the feedbackPassed above 😅). I think that should be removed as well. I think we can just show the "your first sync succeeded message" on top of the onboarding page all the time (which is the only place we currently using the feedbackPassed as a flag). |
@timroes Looks good? |
...bapp/src/pages/OnboardingPage/components/FirstSuccessfulSync/FirstSuccessfulSync.module.scss
Outdated
Show resolved
Hide resolved
export const FirstSuccessfulSync: React.FC = () => { | ||
return ( | ||
<div className={styles.container}> | ||
<Text as="h3" size="md" centered className={styles.completedSyncText}> |
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.
Small semantic HTML nitpick: this is not really a header for anything, so I think we should not make this a h3
element but just a regular element. This is currently not possible with the Text
component, so I'm happy moving this to another PR so we can merge this. cc @edmundito not sure if this is something we should maybe address in the component, that we can use "heading like" styles also for texts that are semantically not headings like in this case?
...bapp/src/pages/OnboardingPage/components/FirstSuccessfulSync/FirstSuccessfulSync.module.scss
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/pages/OnboardingPage/components/FirstSuccessfulSync/FirstSuccessfulSync.tsx
Outdated
Show resolved
Hide resolved
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.
Code LGTM, tested locally (the version before my previous comments) everything works and looking as expected.
* master: (200 commits) 🪟 🧹 Display returned error messages on replication view (#16280) 🎉 Source mixpanel: Use "Retry-After" header for backoff (#16770) 🐛 Source google ads: mark custom query fields required (#15858) 🪟 🔧Remove useRouter hook (#16598) CDK: improve TypeTransformer to convert simple types to array of simple types (#16636) CDK: TypeTransformer - warning message more informative (#16695) Source MySQL: Add Python SAT to detect backwards breaking changes (#16445) remove eager (#16756) bump com.networknt:json-schema-validator to latest version (#16619) Remove Cloud from Kafka docs (#16753) Normalization Summaries table and read/write methods (#16655) comment out flaky test suite while it is being investigated (#16752) Update ConfigRepository to read protocol version (#16670) Use LOG4J2 to wrap connectors logs to JSON format (#15668) Update connector catalog (#16749) 🪟 🎨 Remove feedback modal from UI (#16548) Add missing env var for Kube overlays (#16747) Prepare for React v18 upgrade (#16694) 🪟 🐛 Fix direct job linking to work with pagination (#16517) Fix formatting (#16743) ...
* remove feedback modal components and from FinalStep component * create FirstSuccessfulSync component * add FirstSuccessfulSync component to FinalStep * remove sendFeedback functionality from useWorkspace hook * remove sendFeedback functionality from Onboarding context * move svg image closer to component where it's used * update .completedSyncText text style * add data-testid to FirstSuccessfulSync component
* remove feedback modal components and from FinalStep component * create FirstSuccessfulSync component * add FirstSuccessfulSync component to FinalStep * remove sendFeedback functionality from useWorkspace hook * remove sendFeedback functionality from Onboarding context * move svg image closer to component where it's used * update .completedSyncText text style * add data-testid to FirstSuccessfulSync component
What
Closes #16336
How
Removes Feedback modal after the successful run of the first connection
And display a message if the first sync was successful:
https://www.loom.com/share/3fe43d5183ef48a5b54190e7523df590