Repository navigation
Summary
This release introduces unified Platform Adapters, a new "Limit Order Only" trade control utility, fixes UI/UX context menu issues, restores the timeframe scroll feature against the latest TradingView DOM updates, and upgrades security dependencies.
What's New 🚀
1. Unified Platform Adapters & Instant Sync
- Modular Integration: Migrated the codebase to a clean platform adapter architecture (
PlatformAdapter). The extension now natively interfaces with standard TradingView and Dhan environments through a decoupled layer. - Instant Auto-Color Sync: Drawing line colors now synchronize instantly with active timeframes across tabs.
2. Limit Order Only Mode
- Accidental Prevention: Added a new safety toggle that locks down order tabs to Limit Orders only.
- Safeguards: Automatically disables the Market, Stop, and Stop-Limit tabs, as well as on-chart Buy/Sell buttons. Automatically snaps the active panel back to the Limit tab if other order types are clicked.
Bug Fixes & Improvements 🛠️
- Timeframe Scroll Restoration: Fixed the broken scroll timeframe feature by migrating active timeframe button detection to standard accessibility attributes (
aria-checked="true") and class prefix matching, bypassing React's hashed CSS class renames (isActive-HdKhcTye). - Color Palette Selectors: Updated color palette selector lookups to support new
data-qa-idmarkup while retaining backward-compatible support for legacydata-nameconfigurations. - UX Menu Fixes: Resolved context menu rendering, positioning, and interaction bugs (#6, #42, #44).
- Race Condition Fixes: Removed stale DOM color-menu toggle guards, resolving race conditions when modifying drawing colors.
- Refactored Selectors: Added extra fallback selectors for Line Width and Line Style menus to withstand hashed React classes.
What's Changed
- Feat & Fix: Add Limit Order Only toggle and resolve Auto Timeframe Colors issue by @xoTEMPESTox in #123
- fix: Resolve ContextMenu clipping, overlay bugs, and menu state syncing (#6, #42, #44) by @xoTEMPESTox in #126
- feat: multi-platform adapter architecture + DHAN support by @xoTEMPESTox in #127
- fix: resolve broken timeframe scroll via ARIA attributes & upgrade dependencies by @xoTEMPESTox in #141
Full Changelog: v5.0.5-beta...v5.0.6