Skip to content

Point the Basic-Mode Sweep tab at Advanced Mode - #9

Merged
skip17331 merged 1 commit into
mainfrom
sweep-basic-hint
Jun 3, 2026
Merged

Point the Basic-Mode Sweep tab at Advanced Mode#9
skip17331 merged 1 commit into
mainfrom
sweep-basic-hint

Conversation

@skip17331

Copy link
Copy Markdown
Owner

Problem

A user reported "sweep doesn't do anything." It does — the solver, plot, and handler all work and are tested. The issue is pure UX: the Sweep results tab is always visible, but the controls to run a sweep (start/stop/steps spinboxes + "Run sweep" button) live in the Advanced-Mode-only box that's hidden by default (_advanced_sweep_box, setVisible(False)).

So in Basic Mode you see a Sweep tab whose placeholder says "Run a frequency sweep…" — with no button anywhere to do it. The tab looks broken.

Fix

The frequency sweep is an Advanced-Mode feature by design (spec §8), so rather than move the controls, the empty tab now tells the truth:

  • Basic Mode: "The frequency sweep is an Advanced-Mode feature. Use View → Promote to Advanced Mode to run one."
  • After promoting: the normal "Run a frequency sweep to see SWR across the band."

SweepView.clear() gained an optional message argument; MainWindow sets the hint at startup (the app begins in Basic Mode) and clears it back to the default in both promote paths (both early-return when already advanced, so a shown sweep is never wiped).

Tests

tests/test_sweep.py (+2): the Basic-Mode tab names Advanced Mode; promoting drops the hint. Suite 512 → 514, green locally.

For reference, the resulting placeholder text:

  • Basic: The frequency sweep is an Advanced-Mode feature.\nUse View → Promote to Advanced Mode to run one.
  • Advanced: Run a frequency sweep to see SWR across the band.

🤖 Generated with Claude Code

The Sweep results tab is always visible, but the controls to run a sweep
(start/stop/steps + the Run-sweep button) live in the Advanced-Mode-only box,
hidden by default. So a Basic-Mode user saw a Sweep tab whose placeholder said
"Run a frequency sweep..." with no button anywhere — making the feature look
broken ("sweep doesn't do anything").

The sweep is an Advanced feature by design (spec §8), so rather than move the
controls, the empty tab now tells the truth: in Basic Mode it reads "The
frequency sweep is an Advanced-Mode feature. Use View -> Promote to Advanced
Mode to run one." Promoting drops the hint back to the normal ready-to-run
prompt. SweepView.clear() gained an optional message argument to carry it.

Tests: the Basic-Mode tab names Advanced Mode; promoting clears the hint.
Suite 512 -> 514.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@skip17331
skip17331 merged commit eeb9d99 into main Jun 3, 2026
6 checks passed
@skip17331
skip17331 deleted the sweep-basic-hint branch June 3, 2026 13:52
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