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 bug with flickering pop-up #58539

Merged
merged 4 commits into from May 13, 2024
Merged

Conversation

kobryan0619
Copy link
Contributor

@kobryan0619 kobryan0619 commented May 10, 2024

Liam noticed that when the progress page re-loaded, the invitation to see the new progress view would flicker open.

Screen.Recording.2024-05-10.at.10.08.25.AM.mov

This PR addresses that issue.

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

dateProgressTableInvitationDelayed === undefined ||
hasSeenProgressTableInvite === undefined
) {
// Do not proceed if data has not been fully loaded.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Intentionally left this comment in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that once this data is fully loaded (for even a brand new user), the values are set to null and false
image

Copy link
Contributor

@lfryemason lfryemason left a comment

Choose a reason for hiding this comment

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

Two non-blocking comments, otherwise looks good to merge

@@ -35,7 +35,10 @@ describe('UnconnectedInviteToV2ProgressModal', () => {
}

it('renders the dialog with required elements', () => {
renderDefault();
renderDefault({
hasSeenProgressTableInvite: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we just add these to DEFAULT_PROPS?

@@ -141,8 +141,6 @@ describe('SectionProgressSelector', () => {
it('sets user preference when link clicked', () => {
renderDefault();

const remindLaterLink = screen.getByText('Remind me later');
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we removing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the original tests we added this in because the pop-up got in the way of viewing the screen with the SectionProgressSelector in it. With the changes to how the pop-up is rendered, it will not render the pop-up until it has data back from Redux about if the pop-up hasBeeenSeen or if there is a dateLastDelayed. We could make add these reducers to this test, but given that this test is more about testing the SectionProgressSelector and we already have eyes tests that ensure that this works, I was thinking that wasn't necessary. Thoughts?

@kobryan0619 kobryan0619 merged commit 1c0bff5 into staging May 13, 2024
2 checks passed
@kobryan0619 kobryan0619 deleted the kaitie/fix-quick-pop-up-bug branch May 13, 2024 15:32
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.

None yet

2 participants