Skip to content

fix(ui): Settings.open('tv') crashes on status pill and watchlist badge click #67

Done

Description

@mlgitdev

Description

Clicking the topbar TradingView status pill (#tv-status-badge) or the Watchlist bar Local badge (#watchlist-status-badge) invokes Settings.open("tv"). However, Settings defines no tab_tv method (TradingView login fields live in tab_general / data-tab="general"). Calling Settings["tab_" + name](c) throws an uncaught TypeError: Settings[("tab_" + name)] is not a function and prevents the Settings modal from opening.

References: web/js/app.js:45,693, web/js/settings.js:24, web/index.html:206

Steps to Reproduce

  1. Launch NewsAlerts.
  2. Click the topbar TradingView — Disconnected / Connected badge, or click the Local badge in the Watchlist bar.
  3. Observe that the Settings modal does not open and DevTools throws TypeError: Settings[("tab_" + name)] is not a function.

Expected Behavior

Both badges should open the Settings modal to the general tab (General & TV Login), and Settings.open() should safely fall back to general for any unrecognized tab name.

Operating System & Version

  • OS: Windows 11 x64 / macOS arm64 / Linux x86_64
  • Version: v2.12.0
  • Display / Scale: Verified via live Chrome CDP (1600x960) & local unit/backend suite

Logs & Additional Context

Live Chrome CDP verification confirmed modal_open=(False, False) and TypeError: Settings[("tab_" + name)] is not a function on both badges.

Activity

  1. added
    bug
    on Dec 2, 2026
  2. self-assigned this
    on Dec 2, 2026
  3. github-actions commented on Dec 2, 2026

    @github-actions

    ✅ Issue Validation Passed

    • Conventional Commit title syntax (fix(ui))
    • Verified issue type: BUG
    • Required template sections present and filled out

    This issue is well-structured and ready for work according to the Issue-First Protocol.

  4. mlgitdev commented on Dec 2, 2026

    @mlgitdev
    OwnerAuthor

    🚀 Resolution In Progress

    A fix for this issue has been implemented and submitted in Pull Request #82 (v2.12.1).

    • Branch: fix/audit-remediation-67
    • PR URL: fix(core): resolve 15 verified audit issues across UI, API, concurrency, audio, and packaging (v2.12.1) #82
    • Summary of Changes: Routed #tv-status-badge and #watchlist-status-badge clicks to Settings.open("general") in web/js/app.js and added a safe fallback to general in Settings.open() (web/js/settings.js). Verified via live Chrome CDP with zero console exceptions.
    • Verification: compileall clean, 84/84 unit tests passing (including tests/test_audit_fixes.py), and live Chrome CDP verification passed.

    This issue will automatically close upon PR #82 review and merge into main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions