Skip to content

Hide PTT detected-device cards when every channel is already configured#382

Closed
chrissnell wants to merge 1 commit into
mainfrom
feature/hide-ptt-detected-devices-when-all-configured
Closed

Hide PTT detected-device cards when every channel is already configured#382
chrissnell wants to merge 1 commit into
mainfrom
feature/hide-ptt-detected-devices-when-all-configured

Conversation

@chrissnell

Copy link
Copy Markdown
Owner

Problem

GRA-184. An operator on a Pi reported the "Digirig PTT method is greyed out." The screenshot shows the real situation: their only channel (VHF APRS) already has Digirig Lite Tone PTT configured and working. What's greyed out is the "Recommended for PTT" card (a CM108AH at /dev/hidraw3, USB 0d8c:0012) in the detected-hardware section.

That card is disabled because every modem-backed channel already has a PttConfig (pttDetectionBlockedReason === 'all-configured') — there's nothing to attach a new device to. But a prominent green "RECOMMENDED FOR PTT" header sitting over a greyed, unclickable card reads as a malfunction, even though the operator's PTT is fully set up.

Fix

When all-configured, suppress the detected-device cards entirely and let the existing inline notice carry the guidance:

Every modem-backed channel already has a PTT configuration. Edit an existing configuration above to change its device.

The no-modem-channel state is unchanged — there the detected cards stay visible (disabled) so a fresh-install operator can see what hardware was found and is nudged to create a channel first.

Template-only change. All 365 web unit tests pass; Ptt.svelte compiles clean.

Note

This is the desktop/Pi half of GRA-184. A separate PR (#380) fixes a distinct Android-only flow bug where the same tone-PTT method dead-ended on an empty device-picker step.

On the PTT page, when every modem-backed channel already has a PttConfig,
the detected-hardware section still rendered a prominent green "Recommended
for PTT" card in a greyed-out, unclickable state. Operators read the
disabled card as a malfunction -- "the Digirig PTT is greyed out" -- even
though their PTT was configured and working; the card was only the
add-hardware shortcut, inert because no channel needed PTT.

Suppress the detected-device cards in the all-configured state and let the
existing inline notice ("Every modem-backed channel already has a PTT
configuration. Edit an existing configuration above to change its device.")
carry the guidance. The no-modem-channel state is unchanged: there the
detected cards stay visible to show what hardware was found and motivate
creating a channel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant