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

Update copy on experiment without results #2498

Merged
merged 1 commit into from
May 9, 2024

Conversation

Kevin-Chant
Copy link
Contributor

Features and Changes

Change text when experiment hasn't started yet to fix awkward copy

Also added a new helper to the shared dates utils to grab the relative date compared to now, as ago doesn't work well for future dates.

Dependencies

None

Testing

  • Open a sample experiment and edit the main phase to start at a future date
    image

  • Also verify that using a timestamp in the last 2 hours still triggers the existing copy

  • And check that setting the phase to start > 2 hours ago allows results to show again

Screenshots

Existing copy still applies:
image

Examples of copy with future dates:
image
image
image
image

Experiment results are not hidden when the phase properly starts in the past:
image

Copy link

github-actions bot commented May 8, 2024

Your preview environment pr-2498-bttf has been deployed.

Copy link
Member

@bryce-fitzsimons bryce-fitzsimons left a comment

Choose a reason for hiding this comment

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

See if you can get your IDE or linter from reordering the imports. Otherwise looks good.

Change text when experiment hasn't started yet
#318
@Kevin-Chant Kevin-Chant merged commit be271b2 into main May 9, 2024
3 checks passed
@Kevin-Chant Kevin-Chant deleted the kc/future-experiment-copy branch May 9, 2024 17:01
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.

Fix language for experiments in the future
2 participants