Skip to content

Improve fan mode button label clarity#3651

Merged
ten9876 merged 2 commits into
aethersdr:mainfrom
sathvika234567:fix-amp-fan-button-label
Jun 19, 2026
Merged

Improve fan mode button label clarity#3651
ten9876 merged 2 commits into
aethersdr:mainfrom
sathvika234567:fix-amp-fan-button-label

Conversation

@sathvika234567

Copy link
Copy Markdown
Contributor

Summary

Constitution principle honored

Test plan

  • Local build passes (cmake --build build)
  • Behavior verified on a real radio if applicable
  • Existing tests pass (CI)
  • Reproduction steps documented if user-reported bug

Checklist

  • Commits are signed (docs/COMMIT-SIGNING.md)
  • No new flat-key AppSettings calls — use nested-JSON-under-one-key
    (Principle V)
  • Code is clean-room — not decompiled, disassembled, or
    reverse-engineered from a proprietary binary (Principle IV)
  • All meter UI uses MeterSmoother (AGENTS.md convention)
  • Documentation updated if user-visible behavior changed
  • Security-sensitive changes reference a GHSA if applicable

Summary

This change makes the amplifier fan mode button more descriptive by replacing the single-letter labels (S, C, B) with clearer text labels.

Changes

  • Added a helper function to map fan modes to user-friendly labels.
  • Replaced:
    • S → Fan: Std
    • C → Fan: Contest
    • B → Fan: Bcast
  • Updated all fan mode button text assignments to use the helper function.

Motivation

The previous single-letter labels could be confused with amplifier state indicators, especially "S" being interpreted as "Standby". The new labels make the button purpose clearer while preserving existing behavior.

Fixes #3649

@sathvika234567 sathvika234567 requested a review from a team as a code owner June 18, 2026 13:39

@aethersdr-agent aethersdr-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, @sathvika234567 — this cleanly addresses #3649 (KW1M's confusion about "S" reading as "Standby"). The helper-function approach is the right call: it centralizes the mapping so all three call sites (constructor, click handler, setFanMode) stay in sync, and it correctly falls back to "Fan" for unknown/empty modes. Case handling is consistent too — setFanMode upper-cases input and the click handler uses upper-case kModes, so the == "STANDARD" comparisons all line up. No scope creep, no convention issues (no QSettings, no meter UI), single file. Nicely done.

Two small, non-blocking notes:

  1. Stale comment. The comment just above the button is now inaccurate — it still describes the old single-letter scheme:

    // Fan speed cycle button — single letter: S (STANDARD), C (CONTEST), B (BROADCAST).

    Worth updating to reflect the new "Fan: Std / Contest / Bcast" labels so the next reader isn't misled.

  2. "Bcast" vs "Broadcast". The issue author suggested the full word ("Fan: Broadcast"). You abbreviated to "Bcast" — reasonable for width, and the button uses QSizePolicy::Minimum so the full word would fit fine too. Either is acceptable; just flagging in case you'd prefer to match the requester's wording. (If you do, the accessible name and tooltip already spell out the full terms regardless.)

Neither is a blocker. Thanks again!


🤖 aethersdr-agent · cost: $1.3515 · model: claude-opus-4-8

…view aethersdr#3651)

Maintainer co-fix on top of the contribution: the cycle-button comment still
described the old single-letter labels (S/C/B), which now contradicts the
fanModeLabel() output ("Fan: Std" / "Fan: Contest" / "Fan: Bcast"). Updated it
and removed a stray double blank line. No behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@ten9876 ten9876 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. Code is correct (fanModeLabel applied at all 3 sites, closes #3649) and CI was green on the prior commit. Pushed a maintainer co-fix (6561158) updating the stale single-letter comment and dropping the extra blank line — the two cleanups from review. Squash-merge will credit @sathvika234567's first contribution. Enabling auto-merge so it lands once CI re-greens on the new commit.

@ten9876 ten9876 enabled auto-merge (squash) June 19, 2026 14:34
@ten9876 ten9876 merged commit 61cac87 into aethersdr:main Jun 19, 2026
5 checks passed
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.

Enhance Amplifier pane to describe the meaning of 'S' button

2 participants