Skip to content

Conversation

@petar-omni
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
perps-widget Ready Ready Preview, Comment Jan 28, 2026 11:42am

Request Review

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the TradingView symbols generation script to implement a more sophisticated ordering system for selecting the optimal trading pair for each symbol. The script now prioritizes symbols first by quote currency (USD > USDC > USDT) and then by data provider (Coinbase > Binance > Crypto.com > Kraken > OKX > CRYPTOCAP), resulting in many symbols switching from USDT pairs to USD pairs and changing providers accordingly.

Changes:

  • Refactored symbol generation script by extracting utilities into a separate module
  • Implemented dual-priority ordering: currency preference first, then provider preference
  • Updated trading symbols data with new preferred pairs and providers based on the new ordering logic
  • Minor UI improvements to loading overlay opacity and card hover states

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/generate-tradingview-symbols/utils.ts New file containing extracted schemas, types, and ordering utilities for the symbol generation script
scripts/generate-tradingview-symbols/index.ts Refactored to use extracted utilities and implement new dual-priority ordering system (currency + provider)
src/assets/tradingview-symbols.json Updated with regenerated symbol mappings reflecting new ordering priorities - many symbols changed from USDT to USD pairs and switched providers
package.json Updated script path to point to the new index.ts location within the reorganized directory structure
src/components/modules/PositionDetails/Overview/Chart/index.tsx Changed loading overlay background from semi-transparent to fully opaque
src/components/modules/Home/Positions/position-card.tsx Added hover effect with subtle background color change for better UX
src/components/modules/Home/Positions/order-card.tsx Added hover effect with subtle background color change for better UX

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@petar-omni petar-omni merged commit 08e0000 into main Jan 28, 2026
8 checks passed
@petar-omni petar-omni deleted the feat/misc branch January 28, 2026 12:00
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.

3 participants