-
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
feat(surveys): replace surveys preview #20321
Conversation
📸 UI snapshots have been updated28 snapshot changes in total. 0 added, 28 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
Changes:
|
📸 UI snapshots have been updated4 snapshot changes in total. 0 added, 4 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 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 👍 |
📸 UI snapshots have been updated13 snapshot changes in total. 0 added, 13 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated12 snapshot changes in total. 0 added, 12 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. |
} | ||
return '-inf' |
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.
is this based on master correctly 🤔 , iirc this if-else change should already be in master
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.
}, | ||
{ | ||
label: 'Rating', | ||
value: SurveyQuestionType.Rating, | ||
tooltip: () => ( | ||
<SurveyRatingAppearance |
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.
oh interesting, we're removing these, but would be nice to bring back in a future refactor. I'm assuming this was removed because the preview is now coming from the js package
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.
Issue created: #21941
@@ -168,60 +167,6 @@ describe('Surveys', () => { | |||
cy.get('.Toastify__toast-body').contains('Survey deleted').should('be.visible') | |||
}) | |||
|
|||
it('creates a new multiple choice survey with an open-ended choice', () => { |
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.
don't remember the context for deleting this, but if its something to be fixed in the future, can we instead do it.skip()
?
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've created an issue and saved the deleted test in a Gist attached: #21877
But it.skip()
is handy, will keep in mind for the next time 👍
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.
ah perf
Problem
Changes
remake of #20280
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?