Skip to content

fix: keep selection action bar open while blocks remain selected - #13353

Merged
tiensonqin merged 1 commit into
masterfrom
devin/1789998488-selection-action-bar
Sep 21, 2026
Merged

tiensonqin merged 1 commit into
masterfrom
devin/1789998488-selection-action-bar

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Fixes logseq/db-test#1230.

With multiple blocks selected, running an action that keeps the selection (set tags, set property, unset property) opened a dialog whose on-dialog-close unconditionally fired :editor/hide-action-bar — the top bar disappeared while the blocks stayed selected, forcing a deselect/re-select cycle for each additional action.

Adds restore-action-bar in frontend.components.selection: hide the bar, then call editor-handler/show-action-bar!, which re-shows it only when a selection still exists. Actions that clear the selection (copy, cut/delete, add-comment) still close the bar as before.

Link to Devin session: https://app.devin.ai/sessions/8c63498005cb42aab2be35a63617782c
Open in Devin Desktop: https://app.devin.ai/desktop/session/8c63498005cb42aab2be35a63617782c?variant=devin
Requested by: @tiensonqin

Actions that leave the multi-selection active (set tags, set/unset
property) closed the selection top bar on dialog close. Restore the bar
after the dialog closes when blocks are still selected; it stays closed
when the action cleared the selection (copy, cut, delete).

Fixes logseq/db-test#1230

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Tested end-to-end in the web app (pnpm watch, localhost:3001) on a DB graph — before/after demo below.

Before (master): select 3 blocks → Set property → close dialog → action bar disappears while blocks remain selected (logseq/db-test#1230 repro).

After (this PR): same flow → action bar re-appears after the dialog closes while blocks stay selected. Copy still clears the selection and closes the bar as before.

Before After
before: blocks still selected, no action bar after: action bar restored over selection

demo

Repro steps
  1. Open a DB graph page with 3 blocks.
  2. Click into the last block, press Escape, then Shift+Up twice to select all 3.
  3. Click "Set property" in the top action bar, then press Escape to close the dialog.
  4. Master: bar gone, selection remains. Fix: bar re-shown, selection remains.

@tiensonqin
tiensonqin merged commit 8060fa6 into master Sep 21, 2026
16 of 17 checks passed
@tiensonqin
tiensonqin deleted the devin/1789998488-selection-action-bar branch September 21, 2026 14:33
devin-ai-integration Bot added a commit that referenced this pull request Oct 1, 2026
)

Actions that leave the multi-selection active (set tags, set/unset
property) closed the selection top bar on dialog close. Restore the bar
after the dialog closes when blocks are still selected; it stays closed
when the action cleared the selection (copy, cut, delete).

Fixes logseq/db-test#1230

Co-authored-by: Tienson Qin <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration Bot added a commit that referenced this pull request Oct 8, 2026
)

Actions that leave the multi-selection active (set tags, set/unset
property) closed the selection top bar on dialog close. Restore the bar
after the dialog closes when blocks are still selected; it stays closed
when the action cleared the selection (copy, cut, delete).

Fixes logseq/db-test#1230

Co-authored-by: Tienson Qin <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration Bot added a commit that referenced this pull request Oct 8, 2026
)

Actions that leave the multi-selection active (set tags, set/unset
property) closed the selection top bar on dialog close. Restore the bar
after the dialog closes when blocks are still selected; it stays closed
when the action cleared the selection (copy, cut, delete).

Fixes logseq/db-test#1230

Co-authored-by: Tienson Qin <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

[Suggestion] Keep block selection top bar open while blocks remain selected

1 participant