You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Channels currently use a coarse mode field (analogue | digital | other) derived from vendor CPS "Channel Type". That is enough for OpenGD77 today (FM vs DMR) but does not express the modes we want to support across vendors:
Analog: FM, AM, SSB (USB and LSB)
Digital: DMR, YSF, Tetra
Issue #11 already calls for mode pills and filters (Digital / FM / AM / SSB) in the channel table; the data model needs to catch up before we can implement those consistently.
Intended outcome
Replace the binary analogue/digital abstraction with a specific channel mode value that drives UI pills, filters, and conditional form fields.
Problem
Channels currently use a coarse
modefield (analogue|digital|other) derived from vendor CPS "Channel Type". That is enough for OpenGD77 today (FM vs DMR) but does not express the modes we want to support across vendors:Analog: FM, AM, SSB (USB and LSB)
Digital: DMR, YSF, Tetra
Issue #11 already calls for mode pills and filters (Digital / FM / AM / SSB) in the channel table; the data model needs to catch up before we can implement those consistently.
Intended outcome
Replace the binary analogue/digital abstraction with a specific channel mode value that drives UI pills, filters, and conditional form fields.
Documentation
Create
docs/reference/channel-modes.mdas the canonical reference:Data model
ChannelMode(or equivalent) insrc/models/codeplug.tsdocs/features/data-model/to matchChannel Type→ new mode values (Analogue→FM,Digital→DMR, etc.)other)UI
Update channels list, detail, and edit pages:
Implementation should mirror the band reference pattern:
src/lib/channelModes.ts(or similar) must matchdocs/reference/channel-modes.md.Affected
src/models/codeplug.ts—ChannelModetype and defaultssrc/lib/import/— OpenGD77 channel type mappingsrc/routes/channels/— list, detail, editdocs/reference/channel-modes.md(new)docs/features/data-model/Notes / dependencies
Out of scope
Workflow note
Branch from
origin/main, atomic conventional commits, PR linkingCloses #.