Skip to content

Site Title Block: Refactor settings panel to use ToolsPanel#67898

Merged
fabiankaegy merged 1 commit into
WordPress:trunkfrom
Sukhendu2002:refactor/site-title-block-settings-panel
Dec 13, 2024
Merged

Site Title Block: Refactor settings panel to use ToolsPanel#67898
fabiankaegy merged 1 commit into
WordPress:trunkfrom
Sukhendu2002:refactor/site-title-block-settings-panel

Conversation

@Sukhendu2002

Copy link
Copy Markdown
Contributor

Part of: #67813

What?

Refactored Site Title Block code to include ToolsPanel instead of PanelBody.

Screenshots or screencast

Before After
image image

@fabiankaegy fabiankaegy added [Type] Enhancement A suggestion for improvement. [Block] Site Title Affects the Site Title Block labels Dec 12, 2024
@fabiankaegy

Copy link
Copy Markdown
Member

@Sukhendu2002 there is a Unit Test that needs to be updated here

@Sukhendu2002 Sukhendu2002 reopened this Dec 13, 2024
@Sukhendu2002 Sukhendu2002 marked this pull request as ready for review December 13, 2024 12:01
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>
Co-authored-by: fabiankaegy <fabiankaegy@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Sukhendu2002

Copy link
Copy Markdown
Contributor Author

@fabiankaegy I believe the issue was with a GitHub Action. I reran the tests, and they all passed.

@fabiankaegy fabiankaegy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This works as expected 👍 :)

CleanShot.2024-12-13.at.15.29.15.mp4

@fabiankaegy fabiankaegy merged commit c8cdff3 into WordPress:trunk Dec 13, 2024
@github-actions github-actions Bot added this to the Gutenberg 20.0 milestone Dec 13, 2024
yogeshbhutkar pushed a commit to yogeshbhutkar/gutenberg that referenced this pull request Dec 18, 2024
…ad of PanelBody (WordPress#67898)

Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>
Co-authored-by: fabiankaegy <fabiankaegy@git.wordpress.org>
yogeshbhutkar pushed a commit to yogeshbhutkar/gutenberg that referenced this pull request Dec 18, 2024
…ad of PanelBody (WordPress#67898)

Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>
Co-authored-by: fabiankaegy <fabiankaegy@git.wordpress.org>
} }
>
<ToolsPanelItem
hasValue={ () => isLink !== false }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The default value for isLink is true, so having a value means that the value is false.

Therefore, the boolean value here should be reversed, or this setting won't reset properly.

@Sukhendu2002 Sukhendu2002 Dec 25, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @t-hamano, Thanks for pointing out the issue. I've raised a PR to address this. Please take a look at it when you have time.

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

Labels

[Block] Site Title Affects the Site Title Block [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor "Settings" panel of Site Title block to use ToolsPanel instead of PanelBody

3 participants