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): [LL] CVS v3 migration on Market #6850

Merged

Conversation

mcayuelas-ledger
Copy link
Contributor

@mcayuelas-ledger mcayuelas-ledger commented May 14, 2024

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • New API

📝 Description

The main objective of this PR is to use CVS v3 on the MArket part in all LL.

Redesign of certain functions in live-common
Use in LLM

  • List / details
    Use in LLD
  • List / details
    Improvements to the UI

More details in Jira ticket

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@mcayuelas-ledger mcayuelas-ledger requested a review from a team as a code owner May 14, 2024 07:57
Copy link

vercel bot commented May 14, 2024

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

5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview May 28, 2024 11:45am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview May 28, 2024 11:45am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview May 28, 2024 11:45am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview May 28, 2024 11:45am
web-tools ⬜️ Ignored (Inspect) Visit Preview May 28, 2024 11:45am

@live-github-bot live-github-bot bot added desktop Has changes in LLD mobile Has changes in LLM common Has changes in live-common ui Has changes in the design system library translations Translation files have been touched labels May 14, 2024
@mcayuelas-ledger
Copy link
Contributor Author

mcayuelas-ledger commented May 14, 2024

@mcayuelas-ledger

Generating screenshots: workflow ended

Jobs status:
✅ - generate-screenshots-linux

@mcayuelas-ledger mcayuelas-ledger requested a review from a team as a code owner May 14, 2024 12:55
@live-github-bot live-github-bot bot added the screenshots Screenshots have been updated label May 14, 2024
@mcayuelas-ledger mcayuelas-ledger force-pushed the support/cvs-migration-market branch 2 times, most recently from 035d640 to b32337e Compare May 21, 2024 15:08
Copy link
Member

@KVNLS KVNLS left a comment

Choose a reason for hiding this comment

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

lgtm!

Comment on lines 36 to 46
switch (range) {
case "all":
case "year":
return selectedCoinData.priceChangePercentage["1y"];
case "month":
return selectedCoinData.priceChangePercentage["30d"];
case "week":
return selectedCoinData.priceChangePercentage["7d"];
default:
case "day":
return selectedCoinData.priceChangePercentage["24h"];
Copy link
Member

Choose a reason for hiding this comment

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

Could you use values from KeysPriceChange instead of hardcoded values, please?
Maybe we could have a mapping here instead of a switch

props.order,
{
counterCurrency: props.counterCurrency,
...(props.search && props.search?.length > 1 && { search: props.search }),
Copy link
Member

Choose a reason for hiding this comment

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

1 or >=1 ?

@mcayuelas-ledger mcayuelas-ledger merged commit 76004fe into support/react-query-market-llm-bis May 29, 2024
57 of 67 checks passed
@mcayuelas-ledger mcayuelas-ledger deleted the support/cvs-migration-market branch May 29, 2024 08:06
mcayuelas-ledger added a commit that referenced this pull request May 31, 2024
…6428)

* WIP

* WIP 2

* Add tool in settings

* Remove MarketDataProvider from LLD

* WIP 3

* Clean code 🧹

* fix some lint checks

* Fix Search and LiveCompatible filter

* 🧹

* fix some bugs

* isLiveSupported wasn't used in codebase in both LLM/LLD

* Reorg files

* Reorg files

* Fix BreadCrump

* fix loader

* Enrich market store

* fix type in store

* Reorg hook's content

* Fix search and stared api call + Countervalue/range in MarketCoin + fix e2E tests

* Add FF refreshTime rate for LLD

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* Fix some reviews comments

* Mask graphs

* remove darwin

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* Add Mask EthStacking

* fix marketCoin screenshot

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* Add peerDependency

* Add changeset

* Only 1 call for range

* Mask items + fix screenshots

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* Mask itemson ethStacking test

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* Mask items on Coin detail page

* Refresh on Scroll or on position page every x time

* Add some test on utils

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* Fix coming back to page and don't refetch everything

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* Fix refetch

* Fix double fetch

* Fix color in chart

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* WIP

* Rework Store for Market

* WIP

* Add FF refresh in LLM

* Fix Market + improve fetch

* WIP ON detail Coin

* Add useMArket hook

* WIP

* WIP

* Update hooks

* Remove unused dependency

* Add refresh on scroll and evry X time

* revert changes on this file

* Reorg files

* Fix typecheck

* Remove unused stuff

* Fix typecheck

* Fix Starred coins

* Fix double loading component + Starred Empty State

* WIP FIX e2e

* fix props

* Fix E2e

* fix e2e

* Fix types

* Fix some UI details in MarketDetail page when loading

* fix Merge

* Fix CounterValu in Stats

* (chore): [LL] CVS v3 migration on Market  (#6850)

* WIP for LLD

* WIP LLM

* WIP LLM 2

* Fix color in graph llm

* fix lint + remove unesed stuff + handle starred/liveCoin

* add ids fields

* Add order in LLD

* Order in LLM + fix some UI bugs

* Order in LLD

* Add icons

* remove log

* Improve stuffs

* Chnagesets

* Fix unimported

* Fix Tests LLD

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

* fix Market integration test

* Fix page fetched

* Fix reviews

* Fix lint

---------

Co-authored-by: live-github-bot[bot] <105061298+live-github-bot[bot]@users.noreply.github.com>

* Fix price null issue + clean some code

* FIX LIVE-11870

* Fix lint

* test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot

---------

Co-authored-by: live-github-bot[bot] <105061298+live-github-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common desktop Has changes in LLD mobile Has changes in LLM screenshots Screenshots have been updated translations Translation files have been touched ui Has changes in the design system library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants