- 
                Notifications
    
You must be signed in to change notification settings  - Fork 9
 
Ask for class name (instead of module/file name) in dialog boxes #89
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
Conversation
…ewProjectNameModal.tsx.
…wModuleNameModal.tsx.
…s name. Show class names in the tree, instead of the module (file) names.
        
          
                src/modal/NewModuleNameModal.tsx
              
                Outdated
          
        
      | 
               | 
          ||
| const DESCRIPTION = 'No spaces are allowed in the name. Each word in the name should start with a capital letter.'; | ||
| 
               | 
          ||
| export const EXAMPLE_MECHANISM = 'For example, GamePieceShooter'; | 
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.
Should this be:
For example: GamePieceShooter
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.
Done
        
          
                src/modal/NewModuleNameModal.tsx
              
                Outdated
          
        
      | const DESCRIPTION = 'No spaces are allowed in the name. Each word in the name should start with a capital letter.'; | ||
| 
               | 
          ||
| export const EXAMPLE_MECHANISM = 'For example, GamePieceShooter'; | ||
| export const EXAMPLE_OPMODE = 'For example, AutoParkAndShoot'; | 
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.
Should this be:
For example: AutoParkAndShoot
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.
Done
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 had two questions, but I am not sure I should be the authority on grammar in dialog boxes. You can merge it either way. I suspect when we get later in this project, we'll have people having lots of UI and text comments anyways.....
…face into pr_ask_for_class_name
Fixes #57
Force class names to start with uppercase letter
Fixes #75
The new Project/OpMode/Mechanism dialog should ask for the class name (PascalCase)
Fixes #76
The tree should show the class names not the file names
Fixes #77
The Module class (in common_storage.ts) should have a field for className