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

fix(surveys): enable button text per question instead #18623

Merged
merged 10 commits into from
Nov 15, 2023
Merged

Conversation

liyiy
Copy link
Contributor

@liyiy liyiy commented Nov 14, 2023

Problem

We only had 1 field to set up a "submit button text" value, which doesn't work for multiple question surveys.

Changes

  • All new surveys will be using the "button text" field per question instead
  • Continue to support previous button text for existing surveys that don't have new field

PostHog/posthog-js#893

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

Copy link
Collaborator

@neilkakkar neilkakkar left a comment

Choose a reason for hiding this comment

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

Makes sense, looks good 👍

Not sure if just missing it, or will come in a follow up, but I don't yet see how someone can add the button text in the UI?

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

3 snapshot changes in total. 0 added, 3 modified, 0 deleted:

  • chromium: 0 added, 3 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@liyiy liyiy force-pushed the fix-nxt-submit-btns branch from f1e3c07 to fe283aa Compare November 15, 2023 00:36
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

3 snapshot changes in total. 0 added, 3 modified, 0 deleted:

  • chromium: 0 added, 3 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@liyiy liyiy force-pushed the fix-nxt-submit-btns branch from 66a5566 to 2731116 Compare November 15, 2023 02:34
@liyiy liyiy enabled auto-merge (squash) November 15, 2023 02:35
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

4 snapshot changes in total. 0 added, 4 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 0 modified, 0 deleted
  • webkit: 0 added, 1 modified, 0 deleted (diff for shard 2)

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@liyiy liyiy merged commit 6debc1f into master Nov 15, 2023
73 checks passed
@liyiy liyiy deleted the fix-nxt-submit-btns branch November 15, 2023 03:11
pauldambra pushed a commit that referenced this pull request Nov 15, 2023
* add button text field to question

* clean up last traces of new surveys with submitButtonText

* button text

* fix empty string bug

* clean up

* linter
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.

3 participants