{ if (e.target === e.currentTarget) onClose() }} onkeydown={(e) => e.key === 'Escape' && onClose()}>
e.stopPropagation()} onkeydown={(e) => e.stopPropagation()}>
{#if reportType === 'bug'}
{:else}
{/if}
{step === 'type' ? 'Report an Issue' : reportType === 'bug' ? 'Bug Report' : 'Feature Request'}
{#if step === 'type'}
What would you like to submit?
{ reportType = 'bug'; step = 'compose' }}>
Bug Report
Something isn't working as expected
{ reportType = 'feature'; step = 'compose' }}>
Feature Request
Suggest an improvement or new idea
{:else}
Title
*
{#if reportType === 'bug'}
Description
*
Steps to Reproduce
Expected
Actual
{:else}
Problem / Motivation
*
Proposed Solution
*
Alternatives Considered
{/if}
Environment
auto-filled
{envBlock}
{#if reportType === 'bug'}
Include Settings
Select groups relevant to the bug
{#each SETTINGS_GROUPS as group} {@const selectedInGroup = group.keys.filter(k => selectedKeys.has(k)).length} {@const allSelected = selectedInGroup === group.keys.length} {@const expanded = expandedGroups.has(group.label)}
toggleGroup(group.label)}> {#if expanded}
{:else}
{/if}
{group.label}
{#if selectedInGroup > 0}
{selectedInGroup}
{/if}
selectGroupAll(group.keys)} title={allSelected ? 'Deselect all' : 'Select all'}> {allSelected ? 'none' : 'all'}
{#if expanded}
{#each group.keys as key}
toggleKey(key)} class="br-checkbox" />
{key}
{formatKeyVal(key)}
{/each}
{/if}
{/each}
{/if}
{/if}