-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fixes toolbar button for Restart Kernel and Run All #13939
Conversation
Thanks for making a pull request to jupyterlab! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be able to add a unit test to
describe('createSemanticCommand', () => { |
Upon further inspection, it looks like (Edit: This is not correct; see comment below from Feb 8) |
…ok restart-run-all command in toolbar
please update galata snapshots |
This PR now fixes all toolbar buttons to have consistent casing by:
The |
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JasonWeill
Since this was merged I saw the icon was gone but instead the text was shown: This was because I had customised my buttons in toolbar (well I did not, but when you go to Notebook Panel in settings it saves the default to user settings) and the old To fix this manually go into Settings → Notebook Panel → find item with I think that this will affect everyone who opened settings Settings → Notebook Panel in earlier version as this wrongly triggers an update. I am not sure if want to take any action here, just flagging this. |
@krassowski I also saw this and I didn't realize that this was the cause. Is there something that I can do to automate this process on upgrade? |
I guess we could consider shipping a migration script, but I think we don't attach application version to the settings which will makes it non trivial. Let's continue the discussion in #13972 |
References
Fixes #11898.
Code changes
Falls back to default label/caption if all labels/captions of subcommands in a semanticCommand are empty strings
User-facing changes
Before the change, the ⏩ toolbar button had the caption " and " (with leading/trailing spaces):
After the change, the "Restart the kernel and run all cells" notebook toolbar button has an appropriate caption:
Other toolbar buttons also have captions in sentence case (only the first word is capitalized) with definite articles used ("Interrupt Kernel" becomes "Interrupt the kernel").
Backwards-incompatible changes
None.