diff --git a/1 b/1 new file mode 100644 index 0000000..e69de29 diff --git a/changelog.json b/changelog.json index d5d9fca..43944f3 100644 --- a/changelog.json +++ b/changelog.json @@ -16,7 +16,8 @@ "HAMLOG.online confirmations are read from the site's own ADIF field, APP_HAMLOG_QSO_CFM, taken from a real export. Import a log downloaded from HAMLOG and its confirmations count for awards straight away, with nothing to rename and no mapping to configure.", "The four HAMLOG.online fields are filterable too, so 'never sent there' is a filter and not a guess.", "RDA: a read-only comparison of the two district sources — the offline RDA database against the CNTY carried by a log imported from HAMLOG.online — reporting how many agree, how many differ, and listing the disagreements with the contact, both districts, and whether the database answer was a dated record or an assumption.", - "The QSO right-click menu can now export the selection to ADIF with the OpsLog fields, so the award references (RDA@KR-04 and the like) travel with the contacts. The existing entry still writes standard ADIF for other loggers." + "The QSO right-click menu can now export the selection to ADIF with the OpsLog fields, so the award references (RDA@KR-04 and the like) travel with the contacts. The existing entry still writes standard ADIF for other loggers.", + "The filtered-view export gets the same treatment: a second right-click entry writes the whole filtered view to ADIF with the OpsLog fields." ], "fr": [ "Yaesu : une ligne ANT dans le panneau du poste sélectionne la prise d'antenne, et le choix est mémorisé pour la bande sur laquelle il a été fait — on change de bande, l'antenne suit. Aucune page à configurer : choisir l'antenne une fois sur une bande le dit très bien. Les postes à une seule prise n'affichent jamais la ligne.", @@ -32,7 +33,8 @@ "Les confirmations HAMLOG.online sont lues dans le champ ADIF du site lui-même, APP_HAMLOG_QSO_CFM, relevé sur un export réel. Il suffit d'importer un journal téléchargé depuis HAMLOG pour que ses confirmations comptent aussitôt pour les diplômes, sans rien renommer ni configurer.", "Les quatre champs HAMLOG.online sont aussi filtrables, pour que « jamais envoyé là-bas » soit un filtre et non une supposition.", "RDA : une comparaison en lecture seule des deux sources de district — la base RDA hors ligne face au CNTY d'un journal importé depuis HAMLOG.online — indiquant combien concordent, combien divergent, et listant les désaccords avec le contact, les deux districts, et si la réponse de la base était un enregistrement daté ou une hypothèse.", - "Le menu contextuel des QSO peut maintenant exporter la sélection en ADIF avec les champs OpsLog, pour que les références de diplômes (RDA@KR-04 et compagnie) suivent les contacts. L'entrée existante écrit toujours de l'ADIF standard pour les autres carnets." + "Le menu contextuel des QSO peut maintenant exporter la sélection en ADIF avec les champs OpsLog, pour que les références de diplômes (RDA@KR-04 et compagnie) suivent les contacts. L'entrée existante écrit toujours de l'ADIF standard pour les autres carnets.", + "L'export de la vue filtrée reçoit le même traitement : une seconde entrée du menu contextuel écrit toute la vue filtrée en ADIF avec les champs OpsLog." ] }, { diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 2f152c4..05468a5 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -4219,11 +4219,19 @@ export default function App() { // fields (optional): a chosen ADIF-tag list — the "choose which fields" export. // Empty = the standard/full behaviour (all fields, includeAppFields=false here). async function exportFilteredADIF(fields: string[] = []) { + return exportFilteredADIFAs(false, fields); + } + // The same filtered export, keeping the APP_OPSLOG_* tags — see + // exportSelectedADIFFull for why the award references need them. + async function exportFilteredADIFFull() { + return exportFilteredADIFAs(true, []); + } + async function exportFilteredADIFAs(includeApp: boolean, fields: string[]) { try { const path = await SaveADIFFile(); if (!path) return; const f = buildActiveFilter(); - const r = await ExportADIFFiltered(path, false, { ...f, limit: 0, offset: 0 } as any, fields); + const r = await ExportADIFFiltered(path, includeApp, { ...f, limit: 0, offset: 0 } as any, fields); showToast(`Exported ${r.count} QSO${r.count > 1 ? 's' : ''} → ${r.path}`); } catch (e: any) { setError(String(e?.message ?? e)); } } @@ -6065,7 +6073,7 @@ export default function App() { onBulkEdit={openBulkEdit} onExportSelected={exportSelectedADIF} onExportSelectedFull={exportSelectedADIFFull} onExportSelectedFields={exportSelectedFields} - onExportFiltered={exportFilteredADIF} + onExportFiltered={exportFilteredADIF} onExportFilteredFull={exportFilteredADIFFull} onDelete={(ids) => setDeletingIds(ids)} onRowSelected={(ids) => { setSelectedIds(ids); setSelectedId(ids[0] ?? null); }} onRowSelectedQso={(r) => setSelQso(r ? { call: String(r.callsign ?? ""), band: String(r.band ?? ""), mode: String(r.mode ?? ""), dxcc: Number(r.dxcc ?? 0) } : null)} @@ -7464,7 +7472,7 @@ export default function App() { onBulkEdit={openBulkEdit} onExportSelected={exportSelectedADIF} onExportSelectedFull={exportSelectedADIFFull} onExportSelectedFields={exportSelectedFields} - onExportFiltered={exportFilteredADIF} + onExportFiltered={exportFilteredADIF} onExportFilteredFull={exportFilteredADIFFull} onExportCabrilloSelected={exportSelectedCabrillo} onExportCabrilloFiltered={exportFilteredCabrillo} onDelete={(ids) => setDeletingIds(ids)} diff --git a/frontend/src/components/QSOContextMenu.tsx b/frontend/src/components/QSOContextMenu.tsx index b59ec1c..2ae8747 100644 --- a/frontend/src/components/QSOContextMenu.tsx +++ b/frontend/src/components/QSOContextMenu.tsx @@ -22,6 +22,7 @@ type Props = { onExportSelectedFull?: (ids: number[]) => void; onExportSelectedFields?: (ids: number[]) => void; onExportFiltered?: () => void; + onExportFilteredFull?: () => void; onExportCabrilloSelected?: (ids: number[]) => void; onExportCabrilloFiltered?: () => void; onDelete?: (ids: number[]) => void; @@ -42,7 +43,7 @@ const UPLOAD_TARGETS: { service: string; name: string }[] = [ // or picks a command. (We deliberately do NOT close on scroll/resize: the QSO // list auto-refreshes and AG Grid fires internal scroll events on refresh, // which used to dismiss the menu the instant it appeared.) -export function QSOContextMenu({ menu, onClose, onUpdateFromCty, onUpdateFromQRZ, onUpdateFromClublog, onUpdateCountyFromULS, onSendTo, onSendRecording, onSendEQSL, onBulkEdit, onExportSelected, onExportSelectedFull, onExportSelectedFields, onExportFiltered, onExportCabrilloSelected, onExportCabrilloFiltered, onDelete }: Props) { +export function QSOContextMenu({ menu, onClose, onUpdateFromCty, onUpdateFromQRZ, onUpdateFromClublog, onUpdateCountyFromULS, onSendTo, onSendRecording, onSendEQSL, onBulkEdit, onExportSelected, onExportSelectedFull, onExportSelectedFields, onExportFiltered, onExportFilteredFull, onExportCabrilloSelected, onExportCabrilloFiltered, onDelete }: Props) { const { t } = useI18n(); const boxRef = useRef(null); // Starts at the cursor; the layout effect corrects it once the real size is @@ -224,6 +225,15 @@ export function QSOContextMenu({ menu, onClose, onUpdateFromCty, onUpdateFromQRZ {t('qctx.exportFilteredAdif')} )} + {onExportFilteredFull && ( + + )} {onExportCabrilloSelected && (