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

🪟 🎨 Remove feedback modal from UI #16548

Merged
merged 10 commits into from
Sep 14, 2022
Merged

Conversation

dizel852
Copy link
Contributor

@dizel852 dizel852 commented Sep 9, 2022

What

Closes #16336

How

Removes Feedback modal after the successful run of the first connection

image

And display a message if the first sync was successful:
https://www.loom.com/share/3fe43d5183ef48a5b54190e7523df590

@github-actions github-actions bot added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Sep 9, 2022
@dizel852 dizel852 changed the title remove feedback modal components and from FinalStep component 🪟 🎨 Remove feedback modal from UI Sep 9, 2022
@dizel852
Copy link
Contributor Author

dizel852 commented Sep 9, 2022

Atm, some feedback functionality is left in the useWorkspace hook:

const sendFeedback = async ({
feedback,
source,
destination,
}: {
feedback: string;
source: SourceRead;
destination: DestinationRead;
}) => {
analyticsService.track(Namespace.ONBOARDING, Action.FEEDBACK, {
actionDescription: "Onboarding Feedback",
feedback,
connector_source_definition: source?.sourceName,
connector_source_definition_id: source?.sourceDefinitionId,
connector_destination_definition: destination?.destinationName,
connector_destination_definition_id: destination?.destinationDefinitionId,
});
};

and in OnbordingService context:

export const OnboardingServiceProvider: React.FC = ({ children }) => {
const workspace = useCurrentWorkspace();
const [feedbackPassed, setFeedbackPassed] = useLocalStorage<boolean>(`${workspace.workspaceId}/passFeedback`, false);
const [skippedUseCases, setSkippedUseCases] = useLocalStorage<string[]>(
`${workspace.workspaceId}/skippedUseCases`,
[]
);

@timroes should we completely remove the feedback functionality? Or we will use it somehow with Chameleon?

@dizel852 dizel852 marked this pull request as ready for review September 9, 2022 21:24
@dizel852 dizel852 requested a review from a team as a code owner September 9, 2022 21:24
@timroes
Copy link
Collaborator

timroes commented Sep 12, 2022

@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.

@dizel852
Copy link
Contributor Author

@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.
What logic about use cases should we keep?

Copy link
Contributor

@teallarson teallarson left a 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.

@timroes
Copy link
Collaborator

timroes commented Sep 12, 2022

@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).

@dizel852
Copy link
Contributor Author

I think we can just show the "your first sync succeeded message" on top of the onboarding page all the time

@timroes Looks good?

image

export const FirstSuccessfulSync: React.FC = () => {
return (
<div className={styles.container}>
<Text as="h3" size="md" centered className={styles.completedSyncText}>
Copy link
Collaborator

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?

Copy link
Collaborator

@timroes timroes left a 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.

@dizel852 dizel852 merged commit 907385c into master Sep 14, 2022
@dizel852 dizel852 deleted the vlad/16336-remove-feedback-modal branch September 14, 2022 20:02
letiescanciano added a commit that referenced this pull request Sep 15, 2022
* 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)
  ...
robbinhan pushed a commit to robbinhan/airbyte that referenced this pull request Sep 29, 2022
* 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
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
* 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
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.

Remove feedback modal from UI
3 participants