Skip to content

Dismiss notifications instantly and smoothen animations - #3573

Merged
Antreesy merged 7 commits into
masterfrom
fix/dismiss-notification-instantly
Nov 9, 2026
Merged

Antreesy merged 7 commits into
masterfrom
fix/dismiss-notification-instantly

Conversation

@jancborchardt

@jancborchardt jancborchardt commented Nov 5, 2026 •

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)

@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

@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

jancborchardt and others added 5 commits November 9, 2026 14:18
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>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jan C. Borchardt <925062+jancborchardt@users.noreply.github.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Marking the tab as active refreshes the cached notifications.
Doing it before the delete request cached the dismissed
notifications, so they came back on the next poll.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy
Antreesy force-pushed the fix/dismiss-notification-instantly branch from 1a7a632 to 7a67ecb Compare November 9, 2026 14:00

@Antreesy Antreesy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, adjusted some styles and tab leadership (important for fetching order)

The subject text is a flex item, so it could not shrink below
the width of a long user name. The name did not get an ellipsis
and the notification overflowed the panel.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy
Antreesy force-pushed the fix/dismiss-notification-instantly branch from 284dbe8 to 5bfacff Compare November 9, 2026 14:18
@Antreesy

Antreesy commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@Antreesy
Antreesy merged commit fede524 into master Nov 9, 2026
34 checks passed
@Antreesy
Antreesy deleted the fix/dismiss-notification-instantly branch November 9, 2026 16:17
@github-project-automation github-project-automation Bot moved this from 🏗️ At engineering to 🎉 Done in 🖍 Design team Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

Overflowing text triggers horizontal scrollbar display Dismiss notification should hide directly Give feedback with spinners

5 participants