-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding sample instructions property #259
base: main
Are you sure you want to change the base?
Conversation
@zateutsch, would love your review here to ensure consistency |
@@ -94,6 +94,7 @@ internal static partial class ScenarioCategoryHelpers | |||
ScenarioType = ScenarioType.{{scenarioCategory.Key}}{{scenario.Key}}, | |||
Name = "{{scenario.Value.Name}}", | |||
Description = "{{scenario.Value.Description}}", | |||
Instructions = "{{scenario.Value.Instructions}}", |
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.
The way this is setup, you would create an empty string, not a null string, but the type is defined as nullable in the Scenario class (in the SG project). Lets just make sure typing there is meaningful. It seems like this property shouldn't be null, so if it is we should fail, not write "". If, on the other hand, the type should be nullable (like how it is defined), the type in the main project should not be initialized as "", but rather with null.
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.
Just a few edits, but I'm really just providing review to myself hahaha
Co-authored-by: Zach Teutsch <88554871+zateutsch@users.noreply.github.com>
Co-authored-by: Zach Teutsch <88554871+zateutsch@users.noreply.github.com>
Co-authored-by: Zach Teutsch <88554871+zateutsch@users.noreply.github.com>
Co-authored-by: Zach Teutsch <88554871+zateutsch@users.noreply.github.com>
Moving the sample instructions to a dedicated property. Closes: #258
For now, showing this under an i button: