-
Notifications
You must be signed in to change notification settings - Fork 140
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(surveys): add support for a 7 point likert scale #1319
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +303 B (+0.03%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
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.
Left a comment for better readability of the ternary condition.
@@ -158,7 +158,14 @@ export function RatingQuestion({ | |||
className="rating-options-number" | |||
style={{ gridTemplateColumns: `repeat(${scale - starting + 1}, minmax(0, 1fr))` }} | |||
> | |||
{(question.scale === 5 ? fiveScaleNumbers : tenScaleNumbers).map((number, idx) => { | |||
{(question.scale === 5 |
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.
Maybe we should break this out into a variable. Its pretty confusing to read nested ternary statements here.
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.
done
Changes
New survey behavior
No backend changes needed, the response is just a number under the hood. Just needed some UI love to support this.
Closes PostHog/posthog#23922
Ships with associated PostHog app changes here: PostHog/posthog#23956