< Summary

Information
Class: UIBlazor.App
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/App.razor
Tag: 14_22728831704
Line coverage
0%
Covered lines: 0
Uncovered lines: 12
Coverable lines: 12
Total lines: 50
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildRenderTree(...)0%620%
get_McpSettingsProvider()100%210%
get_ProfileService()100%210%
get_ChatService()100%210%
get_CommonSettingsProvider()100%210%
OnInitializedAsync()100%210%

File(s)

/home/runner/work/InvAit/InvAit/UIBlazor/App.razor

#LineLine coverage
 1@using UIBlazor.Components
 2<HeadContent>
 3    <RadzenTheme />
 4    <link rel="stylesheet" href="css/app.css" />
 5    <link rel="stylesheet" href="css/markdown.css" />
 6</HeadContent>
 7
 8<RadzenComponents />
 9
 010@if (!isInitialized)
 11{
 12    <div class="loading-container settings">
 13        <div class="loading-ball"></div>
 14        <div class="loading-ball"></div>
 15        <div class="loading-ball"></div>
 16    </div>
 17}
 18else
 19{
 20    <RadzenLayout>
 21        <RadzenBody>
 22            <AiChat class="rz-h-100" />
 23        </RadzenBody>
 24    </RadzenLayout>
 25}
 26
 27@code
 28{
 029    [Inject] private IMcpSettingsProvider McpSettingsProvider { get; set; } = null!;
 30
 031    [Inject] private IProfileManager ProfileService { get; set; } = null!;
 32
 033    [Inject] private ChatService ChatService { get; set; } = null!;
 34
 035    [Inject] private ICommonSettingsProvider CommonSettingsProvider { get; set; } = null!;
 36
 37    private bool isInitialized;
 38
 39    protected override async Task OnInitializedAsync()
 40    {
 41        // инициализация всех настроек
 042        await ProfileService.InitializeAsync();
 043        await CommonSettingsProvider.InitializeAsync();
 044        await McpSettingsProvider.InitializeAsync();
 45
 046        await base.OnInitializedAsync();
 047        isInitialized = true;
 048        StateHasChanged();
 049    }
 50}