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

Add custom color controls #14

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

Add custom color controls #14

wants to merge 17 commits into from

Conversation

KokkieH
Copy link
Owner

@KokkieH KokkieH commented Mar 9, 2022

Fixes #11

setAttributes( { commitMessage: data.commit.message } );
} )
.catch( error => {
setAttributes( { commitSha: "Please enter a valid commit ID." } );
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wrapping the text constant with a translation function would make it even better.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I plan to add translation in a different PR: I need to go through the entire plugin and make sure all strings are internationalized and using the correct text-domain, and at this point it makes more sense to me to do that all at once to ensure consistency.

<div id="gh-commit-widget-controls">
<fieldset>
<legend className="blocks-base-control__label">
Commit Hash
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here too

@tgglv
Copy link
Collaborator

tgglv commented Mar 15, 2022

Thanks, @KokkieH! Changes look great.

The approach we use in WCCOM implies that developer writes testing instructions for other developers on how to repeat/see what was done and how to make sure it works as expected. Optionally, you can add those instructions in this PR to train writing instructions of this kind.

@KokkieH
Copy link
Owner Author

KokkieH commented Mar 16, 2022

The approach we use in WCCOM implies that developer writes testing instructions for other developers on how to repeat/see what was done and how to make sure it works as expected.

Thanks for the feedback. I'm still working on this one, though, so it's really just a stub at this point. I plan to flesh out the PR description once it's ready to ship :)

@KokkieH KokkieH marked this pull request as draft March 22, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve block color controls
2 participants