Skip to content

feat(market): support perps type banner with conditional detail rende…#10337

Open
xinlongwang-code wants to merge 6 commits intoOneKeyHQ:xfrom
xinlongwang-code:feat/market-perps-banner
Open

feat(market): support perps type banner with conditional detail rende…#10337
xinlongwang-code wants to merge 6 commits intoOneKeyHQ:xfrom
xinlongwang-code:feat/market-perps-banner

Conversation

@xinlongwang-code
Copy link

@xinlongwang-code xinlongwang-code commented Feb 25, 2026

…ring

Add EMarketBannerType enum (ticker/perps) and wire it through route params so banner detail page renders either spot token list or perps token table (with leverage badges, funding rate, OI columns) based on banner type. Add fetchMarketBannerPerpsTokenList API method for the new /v2/market/banner/perps-token-list/:id endpoint. Extract perps column hooks into reusable usePerpsColumns for shared use.


Open with Devin

…ring

Add EMarketBannerType enum (ticker/perps) and wire it through route
params so banner detail page renders either spot token list or perps
token table (with leverage badges, funding rate, OI columns) based on
banner type. Add fetchMarketBannerPerpsTokenList API method for the
new /v2/market/banner/perps-token-list/:id endpoint. Extract perps
column hooks into reusable usePerpsColumns for shared use.
@revan-zhang
Copy link
Contributor

revan-zhang commented Feb 25, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 5 additional findings.

Open in Devin Review

xinlongwang-code and others added 4 commits February 25, 2026 15:46
- i18n: replace hardcoded English column titles in mobile perps columns with intl.formatMessage
- security: add encodeURIComponent to tokenListId URL path params to prevent path traversal
- perf: add 30s pollingInterval for perps banner detail data freshness
- perf: add extraData prop to perps Table for proper re-render on data updates
Move inline PerpsTokenListSection component to its own file under
MarketBannerDetail directory, including perps data fetching logic,
to keep MarketBannerDetail focused on page layout.
@limichange limichange force-pushed the feat/market-perps-banner branch from 9a07557 to d96656d Compare February 28, 2026 08:06
@limichange limichange enabled auto-merge (squash) February 28, 2026 08:06
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.

4 participants