Repository navigation
[stable35] refactor(links): derive link bubble state in plugin state apply - #9579
Merged
Merged
Conversation
backportbot
Bot
requested review from
max-nextcloud,
mejo- and
silverkszlo
as code owners
November 9, 2026 12:23
The link bubble plugin used appendTransaction to work out the active link from the selection, which dispatched an extra transaction on every selection change. Do this in the plugin state's apply() instead, which gets the old and new state as arguments. This also replaces the full document comparison (doc.eq) with tr.docChanged, and adds tests for the derived bubble state. Signed-off-by: Jonas <jonas@freesources.org> Assisted-by: ClaudeCode:claude-opus-5-5
mejo-
approved these changes
Nov 9, 2026
backportbot
Bot
force-pushed
the
backport/9556/stable35
branch
from
November 9, 2026 12:23
6aca827 to
8e3abe1
Compare
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of PR #9556