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

Refactor TutorialStore hasNotSeenTutorialBefore to return false if UPP or tutorial not determined #2893

Merged
merged 3 commits into from
Feb 24, 2022

Conversation

mcbouslog
Copy link
Contributor

@mcbouslog mcbouslog commented Feb 24, 2022

Package:

  • lib-classifier

Closes #2894 .

Describe your changes:

  • refactors TutorialStore hasNotSeenTutorialBefore to return false if:
    • UPP initialized, loading, or errors (i.e. loadingState !== success) because we don't know if user hasn't seen tutorial until UPP are loaded or if signed out store will change state to success but leave UPP.active undefined
    • if tutorial undefined

Helpful explanations that will make your reviewer happy:

Review Checklist

General

  • Are the tests passing locally and on Travis?
  • Is the documentation up to date?

Components

Apps

  • Does it work in all major browsers: Firefox, Chrome, Edge, Safari?
  • Does it work on mobile?
  • Can you yarn panic && yarn bootstrap or docker-compose up --build and app works as expected?

Publishing

  • Is the changelog updated?
  • Are the dependencies updated for apps and libraries that are using the newly published library?

Post-merging

Copy link
Contributor

@eatyourgreens eatyourgreens left a comment

Choose a reason for hiding this comment

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

Remove the tryReference and I think this is good to go.

@github-actions github-actions bot added the approved This PR is approved for merging label Feb 24, 2022
Copy link
Contributor

@goplayoutside3 goplayoutside3 left a comment

Choose a reason for hiding this comment

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

Looks good! Tests are passing locally and UPP working as expected.

I visited TESS with this branch, dismissed the tutorial, navigated away and then back to Classify page and the tutorial was not prompted again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This PR is approved for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modal tutorial prompts before UPP can load to determine if tutorial should prompt
3 participants