Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dedicated Widget Blocks: Second Attempt #2063

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

AlexGStapleton
Copy link
Member

Second attempt at #1813. Please refer to that PR for information regarding changes made prior to anything in this PR.

Unfortunately, too many changes that depended on each other or for the blocks to simply function so I couldn't split them over multiple commits.

Here's a rough summary of changes post #1813:

  • Set up a dedicated edit component.
  • Improved block re-render handling after change.
  • Resolve dev mode remount issues.
  • Improve preview load handling to cut down on redundant loads.
  • Prevent initial preview loading issues if a large number of Widget Blocks are present on a page.
  • Improved preview placeholder (spinner will now show after the first preview load).
  • Resolved situation where widget form won't work after loading the preview, and then switching back.
  • Added additional docs.

There are likely more little changes here and there that aren't covered in the above change. There are a lot of moving parts.

This gets this branch to where #1813 was prior to revert. Minus some changes after that PR was merged. This is used as a starting point.
Unfortunately, too many dependent changes were made at once so can't split them over multiple commits.

- Setup dedicated edit component.
- Improved block re-render handling after change.
- Resolve dev mode remount issues.
- Improve preview load handling to cut down on redundent loads.
- Prevent initial preview loading issue if there's a large number of Widget Blocks present on a page.
- Improved preview placeholder (spinner will now show after the first preview load).
- Added additional docs.

There's likely more little changes here and there that aren't covered in the above change. Lotta moving parts.
@AlexGStapleton AlexGStapleton self-assigned this Dec 2, 2024
@AlexGStapleton
Copy link
Member Author

Working on loading the actual widget icons rather than the generic icon currently being used.

@AlexGStapleton AlexGStapleton marked this pull request as ready for review December 4, 2024 10:12
@AlexGStapleton
Copy link
Member Author

I've added the block specific icons. I don't think the existing widget icons (known internally as banner) look very good here so I've opted to instead look for assets/icon.svg in the widget directory. That'll give us the option of doing this later. We could also switch over to the banners quite easily.

existing-banners

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant