Skip to content

Conversation

@nielslyngsoe
Copy link
Member

@nielslyngsoe nielslyngsoe commented Nov 14, 2025

Fixes #20704
Fixes #17403

Notice there is two cases that this issue fixes, the two cases mentioned in the issue.

Please test Block Grid Editor, with only one item allowed in a root and in an area, but still two types declared. to ensure that it works right.

For Block List Editor, test in inline editing mode that it works with both one or more.

Copilot AI review requested due to automatic review settings November 14, 2025 12:21
Copilot finished reviewing on behalf of nielslyngsoe November 14, 2025 12:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes issue #20704 by improving the UX flow when creating blocks in Block List and Block Grid editors. The changes enable direct block creation when only one block type is available, bypassing the catalog selection modal, with special handling for inline editing mode.

  • Improved UX for single block type scenarios in Block Grid and Block List editors
  • Added smart path generation that directly opens the block workspace when only one type is available
  • Enhanced Block List editor to support inline creation when using inline editing mode with a single block type

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
property-editor-ui-block-list.element.ts Refactored create button logic to support inline block creation and direct workspace opening for single block type scenarios
block-grid-entries.context.ts Updated path builder to automatically append the block workspace route when only one block type is allowed

@nielslyngsoe nielslyngsoe enabled auto-merge (squash) November 14, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants