Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ Active momentum day trading requires spotting low-float runners the split second

**NewsAlerts bridges this gap with a focused, zero-bloat institutional trading terminal designed for pure execution speed:**

- ✨ **iOS Frosted Glass Theme (Default in v3.0.0) & Hover Intensity Popover**: Modern institutional frosted dark-glass interface with unified rounded panes, capsules, and circular icons, a compact topbar percentage trigger (`💧 70%`) that pops up a `0%`–`100%` Glass Intensity bar on hover/scroll/click (with strict non-transparent readability floor), and instant 1-click switching back to classic **Standard** dark mode.
- ⚡ **Zero-Latency Inbound Alerts & Dual Topbar Toggles**: Instant audio chimes (with interactive volume control & dedicated in-app audio bell) alongside independent Telegram push notifications with a dedicated 1-click topbar toggle (Telegram paper plane + bell) to silence mobile phone alerts when operating directly at your desk.
- 🌊 **Running Momentum Tape**: Warrior-Trading style High of Day (HOD) and Squeeze Breakout prints with 4-day local disk persistence for weekend and off-hours trade review.
- 🌊 **Running Momentum Tape**: Warrior-Trading style High of Day (HOD) and Squeeze Breakout prints with 4-day local disk persistence and an automatic bottom-centered **`↑ Back to Top`** pill alongside `New Events ↑` for effortless deep history review.
- 🎯 **Interactive Strategy Builder & Tape Quick-Filter**: Construct customized momentum rules (`+ Add Strategy`) with trigger selectors, float ranges, and surge velocities in Settings, with instant one-click toggles right from the tape header (`Strategies 11/13`).
- 📋 **TradingView Cloud Watchlist Sync & 1-Click Quick-Add**: Real-time cloud watchlist selector bar docked directly above news headlines, paired with 1-click quick-add (`+`) buttons next to tickers in the Screener, Tape, and News header. Features 3-second green/red flickering feedback and instant cloud sync directly into your TradingView Desktop app.
- 📰 **Zero-Lag Catalyst Confirmation (Beat the 15-Min Delay)**: Unlike retail charting platforms where news lags by 5 to 15 minutes, NewsAlerts pulls fresh headlines the second they cross the wire (Benzinga, GlobeNewswire, PR Newswire), enabling immediate verification of whether a runner is moving on real PR or sym-play noise.
Expand All @@ -55,7 +56,7 @@ Active momentum day trading requires spotting low-float runners the split second
<img src="docs/img/terminal.png" alt="NewsAlerts Real-Time Momentum Terminal" width="100%" style="border-radius:10px; border:1px solid #2a3347; box-shadow:0 8px 24px rgba(0,0,0,0.45);" />
</a>
<br>
<small><em>Live institutional terminal capture (v2.15.0): Multi-tab real-time screener with inline duplicate &amp; right-side <code>×</code> close buttons, high-of-day momentum tape, TradingView cloud watchlist selector, 1-click topbar Prevent Screen Lock toggle, dual in-app audio &amp; Telegram alert toggles, interactive topbar 🚫 Banned / Closing-Only filter, catalyst news wire, and BamSEC SEC filings intelligence.</em></small>
<small><em>Live institutional terminal capture (v3.0.0 — Default iOS Frosted Glass Theme): Rounded frosted glass surfaces &amp; circular icon buttons, compact topbar <code>💧 70%</code> glass hover slider, multi-tab real-time screener (<code>+</code> / <code>⧉</code> / <code>×</code>), running momentum tape with floating <code>↑ Back to Top</code> pill, TradingView cloud watchlist sync, 1-click Prevent Screen Lock toggle, interactive 🚫 Banned filter, catalyst news wire, and BamSEC SEC filings intelligence.</em></small>
</p>

<table width="100%">
Expand All @@ -66,6 +67,28 @@ Active momentum day trading requires spotting low-float runners the split second
</tr>
</thead>
<tbody>
<tr>
<td width="32%" valign="top">
<h3>✨ iOS Frosted Glass Theme &amp; Hover Slider (v3.0)</h3>
<p><b>Default frosted glass look with compact topbar hover control &amp; classic Standard toggle</b></p>
<ul>
<li><b>Zero Topbar Bloat</b>: Compact <code>💧 70%</code> percentage pill expands on hover, mouse-wheel scroll (±5%), or click into a floating frosted <b>Appearance</b> popover.</li>
<li><b>Bar-Level Intensity (<code>0%–100%</code>)</b>: Smoothly adjusts blur and frosted translucency with a strict readability floor—never full transparency.</li>
<li><b>Switch to Standard Anytime</b>: Flip instantly back to classic flat dark mode (shown below) with state persisted across restarts and pop-out Tape windows.</li>
</ul>
</td>
<td width="68%" align="center" valign="middle">
<a href="docs/img/glass_popover.png" target="_blank">
<img src="docs/img/glass_popover.png" alt="Topbar Glass Intensity Hover Popover" width="380" style="border-radius:10px; border:1px solid #2a3347; box-shadow:0 4px 16px rgba(0,0,0,0.45); margin-bottom:10px;" />
</a>
<br>
<a href="docs/img/theme_standard.png" target="_blank">
<img src="docs/img/theme_standard.png" alt="Standard Dark Theme Switch with New Events and Back to Top Pills" width="100%" style="border-radius:8px; border:1px solid #2a3347; box-shadow:0 4px 16px rgba(0,0,0,0.35);" />
</a>
<br>
<small><em>Top: Hovering the topbar <code>💧 70%</code> pill reveals the Glass Intensity bar. Bottom: Switching to classic <b>Standard</b> mode (also showcasing side-by-side <code>New Events ↑</code> and <code>↑ Back to Top</code> tape pills).</em></small>
</td>
</tr>
<tr>
<td width="32%" valign="top">
<h3>⚡ Real-Time Momentum Screener</h3>
Expand Down Expand Up @@ -254,9 +277,10 @@ Active momentum day trading requires spotting low-float runners the split second
</tr>
<tr>
<td width="32%" valign="top">
<h3>🔋 Power &amp; Keep-Awake Controls</h3>
<p><b>Keep active trading desks awake &amp; unlocked without changing OS power plans</b></p>
<h3>🔋 Appearance, Power &amp; Keep-Awake Settings</h3>
<p><b>Unified General Settings for iOS Glass intensity, keep-awake locks, and BamSEC layout</b></p>
<ul>
<li><b>Window &amp; Appearance</b>: Switch between <code>✦ iOS Glass (Default)</code> and <code>Standard</code> and fine-tune <code>Glass intensity</code> with live preview and Cancel rollback.</li>
<li><b>Prevent Screen Lock</b>: Keeps OS sessions unlocked, awake, and displays powered on during active trading sessions.</li>
<li><b>1-Click Topbar Lock Toggle</b>: Dedicated padlock toggle icon on the topbar synchronized live with <b>Settings &rarr; General</b>.</li>
<li><b>Prevent Sleep &amp; Monitors Off</b>: Independent checkboxes to block system standby or display sleep across Windows, macOS, and Linux.</li>
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.16.0
3.0.0
20 changes: 19 additions & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,14 @@ def find_secrets_file() -> Path | None:
"prevent_sleep": False,
"prevent_display_off": False,
},
"ui": {"always_on_top": False, "font_size": 13, "news_width": 420, "tape_height": 300},
"ui": {
"always_on_top": False,
"font_size": 13,
"news_width": 420,
"tape_height": 300,
"theme": "glass",
"glass_intensity": 65,
},
}


Expand All @@ -256,6 +263,17 @@ def _merge(base: dict, override: dict) -> dict:
out["tape"]["strategies"].append(copy.deepcopy(default_s))
if "enabled" in out["tape"] and isinstance(out["tape"]["enabled"], list):
out["tape"]["enabled"].append(default_s["name"])
if "ui" in out and isinstance(out["ui"], dict):
theme = out["ui"].get("theme")
out["ui"]["theme"] = theme if theme in ("glass", "standard") else "glass"
raw_intensity = out["ui"].get("glass_intensity", 65)
try:
if isinstance(raw_intensity, bool):
raise ValueError("bool not allowed")
clamped = int(round(float(raw_intensity)))
except (TypeError, ValueError):
clamped = 65
out["ui"]["glass_intensity"] = max(0, min(100, clamped))
return out


Expand Down
Binary file modified assets/hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/social_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ All official releases are produced deterministically through GitHub Actions:

## Release History

- [v3.0.0 Release Notes](releases/v3.0.0.md) — Major visual milestone introducing the default **iOS Frosted Glass** theme with unified rounded surfaces/icons, compact topbar hover-popover intensity bar (`0%`–`100%` with strict readability floor), instant switch to classic **Standard** mode, persistent saved state, and live `web/tape.html` parity (Resolves #96).
- [v2.16.0 Release Notes](releases/v2.16.0.md) — Added floating `↑ Back to Top` (`#tape-scroll-top`) pill when scrolling the Running Tape, paired side-by-side with `New Events ↑` in `.tape-float-bar` across both main and pop-out `web/tape.html` windows (Resolves #94).
- [v2.15.0 Release Notes](releases/v2.15.0.md) — Added dedicated screener tab Add (`+`), inline Duplicate (`⧉`), and right-side inline Close (`×`) buttons without right-clicking, plus stale screen state pruning in `ScreenerWorker` (Resolves #85).
- [v2.14.0 Release Notes](releases/v2.14.0.md) — Added responsive horizontal topbar scrolling with auto-shown left/right arrow buttons on both sides of the screen for narrow windows and multi-tab layouts (Resolves #84).
Expand Down
38 changes: 33 additions & 5 deletions docs/SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@ A lightweight cross-platform desktop trading terminal (`Windows x64`, `macOS arm
</tr>
</thead>
<tbody>
<tr>
<td width="32%" valign="top">
<h3>✨ iOS Frosted Glass Theme &amp; Standard Mode Toggle (v3.0)</h3>
<p><b>Default rounded frosted glass workspace with compact topbar hover intensity slider</b></p>
<ul>
<li><b>Compact Topbar Control (<code>#btn-glass-theme</code>)</b>: Shows only the droplet icon + percentage; hovering, scrolling, or clicking opens <code>#glass-popover</code>.</li>
<li><b>Readability Floor</b>: Bar-level <code>0%–100%</code> intensity never becomes fully transparent; zero per-row <code>backdrop-filter</code> preserves 60fps tape scrolling.</li>
<li><b>Classic Standard Mode</b>: Instant 1-click switch back to flat dark theme (persisted in <code>config.json</code> and synced to pop-out <code>web/tape.html</code>).</li>
</ul>
</td>
<td width="68%" align="center" valign="middle">
<a href="img/glass_popover.png" target="_blank">
<img src="img/glass_popover.png" alt="Topbar Glass Intensity Hover Popover" width="380" style="border-radius:10px; border:1px solid #2a3347; box-shadow:0 4px 16px rgba(0,0,0,0.45); margin-bottom:10px;" />
</a>
<br>
<a href="img/theme_standard.png" target="_blank">
<img src="img/theme_standard.png" alt="Standard Mode Switch and Tape Floating Pills" width="100%" style="border-radius:8px; border:1px solid #2a3347; box-shadow:0 4px 16px rgba(0,0,0,0.35);" />
</a>
</td>
</tr>
<tr>
<td width="32%" valign="top">
<h3>⚡ Real-Time Momentum Screener</h3>
Expand Down Expand Up @@ -209,9 +229,10 @@ A lightweight cross-platform desktop trading terminal (`Windows x64`, `macOS arm
</tr>
<tr>
<td width="32%" valign="top">
<h3>🔋 Power &amp; Keep-Awake Controls</h3>
<p><b>Cross-platform keep-awake &amp; prevent screen lock directly in General Settings &amp; Topbar</b></p>
<h3>🔋 Appearance, Power &amp; Keep-Awake Settings</h3>
<p><b>Unified General Settings for iOS Glass intensity, cross-platform keep-awake, and BamSEC</b></p>
<ul>
<li><b>Window &amp; Appearance</b>: Live-preview theme switcher (<code>iOS Glass</code> default / <code>Standard</code>) and <code>0%–100%</code> Glass intensity slider with Cancel rollback.</li>
<li><b>Prevent Screen Lock</b>: Keeps OS sessions unlocked and awake, also toggleable with 1 click from the topbar lock icon (<code>#btn-prevent-lock</code>).</li>
<li><b>Prevent System Sleep</b>: Blocks OS sleep/standby while NewsAlerts is running.</li>
<li><b>Prevent Monitors Turning Off</b>: Keeps trading displays powered on without changing system-wide power plans.</li>
Expand Down Expand Up @@ -345,8 +366,11 @@ Non-session fields: `float_shares_outstanding`, `market_cap_basic`, `sector`,
- News pane features custom US equity symbol inspection (`#news-sym-input`) and quick watchlist chips.
- Tape header features instant quick-filter popout (`Strategies 11/13`) with color bullets and select/unselect all.
- Tape floating pill bar (`.tape-float-bar`) houses both `New Events ↑` (`#tape-new-events`) and an auto-shown `↑ Back to Top` (`#tape-scroll-top`) scroll utility button side-by-side without overlap across both embedded and pop-out `web/tape.html` views.
- Tape can pop out into its own window (second `pywebview` window serving `web/tape.html` with full watchlist `+` and floating `↑ Back to Top` parity).
- Dark theme matching TradingView look.
- Tape can pop out into its own window (second `pywebview` window serving `web/tape.html` with full watchlist `+`, floating `↑ Back to Top`, and live theme synchronization parity).
- **Default iOS Frosted Glass Theme & Compact Topbar Hover Slider (`v3.0.0`)**:
- **iOS Frosted Glass (`ui.theme = "glass"`, default)** renders a modern institutional glass-morphism workspace (`body.theme-glass`) layered over a deep ambient dark backdrop, with rounded surfaces (`16px`–`20px`), capsule tabs/pills/buttons/icons (`999px`), specular hairline borders, and strictly bounded `backdrop-filter` / `-webkit-backdrop-filter` applied only to static chrome & pane containers (never to individual table rows/cells, preserving 60fps scrolling at 3,000 rows and 4K).
- **Switchable to Standard (`ui.theme = "standard"`)**: Traders can switch instantly back to the classic flat dark theme anytime; choice and intensity persist in `config.json` and synchronize live across both `web/index.html` and detached `web/tape.html` via shared `App.applyTheme(ui)` in `web/js/util.js`.
- **Compact Topbar Percentage Trigger (`#btn-glass-theme`, `#glass-level-text`) & Hover Popover (`#glass-popover`)**: Displays only a minimal glass icon + percentage level (`65%` in Glass mode, `Std` in Standard mode) to conserve topbar width. Hovering, wheel-scrolling over it, focusing, or clicking opens the fixed floating `#glass-popover` containing the `iOS Glass` / `Standard` segmented switch and a `0%`–`100%` **Glass Intensity** bar (`ui.glass_intensity`, default `65`) enforcing a strict readability floor (surface opacity ≥ `0.60`, never full transparency).

## 6. Screener
### 6.1 Screens (presets)
Expand Down Expand Up @@ -561,7 +585,7 @@ Optional tape sound (default off — the tape is noisy).
## 10. Settings, Integrations & Local HTTP API
Settings modal (`#settings`, 9 tabs): **General & TV Login** · **Short Borrow** · **Sound Alerts** · **News** · **Tape Strategies** · **🚫 Banned Stocks** · **Hotkeys** · **Backup & Sync** · **About**.
- **Live In-Flight Credential Testing**: Both Alpaca (`POST /api/test_alpaca`) and Telegram (`POST /api/test_telegram`) support live testing directly with unsaved form values before saving Settings.
- **Reactive Topbar Sync**: Saving Settings, importing a Backup `.json`, or restoring Factory Defaults synchronously updates topbar Mute, Telegram, Volume, Prevent Lock, and Banned badge controls without restarting.
- **Reactive Topbar Sync**: Saving Settings, importing a Backup `.json`, or restoring Factory Defaults synchronously updates topbar Mute, Telegram, Volume, Prevent Lock, Glass Theme/Intensity, and Banned badge controls without restarting.
- **Storage Transparency & Direct Directory Access**: Settings → About and Settings → Backup & Sync display the active resolved OS directory (`APP_DIR`) on disk alongside a one-click `📂 Open App Data Folder` button (`POST /api/open_app_dir`, spawning Windows Explorer, macOS Finder, or Linux file manager) and `↺ Restore Factory Defaults` (`POST /api/reset_config`). Full Backup `.json` exports sanitize credentials by default unless explicitly opted in.
- **Local HTTP API Security & Concurrency**: Mutating `POST /api/*` routes enforce localhost `Origin`/`Referer` verification (`guard_local_csrf` in `app/server.py`, blocking cross-site CSRF with HTTP 403). All responses disable caching (`Cache-Control: no-cache, no-store, must-revalidate`).
- **Local HTTP API Routes (`app/server.py` ↔ `web/js/util.js`)**:
Expand All @@ -578,6 +602,10 @@ Settings modal (`#settings`, 9 tabs): **General & TV Login** · **Short Borrow**
- `bamsec_enabled` (bool, default `true`): Master opt-in toggle controlling BamSEC utilization across the terminal. When disabled, all BamSEC buttons, badges, drawers, and tabs are removed from the DOM, and all network calls to `/api/bamsec` are halted.
- `bamsec_mode` (`"drawer"` | `"tabs"`, default `"drawer"`): Default layout mode when BamSEC is enabled.
- `bamsec_drawer_open` (bool, default `true`): Drawer expansion state persistence.
- **Appearance & Theme Controls (`ui`)**:
- Configurable in **Settings → General & TV Login** under *Window & Appearance* (with live preview and Cancel rollback) and from the topbar `#btn-glass-theme` hover popover (`#glass-popover`), persisted under `config.json -> ui`:
- `ui.theme` (`"glass"` | `"standard"`, default `"glass"`): Enables the default **iOS Frosted Glass** theme (`body.theme-glass`) or classic **Standard** dark theme (`body.theme-standard`).
- `ui.glass_intensity` (`0`–`100`, default `65`, clamped in both `app/config.py` and `web/js/util.js`): Controls frosted blur (`6px`–`20px`), saturation, specular border sheen, and translucency with a strict non-transparent readability floor (surface alpha `0.86` → `0.60`).
- **Power & Keep-Awake Controls (`power`)**:
- Configurable in **Settings → General & TV Login** under *Power & Keep-Awake*, persisted under `config.json -> power`:
- `prevent_lock` (bool, default `false`): Prevents automatic screen lock / screensaver while keeping system and displays awake. Also exposed directly as a 1-click **Prevent Screen Lock** toggle button (`#btn-prevent-lock`) in the topbar (`POST /api/set_power`), bidirectionally synchronized with General Settings.
Expand Down
Binary file added docs/img/glass_popover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/power_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/terminal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/theme_standard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading