diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 04ca2365..3ce6ea44 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -67,7 +67,7 @@ jobs: set -euo pipefail dest="$1" mkdir -p "$dest" - for f in rptrs.json tafl_min.json airports_min.json radioid-users.csv; do + for f in rptrs.json radioid-users.csv; do # A branch that no longer has a dataset (one moved off the site) must # not stop the deploy of every other preview and of the site itself. [ -f "src/data/$f" ] || { echo "::notice::$f not in this checkout, skipped"; continue; } @@ -140,6 +140,13 @@ jobs: run: | /tmp/copy-data.sh dist_root /tmp/copy-data.sh dist_dev + # Licensed sites and airports now come from data.ferritefw.dev. Builds up + # to 2026.10.1, including every offline copy of one, still fetch these + # two from https://neonplug.app/, so the root keeps serving them, frozen + # at that release. Only the root: /dev/ and the previews don't need them. + for f in tafl_min.json airports_min.json; do + git show "v2026.10.1:src/data/$f" > "dist_root/$f" + done - name: List open PRs and build previews env: diff --git a/CLAUDE.md b/CLAUDE.md index 9d42162a..4c8812c0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -61,7 +61,8 @@ the site wholesale): | `/` | the **latest release asset**, downloaded not rebuilt — falls back to `main` until the first tag | | `/dev/` | latest `main` | | `/test//` | every open PR | -| `/rptrs.json`, `/tafl_min.json`, `/airports_min.json`, `/radioid-users.csv` | always from `main` | +| `/rptrs.json`, `/radioid-users.csv` | always from `main` | +| `/tafl_min.json`, `/airports_min.json` | root only, frozen at `v2026.10.1`, for builds up to that release | Two deliberate decisions there. **The root is the published artifact, not a rebuild of the tag** — for software that writes to radios, the file users download offline and the file the site serves must be @@ -69,14 +70,19 @@ byte-identical. **Datasets are not pinned to a release** — every loader tries `https://neonplug.app/` *first*, so this data is already "latest from main" by design; pinning would freeze repeater/DMR-user data at tag time and add ~31 MB to every release. -**The dataset fallback chains are not symmetric** — `jsonLoader.ts` (`rptrs.json`, `tafl_min.json`, -`airports_min.json`) falls back through relative paths to `raw.githubusercontent.com` on `main`. +**Airports, licensed sites (TAFL + FCC) and amateur repeaters come from +[data.ferritefw.dev](https://data.ferritefw.dev)** (`services/ferrite/`), fetched tile by tile around +the search, straight from the browser (it sends `Access-Control-Allow-Origin: *`). Not in the repo, +not deployed, and like the datasets below they need the internet. + +**The dataset fallback chains are not symmetric** — `jsonLoader.ts` (`rptrs.json`) +falls back through relative paths to `raw.githubusercontent.com` on `main`. `ContactsTab.tsx` is the *only* loader for `radioid-users.csv` (16 MB, the largest) and has **no GitHub fallback at all** — `neonplug.app` plus four relative paths, then it throws. Don't assume the GitHub safety net covers contacts. Because the absolute `neonplug.app` URL always wins, the per-PR and `/dev/` dataset copies are -**unreadable dead weight** (~31 MB each, against Pages' 1 GB site limit) — see `TODO-RELEASE.md` D4. +**unreadable dead weight** (~19 MB each, against Pages' 1 GB site limit) — see `TODO-RELEASE.md` D4. **Two independent version numbers — don't conflate them:** diff --git a/src/components/about/AboutTab.tsx b/src/components/about/AboutTab.tsx index da7f03be..82773708 100644 --- a/src/components/about/AboutTab.tsx +++ b/src/components/about/AboutTab.tsx @@ -314,46 +314,36 @@ export const AboutTab: React.FC = () => {
- TAFL Database + Ferrite data

- Canadian radio frequency license data from the Technical Acceptance and Frequency List (TAFL), - maintained by Innovation, Science and Economic Development Canada (ISED). + The Channel Wizard's airports, licensed sites and amateur repeaters come from Ferrite's channel data, + rebuilt daily from each source's own public download. +

+
    +
  • + Contains information licensed under the Open Government Licence – Canada. Source: Innovation, Science + and Economic Development Canada, Spectrum Management System authorization data extract. +
  • +
  • + Source: US Federal Communications Commission, Universal Licensing System public access data (land + mobile). Not endorsed by the FCC. +
  • +
  • Airport data from OurAirports (ourairports.com), public domain.
  • +
  • Repeater data from HearHam.com (user-contributed).
  • +
+

+ Not an official product of ISED, the FCC, OurAirports or HearHam. For finding frequencies, not + runways: never use it for navigation.

- ISED Spectrum Management + https://data.ferritefw.dev
- -
- Airport Frequency Data -

