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

feat: WIP on amountFormat #270

Merged
merged 22 commits into from
Jul 14, 2023
Merged

feat: WIP on amountFormat #270

merged 22 commits into from
Jul 14, 2023

Conversation

Majorfi
Copy link
Collaborator

@Majorfi Majorfi commented Jul 10, 2023

Description

WIP implementation of a refactor on the amount display to get rid of the troubles of format format format format format format, have a react component to avoid having to set the suppress hydratation warning and display an information tooltip, handle edge case (big value, dust amount) and symbol displaying

Related Issue

NA

Motivation and Context

See description

How Has This Been Tested?

Locally tested on the vault list page on Ethereum, still some work to do

Screenshots (if appropriate):

@Majorfi Majorfi added the enhancement New feature or request label Jul 10, 2023
@Majorfi Majorfi requested a review from karelianpie July 10, 2023 08:24
@vercel
Copy link

vercel bot commented Jul 10, 2023

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

Name Status Preview Comments Updated (UTC)
yearnfi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2023 8:12pm

@karelianpie karelianpie self-requested a review July 12, 2023 06:27
karelianpie
karelianpie previously approved these changes Jul 12, 2023
Majorfi and others added 20 commits July 13, 2023 16:54
Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>
Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>
Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>
Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>
Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>
Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>
@Majorfi Majorfi merged commit 8254f63 into main Jul 14, 2023
@Majorfi Majorfi deleted the feat/amountFormat branch July 14, 2023 21:31
Majorfi added a commit that referenced this pull request Jul 14, 2023
* feat: WIP on amountFormat

* fix: design

* feat: update vault list with number formatter

* feat: add tests

* Update apps/common/utils/format.test.ts

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.test.ts

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.tsx

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.tsx

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.tsx

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.tsx

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* feat: merge recs

* refactor: Extract formatter to web-lib

* fix: move file out of utils

* feat: update number display

* feat: Add shouldShowTooltip prop

* refactor: Show tooltip only for small numbers

* refactor: Remove unnecessary prop

* fix: new type err

* fix: disable withTM in prod

* feat: bump weblib

* fix: bump pkg

---------

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>
Co-authored-by: Karelian Pie <devkarelianpie@gmail.com>
Majorfi added a commit that referenced this pull request Jul 15, 2023
* feat: Add 'Boosted' category to Opti vaults

* fix: add more staking rewards

* fix: rename

* feat: WIP on amountFormat (#270)

* feat: WIP on amountFormat

* fix: design

* feat: update vault list with number formatter

* feat: add tests

* Update apps/common/utils/format.test.ts

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.test.ts

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.tsx

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.tsx

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.tsx

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* Update apps/common/utils/format.tsx

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>

* feat: merge recs

* refactor: Extract formatter to web-lib

* fix: move file out of utils

* feat: update number display

* feat: Add shouldShowTooltip prop

* refactor: Show tooltip only for small numbers

* refactor: Remove unnecessary prop

* fix: new type err

* fix: disable withTM in prod

* feat: bump weblib

* fix: bump pkg

---------

Co-authored-by: Chef Karelian <78794805+karelianpie@users.noreply.github.com>
Co-authored-by: Karelian Pie <devkarelianpie@gmail.com>

* feat: add new withRewards

---------

Co-authored-by: Major <major@ycorpo.com>
Co-authored-by: Major <90963895+Majorfi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🟢 Done
Development

Successfully merging this pull request may close these issues.

2 participants