< Summary

Information
Class: Pomodoro.Web.Components.Settings.AutoStartSettings
Assembly: Pomodoro.Web
File(s): /home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Components/Settings/AutoStartSettings.razor
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 38
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
BuildRenderTree(...)100%22100%
get_Settings()100%11100%
get_OnChanged()100%11100%
NotifyChanged()100%11100%

File(s)

/home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Components/Settings/AutoStartSettings.razor

#LineLine coverage
 1<div class="settings-section">
 2    <h2>Auto-Start</h2>
 3
 4    <div class="setting-item setting-toggle">
 5        <div class="setting-label">
 6            <span class="setting-icon">▶️</span>
 7            <span class="setting-name">Auto-start Timer</span>
 8        </div>
 9        <div class="toggle-control">
 10            <input type="checkbox" id="autoStartEnabled" @bind="Settings.AutoStartEnabled" @bind:after="NotifyChanged" c
 11            <label for="autoStartEnabled" class="toggle-label">
 12                <span class="toggle-inner"></span>
 13                <span class="toggle-switch"></span>
 14            </label>
 15        </div>
 16    </div>
 17
 18018    @if (Settings.AutoStartEnabled)
 17619    {
 20        <div class="setting-item">
 21            <div class="setting-label">
 22                <span class="setting-icon">⏱️</span>
 23                <span class="setting-name">Auto-start Delay (seconds)</span>
 24            </div>
 25            <input type="number" class="setting-input" @bind="Settings.AutoStartDelaySeconds" @bind:after="NotifyChanged
 26        </div>
 17627    }
 28</div>
 29
 30@code {
 31    [Parameter]
 155532    public TimerSettings Settings { get; set; } = default!;
 33
 34    [Parameter]
 17835    public EventCallback OnChanged { get; set; }
 36
 237    private async Task NotifyChanged() => await OnChanged.InvokeAsync();
 38}