Repository navigation
Feedback component - #135
Conversation
* 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)
|
Instead of using the forward-event client via the private npm module, I copied over the client as a new function Reviewer checklist
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'
}
}); |
|
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. |
|
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
left a comment
There was a problem hiding this comment.
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!
|
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: Or even more explicit: 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! |
|
@HeyStenson I think your language suggestions are spot on 💅 Here's the current state: Is that what you had in mind? |
|
@katydecorah YES 🙌🙌🙌 This looks awesome! |
|
Oh my. Just saw this:
🤦♀ |
colleenmcginnis
left a comment
There was a problem hiding this comment.
Lookin' good @katydecorah! Sorry for the noise this afternoon.🙊
@colleenmcginnis Yes, this makes sense! I dropped the note to the bottom: |
* master: 0.18.0 Feedback component (#135)
* 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 ...
* 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)



ref https://github.com/mapbox/documentation/issues/176
This PR sketches out the
Feedbackcomponent that will appear on the bottom of pages and sections:Tracking response
Options
typeprop (possible values:pageorsection; default ispage) allows use to switch out the context for the feedback text:siteprop (required) allows us to track the current site in Segment for context in our dashboards.sectionprop (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
@HeyStenson @colleenmcginnis