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

Add feedback buttons to cards #938

Merged
merged 6 commits into from
Sep 1, 2021

Conversation

nmanu1
Copy link
Contributor

@nmanu1 nmanu1 commented Aug 31, 2021

Add thumbs up/down feedback buttons to all cards without doing card-specific styling yet. Created a shared partial for the buttons, as well as a new config option in 'dataForRender', called 'feedback' that controls whether or not the buttons appear. Used the shared partial in all cards, including direct answers cards.

J=SLAP-1544
TEST=manual

Smoke testing to see if thumbs up/down buttons appear on each card

@tmeyer2115
Copy link
Collaborator

We can ignore the failing Translation Test for now. The Theme should not be running that test on every PR. Fixing this check will be done as part of another item.

@cea2aj
Copy link
Member

cea2aj commented Aug 31, 2021

Based on the Percy snapshots, I think some of the feedback buttons need to be adjusted so that they are on the bottom right of the cards. We may also need to add some more padding and make the buttons a little smaller

@coveralls
Copy link

coveralls commented Sep 1, 2021

Coverage Status

Coverage remained the same at 8.059% when pulling 7193ccb on dev/add-feedback-buttons into df97c5d on develop.

cards/common-partials/thumbsfeedback.hbs Outdated Show resolved Hide resolved
cards/document-standard/component.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@tmeyer2115 tmeyer2115 left a comment

Choose a reason for hiding this comment

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

I think the result cards and the DA cards are now using the same static text. I would expect the translation test to be passing now. Do you know why it's still failing?

cards/common-partials/thumbsfeedback.hbs Show resolved Hide resolved
@tmeyer2115 tmeyer2115 self-requested a review September 1, 2021 20:23
@nmanu1 nmanu1 changed the base branch from develop to feature/feedback-buttons September 1, 2021 20:30
@nmanu1 nmanu1 merged commit 43595aa into feature/feedback-buttons Sep 1, 2021
nmanu1 added a commit that referenced this pull request Oct 12, 2021
Add generic thumbs up/down feedback buttons and analytics to all cards (#938, #939, #940).

- Include a `feedback` config option in `dataForRender` so user can specify if feedback buttons should appear on the card or not.
- Create a shared partial for the buttons that is used in all cards, including direct answer cards
- Update analytics for direct answer feedback with additional event attributes.

J=SLAP-1544, 1545
TEST=manual

Smoke testing to see if thumbs up/down buttons function as expected on all cards and send analytics.
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.

4 participants