feat: add "Confirmed by at least 1 service" filter to QSO view
- Add 'any' confirmation type filter showing QSOs confirmed by LoTW OR DCL - Backend logic: lotwQslRstatus = 'Y' OR dclQslRstatus = 'Y' - Frontend dropdown option positioned after "All QSOs" - Shows all QSOs confirmed by at least one service (LoTW, DCL, or both) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -411,6 +411,11 @@ export async function getUserQSOs(userId, filters = {}, options = {}) {
|
|||||||
// Both confirmed: Confirmed by LoTW AND DCL
|
// Both confirmed: Confirmed by LoTW AND DCL
|
||||||
conditions.push(eq(qsos.lotwQslRstatus, 'Y'));
|
conditions.push(eq(qsos.lotwQslRstatus, 'Y'));
|
||||||
conditions.push(eq(qsos.dclQslRstatus, 'Y'));
|
conditions.push(eq(qsos.dclQslRstatus, 'Y'));
|
||||||
|
} else if (filters.confirmationType === 'any') {
|
||||||
|
// Confirmed by at least 1 service: LoTW OR DCL
|
||||||
|
conditions.push(
|
||||||
|
sql`(${qsos.lotwQslRstatus} = 'Y' OR ${qsos.dclQslRstatus} = 'Y')`
|
||||||
|
);
|
||||||
} else if (filters.confirmationType === 'none') {
|
} else if (filters.confirmationType === 'none') {
|
||||||
// Not confirmed: Not confirmed by LoTW AND not confirmed by DCL
|
// Not confirmed: Not confirmed by LoTW AND not confirmed by DCL
|
||||||
conditions.push(
|
conditions.push(
|
||||||
|
|||||||
@@ -592,6 +592,7 @@
|
|||||||
|
|
||||||
<select bind:value={filters.confirmationType} on:change={applyFilters} class="confirmation-filter">
|
<select bind:value={filters.confirmationType} on:change={applyFilters} class="confirmation-filter">
|
||||||
<option value="all">All QSOs</option>
|
<option value="all">All QSOs</option>
|
||||||
|
<option value="any">Confirmed by at least 1 service</option>
|
||||||
<option value="lotw">LoTW Only</option>
|
<option value="lotw">LoTW Only</option>
|
||||||
<option value="dcl">DCL Only</option>
|
<option value="dcl">DCL Only</option>
|
||||||
<option value="both">Both Confirmed</option>
|
<option value="both">Both Confirmed</option>
|
||||||
|
|||||||
Reference in New Issue
Block a user