Skip to content

Conversation

@lizlooney
Copy link
Collaborator

@lizlooney lizlooney commented Mar 5, 2025

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

@lizlooney lizlooney requested a review from alan412 March 5, 2025 06:45

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';
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

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';
Copy link
Collaborator

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

Copy link
Collaborator Author

@lizlooney lizlooney Mar 7, 2025

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@alan412 alan412 left a 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.....

@lizlooney lizlooney merged commit 18532ff into wpilibsuite:main Mar 7, 2025
1 check passed
@lizlooney lizlooney deleted the pr_ask_for_class_name branch March 7, 2025 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants