-
-
Notifications
You must be signed in to change notification settings - Fork 362
doc(IpAddress): add IsDisabled parameter documentation #6946
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
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds documentation for the IsDisabled parameter of the IpAddress component by updating the sample page with new section headings and adding corresponding localization entries. File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey there - I've reviewed your changes - here's some feedback:
- You added
and
with Localizer keys, but I don’t see the corresponding “IpTitle”/“IpSubTitle” entries in en-US.json and zh-CN.json—please add those localization keys.
- The PR title mentions documenting the IsDisabled parameter, but the sample and API reference aren’t showing that property—consider adding a snippet demonstrating how to use IsDisabled in the IpAddress component.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- You added <h3> and <h4> with Localizer keys, but I don’t see the corresponding “IpTitle”/“IpSubTitle” entries in en-US.json and zh-CN.json—please add those localization keys.
- The PR title mentions documenting the IsDisabled parameter, but the sample and API reference aren’t showing that property—consider adding a snippet demonstrating how to use IsDisabled in the IpAddress component.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
Pull Request Overview
Adds localized documentation and headings for the IpAddress sample, and prepares copy for documenting the IsDisabled parameter.
- Adds new localization keys (titles, subtitles, and IsDisabled copy) for Ips samples in zh-CN and en-US.
- Renders new page headings (title and subtitle) on the Ips sample page.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/BootstrapBlazor.Server/Locales/zh-CN.json | Adds IpTitle, IpSubTitle, and IsDisabled strings for the Ips sample. |
| src/BootstrapBlazor.Server/Locales/en-US.json | Adds IpTitle, IpSubTitle, and IsDisabled strings for the Ips sample. |
| src/BootstrapBlazor.Server/Components/Samples/Ips.razor | Renders new localized title and subtitle on the IpAddress sample page. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| <h3>@Localizer["IpTitle"]</h3> | ||
|
|
||
| <h4>@Localizer["IpSubTitle"]</h4> | ||
|
|
||
| <DemoBlock Title="@Localizer["IpNormalTitle"]" Introduction="@Localizer["IpNormalIntro"]" Name="Normal"> | ||
| <IpAddress @bind-Value="@Value" /> | ||
| <div class="mt-3">@Value</div> |
Copilot
AI
Oct 18, 2025
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.
Locales add IsDisabledTitle/IsDisabledIntro, but this page does not include a corresponding demo. Please add a DemoBlock showcasing the disabled state, for example:
<IpAddress @bind-Value='@value' IsDisabled='true' />
| "FeatureShowHolidays": "Holidays" | ||
| }, | ||
| "BootstrapBlazor.Server.Components.Samples.Ips": { | ||
| "IpTitle": "IpAddress", |
Copilot
AI
Oct 18, 2025
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.
Use standard capitalization and spacing for clarity and consistency with the subtitle; change 'IpAddress' to 'IP Address'.
| "IpTitle": "IpAddress", | |
| "IpTitle": "IP Address", |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6946 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 740 740
Lines 31875 31875
Branches 4469 4469
=========================================
Hits 31875 31875
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Link issues
fixes #6945
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Add title and subtitle headings to the IP sample page and update localization files accordingly
Enhancements:
Documentation: