-
Notifications
You must be signed in to change notification settings - Fork 482
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
[student-libraries] Allow renaming a library when creating/publishing it #32599
Conversation
"libraryExportNoCommentError": "This function cannot be exported until you add a comment to it.", | ||
"libraryExportTitle": "Export Functions as a Library", | ||
"libraryName": "Library Name:", | ||
"libraryName": "Library Name", | ||
"libraryNameRequirements": "Your library's name must start with a capital letter and use only letters, numbers, and underscores.", |
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.
note that many languages have no concept of capital letters
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.
I believe this came from a desire to teach good naming conventions.
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.
Oh you mean written/spoken languages - not programming languages.
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.
Great point. I'll circle back with curriculum and prod on that one.
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.
LGTM
export function suggestName(libraryName) { | ||
let suggestedName = sanitizeName(libraryName); | ||
if (suggestedName.length === 0 || !isNaN(suggestedName.charAt(0))) { | ||
suggestedName = 'Lib' + suggestedName; |
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.
Is this okay for non-English libraries?
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.
Hmmm great question. I'll circle back with the curriculum & prod teams on that one.
RE: Comments regarding internationalization. I've started a thread with curriculum & prod, but I don't think this should block this PR because as these issues are not introduced by this PR and will be straightforward to update/fix when answers come in. I've scheduled that work as followup. |
Description
OLD:
![image](https://user-images.githubusercontent.com/8324574/72107548-68c79a80-32e6-11ea-9693-d1a8d946bb22.png)
NEW:
![image](https://user-images.githubusercontent.com/8324574/72107643-97457580-32e6-11ea-933b-c80440d487bf.png)
Links
Testing story
Reviewer Checklist: