Skip to content

Three small fixes: neutral example ticker, rf units bug, trim the rail - #22

Merged
GusFurtado merged 1 commit into
mainfrom
rail-cleanup-and-fixes
Sep 12, 2026
Merged

GusFurtado merged 1 commit into
mainfrom
rail-cleanup-and-fixes

Conversation

@GusFurtado

Copy link
Copy Markdown
Collaborator

Context

Three items from feedback on the live preview. Stacked on #21.

What changed

  • Example ticker: placeholder changed from "e.g. TSLA" to "e.g. SPY" — an index ETF rather than a ticker tied to a specific, politically visible individual.
  • Real bug: toggling Monthly/Annualized never updated the risk-free field's label or value — both were only ever refreshed from the rf slider's own input handler, so they went stale the moment you hit the units button without also touching the slider. Moved the update into the main render() loop (renderRfControl()), where every other unit-dependent display already lives.
  • Rail cleanup: removed the section TOC (5-item anchor list) and the mascot tip card below Run analysis, per feedback that both were low-value. The rail now ends at the Run button. Report sections keep their ids even without a nav pointing at them; the mascot image is still used elsewhere (running overlay, saved-runs empty state, get-started card), so only the now-dead .mw-toc/.mw-rail-note CSS came out along with the markup.

Verification

Headless Chromium: placeholder reads "e.g. SPY"; toggling units updates both the rf label and its displayed value correctly in both directions; the TOC and rail note are confirmed gone from the DOM.

🤖 Generated with Claude Code

- Placeholder example ticker changed from TSLA to SPY (an index ETF,
  not tied to any individual) — a more politically neutral example.

- Real bug: toggling Monthly/Annualized never updated the risk-free
  field's label or value. Both were only ever refreshed from the rf
  slider's own `input` handler, so they went stale the moment you hit
  the units button without also touching the slider. Added
  renderRfControl() to the main render() loop, where every other
  unit-dependent display already lives, and dropped the now-redundant
  duplicate update from the slider's own handler.

- Removed the rail's section TOC (5-item anchor list) and the mascot
  tip card below the Run button, per feedback that both were low value
  ("kinda useless" / "gibberish"). The rail now ends at Run analysis.
  Report sections keep their ids (#frontier, #allocation, etc.) even
  without the nav pointing at them; the mascot image itself is still
  used elsewhere (running overlay, saved-runs empty state, get-started
  card) so only the now-dead .mw-toc/.mw-rail-note CSS was removed
  along with the markup.

Verified with headless Chromium: placeholder reads "e.g. SPY"; toggling
units updates both #mwrf-label and #mwrf-display correctly in both
directions; the TOC and rail note are gone from the DOM.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@GusFurtado
GusFurtado force-pushed the rail-cleanup-and-fixes branch from 40caf31 to 7eb210d Compare September 12, 2026 00:52
@GusFurtado
GusFurtado changed the base branch from colorblind-safe-palette to main September 12, 2026 00:52
@GusFurtado
GusFurtado merged commit 55ab7ea into main Sep 12, 2026
10 checks passed
@GusFurtado
GusFurtado deleted the rail-cleanup-and-fixes branch September 12, 2026 01:02
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