Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Feedback component - #135

Merged
katydecorah merged 22 commits into
masterfrom
feedback
Jul 9, 2019
Merged

katydecorah merged 22 commits into
masterfrom
feedback

Conversation

@katydecorah

@katydecorah katydecorah commented May 30, 2019 •

Copy link
Copy Markdown
Contributor

ref https://github.com/mapbox/documentation/issues/176

This PR sketches out the Feedback component that will appear on the bottom of pages and sections:

image

User selects "Yes" User selects "No"
image image

Tracking response

  • On Yes/No button click the response will be tracked in Segment.
  • Text feedback will be sent to Zendesk via the Ticket API. We'll also track in Segment if the user submits text feedback.

Options

  • The type prop (possible values: page or section; default is page) allows use to switch out the context for the feedback text:

image

  • The site prop (required) allows us to track the current site in Segment for context in our dashboards.
  • The section prop (optional) allows us to track the section of a given page in Segment. This will be handy for long pages with multiple feedback components.

To do

  • Review/revise all copy
  • Identify if there are any other feedback "types" to include other than page and section.
  • What does it look like after the users submits text feedback?
  • Hook up Segment tracking (yes, no, submit feedback)
  • Hook up Zendesk to post feedback with the Ticket API
  • Run through QA checklist

@HeyStenson @colleenmcginnis

Katy DeCorah added 15 commits May 22, 2019 16:56
* master:
  add snapshot tests (#136)
  0.15.1
  Prepare 0.15.1
  0.15.0
  Prepare 0.15.0
  [search] adds segment tracking for queries and clicks (#140)
  [search] add ability to filter results (#138)
  increase modal zindex to prevent collision with topbar sticker (#139)
  0.14.0
  Prepare 0.14.0
  [PageLayout/TopbarSticker] increase zIndex (#134)
  [search] Introduce search modal (#133)
  prepare 0.13.0
  adjust version-sort for XX.XX.XX format (#132)
* master:
  0.17.0
  Prepare 0.17.0
  [version-sort] do not push pre-releases of the latest stable version (#148)
  🐛make compare-versions a dependency (#142)
  [PageLayout] add data attribute to prevent Swiftype from indexing sidebar content (#146)
  0.16.2
  Prepare 0.16.2
  0.16.1
  Prepare 0.16.1
  0.16.0
  Prepare 0.16.0
  [search] update search-ui, add loader, increase debounce length (#145)
  0.15.2
  Prepare 0.15.2
  🐛do not package optionalDependencies and jest (#143)
@katydecorah

katydecorah commented Jul 2, 2019 •

Copy link
Copy Markdown
Contributor Author

Instead of using the forward-event client via the private npm module, I copied over the client as a new function src/components/feedback/forward-event.js. In each repo we'll save the webhook URLs (staging and production) in constants.json and then pass them to the Feedback component.

Reviewer checklist

  1. npm install && npm start
  2. Click yes/no on the feedback module
  3. Open segment debugger and search for "sent docs feedback" to see if your events came through using the following testing environments:
  • Logged in:
    • Ad blocker is on and the event in segment captured my username.
    • Ad blocker off and the event in segment captured my username.
    • No errors logged to console (other than marketo, segment, customerio when adblocker is on)
  • Logged out:
    • Ad blocker is on and the event in segment did not capture my username but the event is present.
    • Ad blocker is off and the event in segment did not capture my username but the event is present.
    • No errors logged to console (other than marketo, segment, customerio when adblocker is on)
  • Running npm run build returns no errors

Logged out events should look similar to:

analytics.track({
  anonymousId: '5eea70cc...',
  event: 'Sent docs feedback',
  properties: {
    helpful: true,
    page: {},
    site: 'Help'
  }
});

Logged in events should look similar to:

analytics.track({
  userId: 'decorah',
  event: 'Sent docs feedback',
  properties: {
    helpful: true,
    page: {},
    site: 'Help',
    userId: 'decorah'
  }
});

@katydecorah katydecorah changed the title 🚧Feedback component Feedback component Jul 3, 2019
@katydecorah
katydecorah marked this pull request as ready for review July 3, 2019 15:23
@katydecorah
katydecorah requested a review from a team July 3, 2019 15:23
@katydecorah

katydecorah commented Jul 3, 2019 •

Copy link
Copy Markdown
Contributor Author

This is ready for review. I added a checklist of things to look out for in the comment above.

I also moved this exact component (including the forward-event script) to /help to make sure some of the changes work (passing the username and webhook to the component) and pushed those changes to staging. You can test either /help staging and/or the feedback component in this repo.

@katydecorah

Copy link
Copy Markdown
Contributor Author

Per chat, I just pushed a commit to improve the confirmation messages to help make it clear that the textarea is optional. I also just pushed this update to /help staging, so that should be live in a few minutes.

@HeyStenson HeyStenson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Went through the checklist and everything looks great @katydecorah!

The only thing I'm thinking is that even with the updated wording (which is awesome!), some people may still not realize that they can just ... leave the text form if they don't have further feedback (aka that it's optional). I wonder if it would be helpful to add the text (optional) back to the wording - or, better yet, add a close button or something similar so that they feel like they've "taken care of" the text box if they're not leaving a comment. I might be totally off base here - just a hunch. Let me know if you'd like to 🗣 VOICE about this!

@HeyStenson

Copy link
Copy Markdown
Contributor

Capturing this so that we can discuss later -

We may need to make it explicit to users that this is not a way to request support. We could add language like the following, plus a link to https://support.mapbox.com/hc/en-us, as a way to divert users who are seeking specific help:

If you have a technical question about how to use a Mapbox product, contact Support.

Or even more explicit:

This form is for documentation feedback. If you have a technical question about how to use a Mapbox product, contact Support. 

In terms of placement, I think this might work best under the text form, but above the "Send feedback" button.

I'll think more about wording/placement and we can discuss later - just wanted to get these thoughts down while they were fresh!

@katydecorah

Copy link
Copy Markdown
Contributor Author

@HeyStenson I think your language suggestions are spot on 💅

Here's the current state:

image

Is that what you had in mind?

@HeyStenson

Copy link
Copy Markdown
Contributor

@katydecorah YES 🙌🙌🙌 This looks awesome!

@colleenmcginnis

Copy link
Copy Markdown
Contributor

🤔 v small detail -- should send feedback button be bigger or maybe be above the note about support?

image

@colleenmcginnis

colleenmcginnis commented Jul 8, 2019 •

Copy link
Copy Markdown
Contributor

@katydecorah I'm having a hard time testing -- I'm seeing the events show up in Segment 👍 , but I don't see a username even when logged in 👎.

Oh my. Just saw this:

I also moved this exact component (including the forward-event script) to /help to make sure some of the changes work (passing the username and webhook to the component) and pushed those changes to staging. You can test either /help staging and/or the feedback component in this repo.

🤦‍♀

@colleenmcginnis colleenmcginnis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lookin' good @katydecorah! Sorry for the noise this afternoon.🙊

@katydecorah

Copy link
Copy Markdown
Contributor Author

should send feedback button be bigger or maybe be above the note about support?

@colleenmcginnis Yes, this makes sense! I dropped the note to the bottom:

image

@katydecorah
katydecorah merged commit 6a9cb28 into master Jul 9, 2019
@katydecorah
katydecorah deleted the feedback branch July 9, 2019 12:22
katydecorah pushed a commit that referenced this pull request Jul 15, 2019
* master:
  0.18.0
  Feedback component (#135)
katydecorah pushed a commit that referenced this pull request Jul 17, 2019
* master: (22 commits)
  Create create-redirect.js (#144)
  0.18.2
  [search] fix missing proptype (#151)
  0.18.1
  Update security vulnerabilities in dependencies (#152)
  0.18.0
  Feedback component (#135)
  0.17.0
  Prepare 0.17.0
  [version-sort] do not push pre-releases of the latest stable version (#148)
  🐛make compare-versions a dependency (#142)
  [PageLayout] add data attribute to prevent Swiftype from indexing sidebar content (#146)
  0.16.2
  Prepare 0.16.2
  0.16.1
  Prepare 0.16.1
  0.16.0
  Prepare 0.16.0
  [search] update search-ui, add loader, increase debounce length (#145)
  0.15.2
  ...
katydecorah pushed a commit that referenced this pull request Jul 17, 2019
* master:
  Create create-redirect.js (#144)
  0.18.2
  [search] fix missing proptype (#151)
  0.18.1
  Update security vulnerabilities in dependencies (#152)
  0.18.0
  Feedback component (#135)
  0.17.0
  Prepare 0.17.0
  [version-sort] do not push pre-releases of the latest stable version (#148)
  🐛make compare-versions a dependency (#142)
  [PageLayout] add data attribute to prevent Swiftype from indexing sidebar content (#146)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants