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

Feature/feedback form #2085

Merged
merged 41 commits into from
Sep 18, 2024
Merged

Feature/feedback form #2085

merged 41 commits into from
Sep 18, 2024

Conversation

Huongg
Copy link
Contributor

@Huongg Huongg commented Sep 10, 2024

Description

fixes #2082

Build a feedback component so user can share their experience with us

Development notes

This is currently only applying to slicing pipeline, and the plan in the future to improve this component further so we can re-use wherever needed in kedro-viz

Screen.Recording.2024-09-16.at.16.37.19.mov

The current flow is:

  1. Initial Interaction (First-Time Use):
  • The feedback pop-up form only appears after the user clicks the Reset Slice button.
  • This behavior indicates that the user has completed their interaction with the slicing feature and is preparing to exit.
  • While in slicing mode, a blue feedback button is always present to give the user an option to submit feedback after interacting with the feature.
  1. Second-Time Use Onward:
  • After the initial interaction, the feedback pop-up form will no longer appear automatically.
  • The feedback button will continue to be present only in slicing mode (after the user clicks the Slice button).
  • Users can manually submit feedback or dismiss it as needed without further interruptions.

Latest (now finalised) designs for individual feedback component can be found here! https://www.figma.com/design/3kSpvIO1veLKfy9qHxuXwF/Kedro-WIP?node-id=2677-3958&t=pfQ1nOt1kgateDjP-4

QA notes

QA steps:

  • clear your localStorage
  • click on 2 elements on the page
  • select Slice button. Nothing should show at all
  • click on reset button, the feedback form should show up.
    1. If you submit the feedback, "'Thank you for sharing feedback!" should appear and data should be sent to the heap development environment. Navigate to the heap dash board in the DEVELOPMENT environment. Data should be shown in the live data session as below
Screenshot 2024-09-16 at 21 13 43
  • And data will be reflected on the dashboard called "Kedro-viz - Slicing Pipeline Adoption"

Screenshot 2024-09-16 at 21 32 36
3. If you dismiss the feedback, "You can provide feedback any time by using the feedback button in the sliced view." should show

  • If you now re-enter the slicing view by selecting on 2 elements and click SLICE button, the feedback button will appear on the right hand side
  • when you reset the slicing view this time, there is no more popup Feedback shown up in the page

Checklist

  • Read the contributing guidelines
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added new entries to the RELEASE.md file
  • Added tests to cover my changes

Huong Nguyen added 4 commits September 6, 2024 10:52
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
@Huongg Huongg self-assigned this Sep 10, 2024
Copy link
Contributor

@rashidakanchwala rashidakanchwala left a comment

Choose a reason for hiding this comment

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

Look's great. and thanks for doing this in such a quick time.

Code and functionality wise it works fine hence I am approving. Design wise I am not so sure, so would like @stephkaiser to have a look and comment.

I found the 'Thank you for submitting' font size a bit small.

@rashidakanchwala rashidakanchwala self-requested a review September 11, 2024 11:33
@jitu5
Copy link
Contributor

jitu5 commented Sep 11, 2024

@Huongg @rashidakanchwala
I tested it locally, and after submitting the form, I can still see the feedback button. Is this expected? Should we hide the feedback button after the user submits it?

@rashidakanchwala
Copy link
Contributor

rashidakanchwala commented Sep 11, 2024

Good point, @jitu5. I see it too! – also if I refresh and do slicing again, it reappears. I wonder if there's a way to track whether a user has already provided feedback and then disable the button. However, that might add complexity and cause delays. I agree with Jitendra; for now, if we can just hide the button after the feedback is given.

@Huongg
Copy link
Contributor Author

Huongg commented Sep 11, 2024

hey @rashidakanchwala @jitu5 i think for this version we will just show the feedback button every time. As if we need to hide after the user reviews it, it'll require extra time and we want to build something quick so users can give us the feedback. Of course when we release the slicing there are more time we can improve other points.

I just have a feeling if we hide the button, what happens if they want to give us another feedback after their first use?

Huong Nguyen added 2 commits September 11, 2024 13:52
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
@stephkaiser
Copy link

Latest (now finalised) designs for individual feedback component can be found here! https://www.figma.com/design/3kSpvIO1veLKfy9qHxuXwF/Kedro-WIP?node-id=2677-3958&t=pfQ1nOt1kgateDjP-4

Huong Nguyen added 10 commits September 12, 2024 13:16
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
@Huongg Huongg requested a review from astrojuanlu as a code owner September 16, 2024 12:42
Signed-off-by: Huong Nguyen <huongg1409@gmail>
@Huongg
Copy link
Contributor Author

Huongg commented Sep 16, 2024

Looks like it works! The only surprising thing is that it allowed me to submit feedback twice. I think it's fine to show the little box right after clicking "slicing", because it's very subtle. But I defer to @stephkaiser on that. Maybe there could be a time-based trigger, or wait until the "reset slice" (or any other action) is done.

hey @astrojuanlu sorry for the confusion, we discussed the new flow with @stephkaiser, I've now updated the correct flow in the description and feel free to check again whenever you have the time, let us know if the flow makes sense now. 😄

Huong Nguyen added 5 commits September 16, 2024 22:39
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Copy link
Contributor

@rashidakanchwala rashidakanchwala left a comment

Choose a reason for hiding this comment

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

Look's great to me. thanks @Huongg

@stephkaiser
Copy link

Thanks Huong! we are so close! some very minor comments, if they take long to fix please feel free to skip them:

  1. Could we include the label under the emojis when the mouse hovers over them? so people know what that emoji means
Screenshot 2024-09-17 at 11 13 49
  1. The text inside the input field should be Inter regular size 14, looks like a different font currently. When user adds text inside the input field it should be black and left-aligned.
Screenshot 2024-09-17 at 11 14 47
  1. Could we include the hover state for the submit button like our primary button component?
Screenshot 2024-09-17 at 11 14 53

@astrojuanlu
Copy link
Member

Other than @stephkaiser's comments, LGTM!

@Huongg
Copy link
Contributor Author

Huongg commented Sep 17, 2024

Thanks Huong! we are so close! some very minor comments, if they take long to fix please feel free to skip them:

  1. Could we include the label under the emojis when the mouse hovers over them? so people know what that emoji means
Screenshot 2024-09-17 at 11 13 49 2. The text inside the input field should be Inter regular size 14, looks like a different font currently. When user adds text inside the input field it should be black and left-aligned. Screenshot 2024-09-17 at 11 14 47 3. Could we include the hover state for the submit button like our primary button component? Screenshot 2024-09-17 at 11 14 53

hey @stephkaiser thank you for reviewing. Let me update point 2 and 3 quickly. Just want to check for point 1, if we apply hover state, it potentially will look like this with text overlaps each other if it already shows the selected icon. There's just not enough space between 2 texts

Screenshot 2024-09-17 at 11 52 10

@stephkaiser
Copy link

@Huongg okay, in the interest of time lets ignore point 1 for now 👍

Signed-off-by: Huong Nguyen <huongg1409@gmail>
@Huongg
Copy link
Contributor Author

Huongg commented Sep 17, 2024

@stephkaiser sounds good, I've now pushed changes to address point 2 and 3. If you're happy with them please approve the PR when you have the chance plesae

Huong Nguyen added 2 commits September 17, 2024 15:18
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Copy link
Contributor

@ravi-kumar-pilla ravi-kumar-pilla left a comment

Choose a reason for hiding this comment

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

Looks good and works well !! Thank you @Huongg 💯

Huong Nguyen and others added 9 commits September 17, 2024 17:32
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
@Huongg Huongg merged commit 490416d into main Sep 18, 2024
10 checks passed
@Huongg Huongg deleted the feature/feedback-form branch September 18, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feedback component so that user can provide feedback for slicing pipeline in kedro-viz
6 participants