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

CB-3015: adds an fadeout animation & min close delay time to all noti… #2306

Conversation

sergeyteleshev
Copy link
Contributor

@sergeyteleshev sergeyteleshev commented Jan 16, 2024

No description provided.

@sergeyteleshev sergeyteleshev self-assigned this Jan 16, 2024
@Wroud
Copy link
Member

Wroud commented Jan 17, 2024

i also can suggest to not to show notification right when some process started
it's better to not show it at all if process is fast
so lets assert that if some process takes longer then 300ms then we need to show some indication (notification or loader)

Comment on lines 27 to 32
let closeDelay = 0;
let closeDelay = MIN_CLOSE_DELAY;

if (notification.type !== ENotificationType.Error && !notification.persistent && notification.autoClose !== false) {
closeDelay = FADE_TIMEOUT;
Copy link
Member

Choose a reason for hiding this comment

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

it's possible that we now broke this behavior (that some notifications must be closed instantly and some not)
and we have two different delays

now, all notifications will be closed after MIN_CLOSE_DELAY even when we want them to be open

check useActivationDelay in Snackbar

@sergeyteleshev sergeyteleshev requested a review from Wroud January 18, 2024 12:03
@Wroud Wroud merged commit 35b625c into devel Jan 22, 2024
3 checks passed
@Wroud Wroud deleted the CB-3015-show-notification-about-disconnecting-from-a-database-for-more-time branch January 22, 2024 15:31
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.

3 participants