feat(infra): Docker-compose configuration and environment-specific security guards for Beta deployment to Test environment #56

Merged
mjasin merged 12 commits from infra/beta-deploy-test into develop 2026-06-01 17:17:46 +00:00
Showing only changes of commit a9a670d776 - Show all commits
1
@@ -2,8 +2,9 @@
@inject ILogger<SerilogDemo> Logger
@inject IJSRuntime JSRuntime
#if DEBUG
<div class="serilog-demo-container">
@if (_isDebug)
{
<div class="serilog-demo-container">
<div class="header-card glass-panel">
<div class="header-content">
<NexusIcon Name="cpu" Size="36" Class="header-icon" />
@@ -87,31 +88,42 @@
</div>
</div>
</div>
</div>
#else
<div class="serilog-demo-container">
</div>
}
else
{
<div class="serilog-demo-container">
<div class="glass-panel" style="text-align: center; padding: 3rem;">
<h2>Diagnostics Unavailable</h2>
<p>This page is only available in DEBUG builds.</p>
</div>
</div>
#endif
</div>
}
@code {
#if DEBUG
private readonly bool _isDebug = true;
#else
private readonly bool _isDebug = false;
#endif
private void LogInfo()
{
#if DEBUG
Logger.LogInformation("Structured native log triggered by user from SerilogDemo. Button: LogInfo");
#endif
}
private void LogWarning()
{
#if DEBUG
Logger.LogWarning("Potential warning log triggered from Blazor razor component at {Time}", DateTime.UtcNow);
#endif
}
private void LogError()
{
#if DEBUG
try
{
throw new InvalidOperationException("Simulated native C# operation exception triggered in Diagnostic dashboard.");
@@ -120,16 +132,22 @@
{
Logger.LogError(ex, "Captured exception successfully in native Serilog pipeline!");
}
#endif
}
private async Task TriggerJsLog()
{
#if DEBUG
await JSRuntime.InvokeVoidAsync("console.log", "Intercepted JS console statement from Blazor WebView interop trigger!");
#endif
await Task.CompletedTask;
}
private async Task TriggerJsException()
{
#if DEBUG
await JSRuntime.InvokeVoidAsync("eval", "throw new Error('Simulated runtime JS Exception triggered from Blazor UI button click!');");
}
#endif
await Task.CompletedTask;
}
}