Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(displayId): Migrate marketId rendering to displayId #919

Conversation

jaredvu
Copy link
Contributor

@jaredvu jaredvu commented Aug 14, 2024

Replace marketId usage with displayId


Views

  • <TradeHeaderMobile>

    • use displayId instead of market
  • <MarketSelectorAndStats>

    • Update selector from getCurrentMarketId -> getCurrentMarketDisplayId
  • <MarketDetails> / <FillDetailsDialog> / <OrderDetailsDialog>

    • Add ticker row to expose marketId
  • <PositionsTable> / <OrdersTable>

    • use displayId for <MarketTableCell>

Hooks

  • hooks/useMarketsData / <Markets>
    • add missing hook deps

State

  • state/perpetualsSelectors
    • Add selector to getCurrentMarketDisplayId

Packages

  • v4-abacus
    • Expose displayId
    • updated: v1.8.85 -> v1.8.86

@jaredvu jaredvu requested a review from a team as a code owner August 14, 2024 17:58
Copy link

vercel bot commented Aug 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v4-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 4:55pm
v4-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 4:55pm

Copy link
Contributor

@tyleroooo tyleroooo left a comment

Choose a reason for hiding this comment

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

seems sane

@tyleroooo
Copy link
Contributor

is there a similar set of changes for asset ids? We display those in tags and things all over.

@jaredvu
Copy link
Contributor Author

jaredvu commented Aug 14, 2024

is there a similar set of changes for asset ids? We display those in tags and things all over.

assetIds were also changed in abacus. So instead of deriving the assetIds from marketId they are now derived from displayId

@jaredvu jaredvu merged commit 693d12d into main Aug 26, 2024
8 checks passed
@jaredvu jaredvu deleted the jared/tra-542-web-migrate-usage-of-id-and-audit-usage-of-market-from branch August 26, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants