Skip to content

Workaround for empty unique variable editing blockgrid / blocklist#214

Merged
rickbutterfield merged 2 commits intorickbutterfield:v5/mainfrom
GianniDPC:v5/main
Jan 8, 2026
Merged

Workaround for empty unique variable editing blockgrid / blocklist#214
rickbutterfield merged 2 commits intorickbutterfield:v5/mainfrom
GianniDPC:v5/main

Conversation

@GianniDPC
Copy link
Copy Markdown
Contributor

This seems to fix the issue #213

Copy link
Copy Markdown
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 pull request addresses issue #213 by implementing a workaround for empty unique variable values when editing blockgrid and blocklist elements. The fix introduces a fallback mechanism to extract the document unique identifier from the workspace edit path when it's not available from the context.

Key changes:

  • Adds a new #extractUniqueFromWorkspacePath method that uses regex to extract UUIDs from workspace paths
  • Implements fallback logic in multiple locations to populate the unique value when it's empty
  • Includes minor formatting and whitespace adjustments in block-grid-preview

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
rich-text-preview.custom-view.element.ts Adds fallback logic to extract unique from workspace path and implements the extraction method
block-list-preview.custom-view.element.ts Adds identical fallback logic and extraction method for block list previews
block-grid-preview.custom-view.element.ts Adds fallback logic, extraction method, and includes formatting/whitespace cleanup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rickbutterfield rickbutterfield changed the base branch from v5/dev to v5/main January 8, 2026 09:37
@rickbutterfield rickbutterfield merged commit c5465d2 into rickbutterfield:v5/main Jan 8, 2026
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.

3 participants