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

fix: removed underscore from isLabel_ in flyout_button.ts #7533

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

sayalikandarkar
Copy link
Contributor

@sayalikandarkar sayalikandarkar commented Sep 22, 2023

The basics

The details

Resolves

Fixes #7526

Proposed Changes

This pr renames the incorrectly labeled variable and removes underscore from it precisely

Reason for Changes

Test Coverage

I did npm run and tested all the buttons before and after and checked the entire functionality once
I have attached a screenshot of the working functionality after making the changes

Documentation

I don't believe any additional documentation is required blockly

Additional Information

@sayalikandarkar sayalikandarkar requested a review from a team as a code owner September 22, 2023 21:41
@google-cla
Copy link

google-cla bot commented Sep 22, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome! It looks like this is your first pull request in Blockly, so here are a couple of tips:

  • You can find tips about contributing to Blockly and how to
    validate your changes on our
    developer site.

  • All contributors must sign the Google Contributor License
    Agreement (CLA). If the google-cla bot leaves a comment on this
    PR, make sure you follow the instructions.

  • We use conventional commits
    to make versioning the package easier. Make sure your commit
    message is in the proper format
    or learn how to fix it.

  • If any of the other checks on this PR fail, you can click on
    them to learn why. It might be that your change caused a test
    failure, or that you need to double-check the
    style guide.

Thank you for opening this PR! A member of the Blockly team will review it soon.

@@ -227,8 +227,8 @@ export class FlyoutButton {
}

/** @returns Whether or not the button is a label. */
isLabel(): boolean {
return this.isLabel_;
isButtonLabel(): boolean {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Aha, this must be why we didn't make this change before. The isLabel method is public, so we don't want to rename it.

Instead, please change isLabel_ -> isFlyoutLabel.

Sorry for the wrong instructions!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey Rachel,

Thank you so much for your review.
I made the necessary changes and pushed them.
Could you please take a look once?

Thanks,
Sayali

@rachel-fenichel
Copy link
Collaborator

Thanks!

Two things left:

  • Update the PR title to match conventional commits: "chore: rename isLabel_ to isFlyoutLabel in flyout_button.ts"
  • Run npm run format locally to format the file, then commit the result.

@BeksOmega BeksOmega changed the title Removed underscore from isLabel_ in flyout_button.ts fix: removed underscore from isLabel_ in flyout_button.ts Sep 22, 2023
@github-actions github-actions bot added the PR: fix Fixes a bug label Sep 22, 2023
@BeksOmega
Copy link
Collaborator

@rachel-fenichel I think this is good to go!

@rachel-fenichel rachel-fenichel enabled auto-merge (squash) September 22, 2023 22:31
@rachel-fenichel rachel-fenichel merged commit e4d8f16 into google:osd Sep 22, 2023
9 checks passed
@rachel-fenichel
Copy link
Collaborator

🥳 Thanks @sayalikandarkar!

@sayalikandarkar
Copy link
Contributor Author

Thank you so much @rachel-fenichel for all your feedback :)
I had a great time working on blockly ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove underscore from isLabel_ in flyout_button.ts
4 participants