- Airport communication frequencies and location data from open aviation databases, - including ICAO-compliant frequency information. -

-
- - ICAO Frequency Finder - - - Airportmap Open Databases - -
-
diff --git a/src/components/import/SmartImportTab.tsx b/src/components/import/SmartImportTab.tsx index 298b2f4b..6ea5185d 100644 --- a/src/components/import/SmartImportTab.tsx +++ b/src/components/import/SmartImportTab.tsx @@ -11,6 +11,8 @@ import { formatPlural } from '../../utils/formatPlural'; import { ChirpSource } from './sources/ChirpSource'; import { AirportSource } from './sources/AirportSource'; import { TaflSource } from './sources/TaflSource'; +import { AmateurRepeaterSource } from './sources/AmateurRepeaterSource'; +import { findNearbyAmateurRepeaters, type AmateurRepeater } from '../../services/amateurRepeaterChannels'; import { RptrsSource } from './sources/RptrsSource'; import { MmdvmSource } from './sources/MmdvmSource'; import { FixedChannelsSource } from './sources/FixedChannelsSource'; @@ -34,6 +36,7 @@ export const SmartImportTab: React.FC = () => { const [error, setError] = useState(null); const [searchAirports, setSearchAirports] = useState(true); const [searchTafl, setSearchTafl] = useState(true); + const [searchAmateurRepeaters, setSearchAmateurRepeaters] = useState(true); const [searchDmrRepeaters, setSearchDmrRepeaters] = useState(true); const [isSearchingAll, setIsSearchingAll] = useState(false); @@ -49,6 +52,9 @@ export const SmartImportTab: React.FC = () => { const [taflLoadProgress, setTaflLoadProgress] = useState<{ percent: number; loaded: number; total: number } | null>(null); const [isSearchingTafl, setIsSearchingTafl] = useState(false); + // Amateur (analog FM) repeater search results + const [amateurRepeaters, setAmateurRepeaters] = useState([]); + // Rptrs search results const [rptrs, setRptrs] = useState<(RptrData & { distance?: number })[]>([]); const [rptrsLoadProgress, setRptrsLoadProgress] = useState<{ percent: number; loaded: number; total: number } | null>(null); @@ -62,15 +68,16 @@ export const SmartImportTab: React.FC = () => { setError(msg || null); }; + // Whether any search type is ticked; the button and the handler both ask. + const hasSearchType = + searchAirports || searchTafl || searchAmateurRepeaters || (supportsDigital && searchDmrRepeaters); + // Unified search handler that searches all selected types const handleSearchAll = async () => { - const hasSearchType = supportsDigital - ? (searchAirports || searchTafl || searchDmrRepeaters) - : (searchAirports || searchTafl); if (!hasSearchType) { setError(supportsDigital - ? 'Please select at least one search type (Airports, TAFL, or DMR Repeaters)' - : 'Please select at least one search type (Airports or TAFL)'); + ? 'Please select at least one search type (Airports, Licensed sites, Amateur repeaters, or DMR Repeaters)' + : 'Please select at least one search type (Airports, Licensed sites, or Amateur repeaters)'); return; } @@ -91,6 +98,9 @@ export const SmartImportTab: React.FC = () => { if (searchDmrRepeaters) { setRptrs([]); } + if (searchAmateurRepeaters) { + setAmateurRepeaters([]); + } try { const { lat, lon, radius } = await resolveCoordinates(); @@ -128,7 +138,17 @@ export const SmartImportTab: React.FC = () => { ); setTaflEntries(nearbyTafl); setIsSearchingTafl(false); - return ['TAFL entries', nearbyTafl.length]; + return ['licensed sites', nearbyTafl.length]; + })() + ); + } + + if (searchAmateurRepeaters) { + searchPromises.push( + (async (): Promise<[string, number]> => { + const nearby = await findNearbyAmateurRepeaters(lat, lon, radius); + setAmateurRepeaters(nearby); + return ['amateur repeaters', nearby.length]; })() ); } @@ -192,8 +212,8 @@ export const SmartImportTab: React.FC = () => { Location-Based Search

{supportsDigital - ? 'Search for nearby airports, TAFL entries, and DMR repeaters based on your location' - : 'Search for nearby airports and TAFL entries based on your location'} + ? 'Search for nearby airports, licensed sites, amateur repeaters and DMR repeaters based on your location' + : 'Search for nearby airports, licensed sites and amateur repeaters based on your location'}

@@ -327,7 +347,16 @@ export const SmartImportTab: React.FC = () => { onChange={(e) => setSearchTafl(e.target.checked)} className="mr-2" /> - TAFL (Transport Canada) + Licensed sites (Canada TAFL, US FCC) + + {supportsDigital && (