Skip to content

Conversation

@linkdotnet
Copy link
Owner

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new feature to display build information in the footer, including the target framework and build timestamp. The feature is controlled by a new ShowBuildInformation configuration setting (defaulting to true).

  • Integrates the LinkDotNet.BuildInformation NuGet package (v2.0.0)
  • Adds ShowBuildInformation configuration property with default value of true
  • Updates the Footer component to display build details when enabled

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/LinkDotNet.Blog.Web/ApplicationConfiguration.cs Adds ShowBuildInformation property to configuration model
src/LinkDotNet.Blog.Web/appsettings.json Adds default ShowBuildInformation setting
src/LinkDotNet.Blog.Web/Features/Home/Components/Footer.razor Updates footer to conditionally display build information (framework and timestamp)
src/LinkDotNet.Blog.Web/LinkDotNet.Blog.Web.csproj Adds reference to LinkDotNet.BuildInformation package
Directory.Packages.props Specifies version 2.0.0 for the BuildInformation package
tests/LinkDotNet.Blog.TestUtilities/ApplicationConfigurationBuilder.cs Updates test builder to support ShowBuildInformation property
tests/LinkDotNet.Blog.UnitTests/Web/ApplicationConfigurationTests.cs Adds test assertion for ShowBuildInformation configuration mapping
docs/Setup/Configuration.md Documents the new ShowBuildInformation configuration option
MIGRATION.md Adds migration notes for the 11.0 to 12.0 version upgrade

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 9 to 15
@if (AppConfiguration.Value.ShowBuildInformation)
{
<p class="text-gray-300 mb-0">Made with ❤️, @BuildInformation.TargetFrameworkMoniker, and Blazor</p>
<p class="text-gray-300">
Build At: @(BuildInformation.BuildAt.ToString("dd-MM-yyyy HH:mm")) (UTC)
</p>
}
Copy link

Copilot AI Dec 7, 2025

Choose a reason for hiding this comment

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

The new ShowBuildInformation feature in the Footer component lacks test coverage. Consider adding tests to FooterTests.cs to verify:

  1. Build information is displayed when ShowBuildInformation is true
  2. Build information is hidden when ShowBuildInformation is false
  3. The build information content is correctly formatted

This is important since FooterTests.cs already has comprehensive tests for other Footer functionality.

Copilot uses AI. Check for mistakes.
@linkdotnet linkdotnet merged commit a0d3f0c into master Dec 7, 2025
3 checks passed
@linkdotnet linkdotnet deleted the build-info branch December 7, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants