doc(Driver): update documentation - #1072
Conversation
Reviewer's GuideUpdates DriverJs-related documentation comments to be bilingual (Chinese and English), clarifies default values and behaviors, and aligns naming with DriverJs instead of FocusGuide across configuration, component, popover, and step classes. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue, and left some high level feedback:
- The XML comments for
OverlayClickBehaviorare a bit unclear (“close nextStep function”); consider rephrasing to explicitly describe the supported values and their effect, e.g."close" to end the tour, "next" to advance to the next step. - Several properties now document specific default values (e.g.,
ShowProgress,ShowButtons,ProgressText) but are nullable and not initialized; double‑check that the described defaults match the actual runtime defaults applied by DriverJs or your wrapper and adjust the comments if needed.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The XML comments for `OverlayClickBehavior` are a bit unclear (“close nextStep function”); consider rephrasing to explicitly describe the supported values and their effect, e.g. `"close" to end the tour, "next" to advance to the next step`.
- Several properties now document specific default values (e.g., `ShowProgress`, `ShowButtons`, `ProgressText`) but are nullable and not initialized; double‑check that the described defaults match the actual runtime defaults applied by DriverJs or your wrapper and adjust the comments if needed.
## Individual Comments
### Comment 1
<location path="src/components/BootstrapBlazor.DriverJs/Components/DriverJsPopover.cs" line_range="79-80" />
<code_context>
/// <summary>
- /// Whether to show the progress text in popover. (default true)
+ /// <para lang="zh">获得/设置 是否在弹窗中显示进度文本,默认为 true</para>
+ /// <para lang="en">Gets or sets whether to show the progress text in popover. Default is true</para>
/// </summary>
[Parameter]
</code_context>
<issue_to_address>
**question (bug_risk):** The documented default for `ShowProgress` in the popover may not match the actual runtime default behavior.
`ShowProgress` is declared as `bool?` without an initializer, so its CLR default is `null`, not `true`. Please confirm how `null` is handled at runtime (e.g., treated as `true`) and update the wording to describe the “unset” behavior precisely, or set an explicit default value if it should always be `true`.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| /// <para lang="zh">获得/设置 是否在弹窗中显示进度文本,默认为 true</para> | ||
| /// <para lang="en">Gets or sets whether to show the progress text in popover. Default is true</para> |
There was a problem hiding this comment.
question (bug_risk): The documented default for ShowProgress in the popover may not match the actual runtime default behavior.
ShowProgress is declared as bool? without an initializer, so its CLR default is null, not true. Please confirm how null is handled at runtime (e.g., treated as true) and update the wording to describe the “unset” behavior precisely, or set an explicit default value if it should always be true.
Link issues
fixes #1071
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Improve inline and XML documentation for DriverJs-related components and models, providing clearer bilingual descriptions of properties, callbacks, and defaults without changing runtime behavior.
Enhancements:
Documentation: