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: Delay take now error message by 500ms #520

Closed
wants to merge 1 commit into from

Conversation

sultanofcardio
Copy link
Contributor

@sultanofcardio sultanofcardio commented Aug 6, 2024

📝 Description

Note

This is a quick PR for something I noticed while recording a loom. No ticket exists for this fix

When a participant mismatch happens, they're supposed to be shown an error message so they can re-initiate take now from the admin panel. The error message is being shown before the navigation happens, so it ends up disappearing very quickly (possibly before being seen).

We need to delay it a bit more, so it gets shown after navigation. I've addd a 500ms delay to achieve this.

📸 Screenshots

Before

Banner disappears quickly

disappearing-banner-clip.mov

After

Banner persists

persistent-banner.mov

✏️ Notes

N/A

The error message is being shown before the navigation happens, so it ends up disappearing.

We need to delay it a bit more, so it gets shown after navigation
@sultanofcardio sultanofcardio self-assigned this Aug 6, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-520.d15zn9do8xbzga.amplifyapp.com

Copy link
Contributor

@farmerpaul farmerpaul left a comment

Choose a reason for hiding this comment

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

Probably a better solution would be to support adding a banner upon logout? But this is totally fine for now, hopefully we don't have to revisit this for another banner someday. 😉

@sultanofcardio
Copy link
Contributor Author

Superseded by #539

@sultanofcardio sultanofcardio deleted the fix/take-now-error-msg branch October 25, 2024 14:46
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