-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
🤖 Hasura Change Summary compared a subset of table metadata including permissions: Updated Tables (1)
|
Removed vultr server and associated DNS entries |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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!)
There was a problem hiding this comment.
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
In this PR:
feedback_summary
table to copy across thefeedbackScore
from thefeedback
table.