Skip to content

Dismiss notifications instantly and smoothen animations - #3573

Open
jancborchardt wants to merge 4 commits into
masterfrom
fix/dismiss-notification-instantly
Open

jancborchardt wants to merge 4 commits into
masterfrom
fix/dismiss-notification-instantly

Conversation

@jancborchardt

Copy link
Copy Markdown
Member

When dismissing a notification via the x button, the animation played only after a short delay, making the interface seem not responsive.

This PR fixes that by optimistically removing dismissed notifications without waiting for server, and restoring them if it fails. Additionally the previously janky animation has been smoothened.

Before (you can’t really see it in the screencast but there is a significant delay between clicking and dismissing) After
Screencast.From.2026-11-05.15-22-52.webm
Screencast.From.2026-11-05.15-21-21.webm

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (ClaudeCode:claude-opus-5-5)

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jan C. Borchardt <925062+jancborchardt@users.noreply.github.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jan C. Borchardt <925062+jancborchardt@users.noreply.github.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jan C. Borchardt <925062+jancborchardt@users.noreply.github.com>

@kra-mo kra-mo left a comment

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.

Nice, also fixes the issue I mentioned :)

@kra-mo kra-mo left a comment

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.

Well actually, it seems like a scrollbar appears every time a notification is dismissed? I guess horizontal overflow should be disabled for the view.

@nickvergessen nickvergessen added this to the Nextcloud 36 milestone Nov 5, 2026
@nickvergessen

Copy link
Copy Markdown
Member

Review of @Antreesy is mandatory

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jan C. Borchardt <925062+jancborchardt@users.noreply.github.com>
@jancborchardt
jancborchardt force-pushed the fix/dismiss-notification-instantly branch from 15ee1a7 to 1a7a632 Compare November 5, 2026 14:41
@jancborchardt
jancborchardt requested a review from kra-mo November 5, 2026 14:41
@jancborchardt

Copy link
Copy Markdown
Member Author

Well actually, it seems like a scrollbar appears every time a notification is dismissed? I guess horizontal overflow should be disabled for the view.

@kra-mo good catch, I missed that! Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🏗️ At engineering

Development

Successfully merging this pull request may close these issues.

3 participants