fix(market): hide extended stats columns for compact spot categories(OK-53080)#11204
Merged
originalix merged 13 commits intoxfrom Apr 15, 2026
Merged
fix(market): hide extended stats columns for compact spot categories(OK-53080)#11204originalix merged 13 commits intoxfrom
originalix merged 13 commits intoxfrom
Conversation
…OK-53080) Categories backed by per-token OKX detail APIs only expose a compact metric set, so desktop list pages now hide extended stats columns (transactions, uniqueTraders, holders, tokenAge) to match watchlist behavior. Categories with full stats (trending, x_mentioned) remain unchanged.
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
originalix
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
trendingandx_mentionedretain full stats; other thematic categories (ai, stock, metal, etc.) show compact viewshouldHideSpotExtendedStatsutility functionIntent & Context
Spot categories backed by per-token OKX detail APIs only expose a compact metric set. The desktop list pages now conditionally hide extended stats columns to match watchlist behavior and avoid displaying empty/unavailable data.
Design Decisions
Setfor O(1) lookup of categories with full stats (trending,x_mentioned)COMPACT_SPOT_HIDDEN_DESKTOP_COLUMNSas a constant array withas constfor type safetyuseMemowithselectedCategorydependency to avoid unnecessary re-rendersChanges Detail
shouldHideSpotExtendedStats()function andCOMPACT_SPOT_HIDDEN_DESKTOP_COLUMNSconstanthiddenSpotDesktopColumnsRisk Assessment
Test plan
trendingcategory - verify all columns visiblex_mentionedcategory - verify all columns visibleaior other thematic category - verify extended stats columns are hiddenyarn test utils.test.ts