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: add copy for the survey wait period as part of the display conditions summary #22532

Merged
merged 2 commits into from
May 28, 2024

Conversation

dmarticus
Copy link
Contributor

Problem

As part of this PR, I made a change to how we show the survey display conditions summary. However, as Neil pointed out, I missed a condition for the waiting period, so it displays nothing in that case.

Changes

Before (buggy behavior)

Screenshot 2024-05-27 at 11 26 27 AM

After (fix)

Screenshot 2024-05-27 at 11 25 48 AM

Copy link
Contributor

github-actions bot commented May 27, 2024

Size Change: +60 B (+0.01%)

Total Size: 1.03 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.03 MB +60 B (+0.01%)

compressed-size-action

@dmarticus dmarticus requested a review from neilkakkar May 28, 2024 15:02
Copy link
Contributor

@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.

🙌

<div className="flex-row">
<span>Wait period after seeing survey:</span>{' '}
<span className="simple-tag tag-light-blue text-primary-alt">
{survey.conditions.seenSurveyWaitPeriodInDays} days
Copy link
Contributor

Choose a reason for hiding this comment

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

will output 1 days 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤦

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay fixed this and fixed the targeting selection option to say "day" if the user selects 1 day

2024-05-28 08 28 52

@dmarticus dmarticus merged commit f2ba4ec into master May 28, 2024
83 checks passed
@dmarticus dmarticus deleted the fix/survey-release-summary-needs-default-text branch May 28, 2024 16:04
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.

2 participants