feat(surveys): replace surveys preview
Problem
Changes
remake of https://github.com/PostHog/posthog/pull/20280
đ Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?
đ¸ UI snapshots have been updated
28 snapshot changes in total. 0 added, 28 modified, 0 deleted:
-
chromium: 0 added, 28 modified, 0 deleted (diff for shard 1, diff for shard 2) -
webkit: 0 added, 0 modified, 0 deleted
Triggered by this commit.
đ¸ 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.
đ¸ 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.
đ¸ 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.
đ¸ 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.
Size Change: 0 B
Total Size: 1.04 MB
âšī¸ View Unchanged
| Filename | Size |
|---|---|
frontend/dist/toolbar.js |
1.04 MB |
đ¸ 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.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
đ¸ UI snapshots have been updated
18 snapshot changes in total. 0 added, 18 modified, 0 deleted:
-
chromium: 0 added, 18 modified, 0 deleted (diff for shard 1, diff for shard 2) -
webkit: 0 added, 0 modified, 0 deleted
Triggered by this commit.
đ¸ UI snapshots have been updated
18 snapshot changes in total. 0 added, 18 modified, 0 deleted:
-
chromium: 0 added, 18 modified, 0 deleted (diff for shard 1, diff for shard 2) -
webkit: 0 added, 0 modified, 0 deleted
Triggered by this commit.
Changes:
- Fixed
guardAvailableFeatureused for triggering subscription modal (was moved to another logic in the meantime) - Removed e2e test for the open-ended answer choice. This field is currently not getting auto-selected on text input, which is not a great UX, but we can live with it for a bit longer. Fixing this is beyond the scope of this sprint, but I've created an issue for it.
- Adjusted rendering (see https://github.com/PostHog/posthog-js/pull/1157)
đ¸ UI snapshots have been updated
4 snapshot changes in total. 0 added, 4 modified, 0 deleted:
-
chromium: 0 added, 4 modified, 0 deleted (diff for shard 2) -
webkit: 0 added, 0 modified, 0 deleted
Triggered by this commit.
đ¸ UI snapshots have been updated
1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
-
chromium: 0 added, 1 modified, 0 deleted (diff for shard 2) -
webkit: 0 added, 0 modified, 0 deleted
Triggered by this commit.
One blocking thing I mentioned in the other PR: The preview hides the 'save as draft' button. Otherwise, will give it a final test once the other PR is merged, should be ready to go right after đ
Ready for the final check!
đ¸ UI snapshots have been updated
13 snapshot changes in total. 0 added, 13 modified, 0 deleted:
-
chromium: 0 added, 13 modified, 0 deleted (diff for shard 1, diff for shard 2) -
webkit: 0 added, 0 modified, 0 deleted
Triggered by this commit.
Nice!
Long names bork preview ->
.whitespace-nowrap seems to be the sus class
html links seem to show up red in the preview for some reason -> - ah most probs because posthog styles override the preview styles
We should center the preview ->
CSAT emojis look nicer on prod -> (this is prod)
and local ->
Seems pretty good other than this đ
đ¸ UI snapshots have been updated
12 snapshot changes in total. 0 added, 12 modified, 0 deleted:
-
chromium: 0 added, 12 modified, 0 deleted (diff for shard 1, diff for shard 2) -
webkit: 0 added, 0 modified, 0 deleted
Triggered by this commit.
I've fixed the alignment issues. Can we leave the color of the CSAT emoji for a follow-up? It seems it has to do with how we're attaching stylesheets, but debugging in the current workflow is đŠ
I've confirmed the colors in the edit form and in the live survey are working correctly.