Closed jperson2000 closed 2 weeks ago
Here's another batch of documented components @danielchalmers @henon @mikes-gh when you get time. I'm going to hold off documenting MudColorPicker
until #8826 is completed, to avoid merge conflicts. Thanks!
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 90.11%. Comparing base (
28bc599
) to head (0f50c06
). Report is 125 commits behind head on dev.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I know this is kind of late but I wonder if "Gets or sets" is necessary. If it's a Parameter it's almost always going to support those two things so it's kind of just duplicated text.
"Gets or sets the text to display next to the checkbox." could be "The text to display next to the checkbox."
"Gets or sets whether the appbar will be placed at the bottom of the screen instead of the top." -> "Whether the appbar will be placed at the bottom of the screen instead of the top."
More concise and takes up less space in the docs (same reasoning as before). This is just my opinion. What do you think? Still looks good in general!
I know this is kind of late but I wonder if "Gets or sets" is necessary. If it's a Parameter it's almost always going to support those two things so it's kind of just duplicated text.
"Gets or sets the text to display next to the checkbox." could be "The text to display next to the checkbox."
"Gets or sets whether the appbar will be placed at the bottom of the screen instead of the top." -> "Whether the appbar will be placed at the bottom of the screen instead of the top."
More concise and takes up less space in the docs (same reasoning as before). This is just my opinion. What do you think? Still looks good in general!
That's a good point since MudBlazor components have almost entirely Get/Set properties. "Gets or sets" used to be enforced via StyleCop SA1623, but that was 7 years ago and there don't seem to be any modern Code Analysis rules for XML documentation in regards to phrasing these days. Even Blazor's own XML documentation shows no standard, with CascadingValue using summaries with just "The", whereas ChangeEventArgs uses "Gets or sets".
If others @henon @ScarletKuro @mikes-gh can give your opinion on this that would be great. Should we make public property summaries just start with "The" instead of "Gets or sets" to slim down the docs? If so, I will use that convention going forward and will fix up previously documented classes so everything is consistent.
"Whether the appbar will be placed at the bottom of the screen instead of the top."
Problem is, this is not a valid English sentence. "Determines whether ..." on the other hand, would be acceptable. I think our language cop @mikes-gh should weigh in on this too.
If others @henon @ScarletKuro @mikes-gh can give your opinion on this that would be great.
I don't have a strong opinion on that, as it's very standard for properties and verbosity in docs doesn't scare me.
Maybe lately I try to avoid word "get" for blazor parameters, because it's for the parent-child communication, and because of such https://github.com/MudBlazor/MudBlazor/issues/8485 issues the "get" might be little misleading it's not something what user expect, in the issue the user expects the parameters Hidden
to be true, but it's not, because he is not using two way binding for the parent to set, therefore it doesn't really represent the real state of the component.
"Whether the appbar will be placed at the bottom of the screen instead of the top."
Problem is, this is not a valid English sentence. "Determines whether ..." on the other hand, would be acceptable. I think our language cop @mikes-gh should weigh in on this too.
Isn't "determines whether..." as much of a fragment as "whether the..." or "the text to..."? Just more words, neither are full sentences. Doesn't seem that vital 🤷 .
@ScarletKuro makes a very good point that sometimes you won't get the value out you expect. So maybe we should just use Sets whether ...
instead of Gets or sets whether ...
.
Thanks Jon!
Description
This update adds XML documentation for public members, for the following components and classes:
This update also fixes a default text issue in the
ColorPickerPage.razor
example page.This update also fixes a minor documentation issue in
MudAppBar
, changing "a value indicating whether" to just "whether".How Has This Been Tested?
This was tested by observing the XML documentation for examples:
MudCheckBox
MudChip
MudChipSet
MudCollapse
Type of Changes
Checklist
dev
).