Skip to content

Refactor v2#89

Merged
wpank merged 50 commits into
mainfrom
refactor/v2
Nov 21, 2025
Merged

Refactor v2#89
wpank merged 50 commits into
mainfrom
refactor/v2

Conversation

@wpank

@wpank wpank commented Nov 17, 2025

Copy link
Copy Markdown
Owner
  • Centralized design-system tokens

  • Added dashboardTypography and diagnosticsTypography for consistent Orbitron-inspired labels, headings, and captions.

  • Created a reusable DashboardSection wrapper that standardizes card chrome (glass, hover, neon borders) and header layout.

  • Provider dashboard refactors

    • Rebuilt MarketLeaderboards panels using DashboardSection, keeping live-status indicators, summaries, and leaderboards consistent while removing duplicated card markup.
    • Updated MarketOverviewCards (Sentiment, Liquidity Pulse, Open Interest) to use the same section wrapper + typography tokens, so future tweaks happen in a single location.
  • Wired StatsHighlights copy to the diagnostics typography tokens.

    • Reusable leaderboard components
  • Split funding/liquidity tiles into focused components (FundingColumn, LiquidityColumn, RateLeaderCard, LiquidityCard, AssetIconWithFallback) for easier maintenance and reuse.

  • State-management cleanup
    -Introduced hooks such as useMarketFilters and useStableBoard to encapsulate table filtering/sorting and stable leaderboards, reducing prop drilling and repeated logic.

      • many more splitting and separating files

wpank added 30 commits November 15, 2025 10:03
Fix multiple memory leak sources causing OOM crashes in production:

- WebSocket: Add error handlers, periodic dead socket cleanup (30s)
- Promise Maps: Track timestamps, cleanup stale entries (2-5 min)
- MarketStore: Proactive stale snapshot pruning (5 min interval)
- IconRegistry: Cache size limits (5K/10K), pending cleanup, throttled hydration
- Message Limits: WebSocket (1MB), Kafka (10MB), HTTP body (100KB)
- Orderbooks: Trim to top 100 levels per side
- Cleanup: All intervals cleared on shutdown, Redis listeners removed

Prevents heap exhaustion and ensures stable memory usage under load.
@wpank wpank merged commit 2a8274b into main Nov 21, 2025
1 check passed
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.

1 participant