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

Feedback button #6500

Merged
merged 3 commits into from
Jun 26, 2020
Merged

Feedback button #6500

merged 3 commits into from
Jun 26, 2020

Conversation

nemanja-da
Copy link
Contributor

Changed the position of the 'Thumbs up/down' button to be in the bottom right corner above the 'Feedback' button. Added SASS to remove both buttons for mobile (as we were getting a lot of gibberish feedback

CHANGELOG_START
CHANGELOG_END

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

Changed the position of the 'Thumbs up/down' button to be in the bottom right corner above the 'Feedback' button. Added SASS to remove both buttons for mobile (as we were getting a lot of gibberish feedback

CHANGELOG_START
CHANGELOG_END
Changed the position of the 'Thumbs up/down' button to be in the bottom right corner above the 'Feedback' button. Added SASS to remove both buttons for mobile (as we were getting a lot of gibberish feedback

CHANGELOG_START
CHANGELOG_END
Copy link
Contributor

@cocreature cocreature left a comment

Choose a reason for hiding this comment

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

I’ve spent 20 minutes trying to find the new feedback button after running the preview script on this PR and I still failed. Can you send me a screenshot? 🙂
Side note: the feedback button on the current docs site also gets blocked by ublock so there is a reasonable chance it doesn’t actually work for a lot of people.

@nemanja-da
Copy link
Contributor Author

Ah, great point @cocreature 😄 You should be able to see it now.

The problem is that Mopinion (our 3rd party tool used for the feedback form) deploys all the forms we ever wanna use on the website so I had to create rules what forms to show when (e.g., don't wanna show the "Tutorial feedback" form on docs and vice-versa don't wanna show docs' feedback form on Katacoda scenarios).

Added a rule to show the form if it's also coming from http://127.0.0.1:8000/

image

@@ -268,7 +260,13 @@
{% endif %}
{% endif %}

{%- if url_root != './' %}
<div id="inpageContent"></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks strange. Why do we put an empty div here? Is some JS going to render into this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's not gonna render. Just copy/pasted the old code that is used to determine if the page is docs.dam.com or not (if it is then don't show the feedback form)

Copy link
Contributor

Choose a reason for hiding this comment

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

What happened to the <a onclick=...>Detailed Feedback</a> link?

Copy link
Contributor

Choose a reason for hiding this comment

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

It’s redundant. Previously, we had the blue feedback button that you can see in the screenshot at the bottom right and the detailed feedback button at the top and they both do the same thing. Now that the thumbsup/thumbsdown arrows are directly above the button on the bottom right there is no point in having the separate link.

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense. Thanks for the explanation.

Copy link
Contributor

@cocreature cocreature left a comment

Choose a reason for hiding this comment

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

Nice, looks much better than before! If possible, it would be great if the button would also be shown if you open localhost:8000. Atm 127.0.0.1:8000 works but localhost:8000 doesn’t which confused me for a bit.

@nemanja-da
Copy link
Contributor Author

Added localhost:8000 to the rule as well 😄

@nemanja-da nemanja-da merged commit c7c94ab into master Jun 26, 2020
@nemanja-da nemanja-da deleted the feedback_button branch June 26, 2020 10:33
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.

3 participants