Skip to content

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

Merged
Wroud merged 9 commits intodevelfrom
CB-3015-show-notification-about-disconnecting-from-a-database-for-more-time
Jan 22, 2024
Merged

CB-3015: adds an fadeout animation & min close delay time to all noti…#2306
Wroud merged 9 commits intodevelfrom
CB-3015-show-notification-about-disconnecting-from-a-database-for-more-time

Conversation

@sergeyteleshev
Copy link
Copy Markdown
Contributor

@sergeyteleshev sergeyteleshev commented Jan 16, 2024

No description provided.

@sergeyteleshev sergeyteleshev self-assigned this Jan 16, 2024
@Wroud
Copy link
Copy Markdown
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
Copy Markdown
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
Comment thread webapp/packages/core-blocks/src/Snackbars/ProcessSnackbar.tsx Outdated
@Wroud Wroud merged commit 35b625c into devel Jan 22, 2024
@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