Repository navigation
NewsAlerts v2.10.3
·
6 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
NewsAlerts v2.10.3 — Release Notes
Release Date: October 2026
Type: Patch Release (PATCH — Ban Symbol API Routes & Optimistic UI Synchronization)
Single Source of Truth: VERSION (2.10.3)
🚀 Overview
NewsAlerts v2.10.3 fixes an unhandled TypeError during inline 🚫 symbol blacklisting on the Running Momentum Tape and Screener grid caused by missing server API routes. In addition, UI synchronization is now executed optimistically and synchronously so row buttons, topbar badges, and table filters instantly reflect banned/unbanned state without lag or freezing.
🛠️ Key Bug Fixes & Enhancements
1. Ban & Filter Banned API Route Registration (Issue #54)
- Server Routes (
app/server.py):- Registered
/api/ban_symbol(POST),/api/unban_symbol(POST), and/api/toggle_filter_banned(POST) endpoints routing directly toapi.ban_symbol(),api.unban_symbol(), andapi.toggle_filter_banned().
- Registered
- Client API Mapping (
web/js/util.js):- Implemented
ban_symbol(symbol),unban_symbol(symbol), andtoggle_filter_banned(enabled)helpers in_api. - Resolved
TypeError: App.api().ban_symbol is not a functionwhich previously aborted execution and prevented downstream UI updates.
- Implemented
2. Optimistic & Resilient UI Synchronization (web/js/app.js)
- Instant UI Refresh:
- When clicking 🚫 on Tape or Screener,
App.config.banned_symbolsis updated in memory and UI renderers (updateFilterBannedButton(),Screener.renderTable(),Tape.renderAll(),News.renderHead()) are executed immediately before network dispatch. - Buttons immediately reflect the red
.is-bannedactive state (or the row is hidden if filter is active), and topbar counter increments instantly.
- When clicking 🚫 on Tape or Screener,
- Safe Network Dispatch:
- Backend API invocations (
App.api().ban_symbol(),App.api().unban_symbol(),App.api().toggle_filter_banned()) are wrapped intry...catchblocks to protect client responsiveness against temporary network glitches.
- Backend API invocations (
3. Tape Alert Count Filter (web/js/tape.js)
- Banned Event Suppression in Header:
- Updated
Tape.updateNewBtn()to filter out banned symbols when calculating visible alert count (vis) whilefilter_bannedis active.
- Updated
🎯 Closed Issues
- Resolves #54: fix(tape): wire ban_symbol API routes and update UI synchronously on symbol ban/unban
🧪 Verification & Test Suite
- Syntax compilation:
compileall app run_app.pypassed with 0 errors. - Unit tests:
50/50 tests passed(including 3 new server route tests for/api/ban_symbol,/api/unban_symbol, and/api/toggle_filter_banned). - Secret audit: Verified 0 sensitive tokens in staged changes.