< Summary

Information
Class: Pomodoro.Web.Components.Settings.ClearConfirmationModal
Assembly: Pomodoro.Web
File(s): /home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Components/Settings/ClearConfirmationModal.razor
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 25
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_IsVisible()100%11100%
get_OnConfirm()100%11100%
get_OnCancel()100%11100%

File(s)

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

#LineLine coverage
 1781@if (IsVisible)
 172{
 3    <div class="confirmation-modal" role="dialog" aria-modal="true" aria-labelledby="clear-confirm-title">
 4        <div class="confirmation-content">
 5            <h3 id="clear-confirm-title">⚠️ Clear All Data?</h3>
 6            <p>This will permanently delete all your activities, tasks, and reset settings to defaults.</p>
 7            <p><strong>This action cannot be undone.</strong></p>
 8            <div class="confirmation-buttons">
 9                <button class="btn-confirm-danger" @onclick="OnConfirm">Yes, Clear All</button>
 10                <button class="btn-cancel" @onclick="OnCancel">Cancel</button>
 11            </div>
 12        </div>
 13    </div>
 1714}
 15
 16@code {
 17    [Parameter]
 35618    public bool IsVisible { get; set; }
 19
 20    [Parameter]
 19221    public EventCallback OnConfirm { get; set; }
 22
 23    [Parameter]
 19224    public EventCallback OnCancel { get; set; }
 25}