getChannelPreviewForAdd
Builds the filtered ADD-mode preview for QR import: existing channels followed by only the unique incoming channels.
Incoming channels that are semantic duplicates (same effective name + effective PSK) of an existing or earlier incoming channel are omitted from the preview. Unique incoming channels are appended in scanned order and selected by default while firmware channel capacity remains; unique channels beyond maxChannels stay visible but unchecked.
Semantic identity is resolved via the Channel domain model so preset/default channels match correctly across modem presets: empty names resolve to the preset display name, and 1-byte PSK markers expand to the full default key. A unique incoming channel whose effective name matches a channel on the radio (so its key differs) is a name conflict: Add would put two channels of that name on the radio, so it is listed in ChannelAddPreview.nameConflicts.
The radio's channels are listed as the write will leave them: normalizeReplacementSettings, the same step importChannelSet runs, drops blank placeholder secondaries and duplicates and compacts the rest, so slot counts and ChannelAddPreview.existingCount describe what is written. Those channels are kept unless the radio is full and the link has a channel it does not have yet; only then may the user drop an existing secondary to make room (ChannelAddPreview.canDropExisting).
Return
A ChannelAddPreview whose settings and selections are aligned and size-matched.
Parameters
The current ChannelSettings list on the radio, before normalization.
The imported ChannelSettings list. Duplicates omitted; uniques appended in order.
The current Config.LoRaConfig, used to resolve effective channel identity.
Firmware channel limit. Unique incoming selections stop when this is reached.