< Summary

Information
Class: Chronicis.Client.Components.Shared.EntityListItem
Assembly: Chronicis.Client
File(s): /home/runner/work/chronicis/chronicis/src/Chronicis.Client/Components/Shared/EntityListItem.razor
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 44
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Icon()100%11100%
get_Title()100%11100%
get_OnClick()100%11100%
get_ChildContent()100%11100%

File(s)

/home/runner/work/chronicis/chronicis/src/Chronicis.Client/Components/Shared/EntityListItem.razor

#LineLine coverage
 1@* EntityListItem.razor - Reusable clickable list item for entity lists *@
 2@* Used for arcs, sessions, and similar entity lists *@
 3
 4<MudListItem T="string" OnClick="OnClick" Class="chronicis-list-item">
 5    <div class="d-flex align-center justify-space-between" style="width: 100%;">
 6        <div class="d-flex align-center">
 7            <MudIcon Icon="@Icon"
 8                     Size="Size.Small"
 9                     Class="mr-2"
 10                     Style="color: var(--chronicis-muted-gold);" />
 1311            <MudText>@Title</MudText>
 12        </div>
 1313        @if (ChildContent != null)
 14        {
 115            @ChildContent
 16        }
 17    </div>
 18</MudListItem>
 19
 20@code {
 21    /// <summary>
 22    /// The Material icon to display.
 23    /// </summary>
 24    [Parameter]
 3025    public string Icon { get; set; } = Icons.Material.Filled.Description;
 26
 27    /// <summary>
 28    /// The title/name to display.
 29    /// </summary>
 30    [Parameter]
 3731    public string Title { get; set; } = string.Empty;
 32
 33    /// <summary>
 34    /// Click handler for navigation.
 35    /// </summary>
 36    [Parameter]
 1337    public EventCallback OnClick { get; set; }
 38
 39    /// <summary>
 40    /// Optional content to display on the right side (e.g., a chip with count).
 41    /// </summary>
 42    [Parameter]
 1543    public RenderFragment? ChildContent { get; set; }
 44}