-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: Survey's placeholder customization not showing up #27089
Conversation
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.
one comment that CI will probably catch for me, otherwise looks great!
@@ -2,8 +2,7 @@ import './EditSurvey.scss' | |||
|
|||
import { DndContext } from '@dnd-kit/core' | |||
import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable' | |||
import { IconInfo } from '@posthog/icons' | |||
import { IconLock, IconPlus, IconTrash } from '@posthog/icons' | |||
import { IconInfo, IconLock, IconPlus, IconTrash } from '@posthog/icons' |
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.
did you intend to add IconInfo
here? I think this might cause CI to yap because we're not using it afaict.
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.
i didn't intend to touch this! but I think what happened here is that my editor combined those two lines when formatting. if you see, ItemInfo was always there, and it's used in the file, but before we were importing it in a separate line
value={ | ||
appearance?.placeholder !== undefined | ||
? appearance.placeholder | ||
: defaultSurveyAppearance.placeholder | ||
} |
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.
🚀
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
68f5cd6
to
f73cc00
Compare
f73cc00
to
bed5419
Compare
Noice! |
Problem
Fixes the issue in #26750
Changes
We're only checking the first question to determine wether to show the placeholder option. Instead, check all questions to determine we want to show it.
And also allows an empty string to be set as the placeholder. Before, it always defaults to the default placeholder
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
How did you test this code?
Tested locally in the UI, as it's a bug fix