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

feat: Display feedback score in feedback log #3942

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Conversation

jamdelion
Copy link
Contributor

@jamdelion jamdelion commented Nov 13, 2024

In this PR:

  • Added column in feedback log for feedback score
  • Added 'feedback from component' as a feedback type that can be displayed in the log
  • This involved updating the feedback_summary table to copy across the feedbackScore from the feedback table.

Screenshot 2024-11-07 at 16 18 02

Copy link

github-actions bot commented Nov 13, 2024

🤖 Hasura Change Summary compared a subset of table metadata including permissions:

Updated Tables (1)

  • public.feedback_summary permissions:

    insert select update delete
    demoUser /
    platformAdmin /
    teamEditor /
    3 added column permissions
    insert select update
    demoUser ➕ feedback_score
    platformAdmin
    teamEditor

@jamdelion jamdelion changed the title Add feedback_score to feedback_summary view feat: Display feedback score in feedback log Nov 13, 2024
@jamdelion jamdelion marked this pull request as ready for review November 13, 2024 11:11
Copy link

github-actions bot commented Nov 13, 2024

Removed vultr server and associated DNS entries

Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Works as expected for me ! 🎉

}

const feedbackScore =
item.feedbackScore && EmojiRating[item.feedbackScore + 1]; // enums are 0-indexed
Copy link
Member

Choose a reason for hiding this comment

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

👍

@@ -52,6 +52,9 @@ export const FeedbackLog: React.FC<FeedbackLogProps> = ({ feedback }) => {
<TableCell sx={{ width: 100 }}>
<strong>Date</strong>
</TableCell>
<TableCell sx={{ width: 140 }}>
<strong>Feedback score</strong>
Copy link
Member

Choose a reason for hiding this comment

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

nit: since we're already in the "Feedback log", can this heading simply be "Score" (these tables don't have tons of real estate to begin with!)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, I've used the word 'rating' instead given that the word (e.g. fair, good, average) is being displayed rather than the numeric value

@jamdelion jamdelion merged commit 98e181e into main Nov 13, 2024
12 checks passed
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.

2 participants