Skip to content

refactor(links): derive link bubble state in plugin state apply - #9556

Open
mejo- wants to merge 1 commit into
mainfrom
fix/link_bubble_state_from_state
Open

mejo- wants to merge 1 commit into
mainfrom
fix/link_bubble_state_from_state

Conversation

@mejo-

@mejo- mejo- commented Nov 5, 2026

Copy link
Copy Markdown
Member

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.

Assisted-by: ClaudeCode:claude-opus-5-5

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

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- mejo- self-assigned this Nov 5, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Nov 5, 2026
@nextcloud-command nextcloud-command added the AI assisted This PR contains AI-assisted commits label Nov 5, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Nov 5, 2026

This branch has not been deployed

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

Labels

3. to review AI assisted This PR contains AI-assisted commits technical debt

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

2 participants