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

Add USD value banner on tokens page #5934

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Add USD value banner on tokens page #5934

merged 2 commits into from
Dec 9, 2024

Conversation

dskloetd
Copy link
Contributor

@dskloetd dskloetd commented Dec 5, 2024

Motivation

Using the banner component from #5932 on the tokens page.

Changes

  1. Calculate the sum of USD values in frontend/src/lib/pages/Tokens.svelte.
  2. Add UsdValueBanner if ENABLE_USD_VALUES is enabled.

Tests

  1. Unit tests added.
  2. Tested manually at https://qsgjb-riaaa-aaaaa-aaaga-cai.dskloet-ingress.devenv.dfinity.network/

Todos

  • Add entry to changelog (if necessary).
    not yet

@dskloetd dskloetd marked this pull request as ready for review December 5, 2024 17:44
@dskloetd dskloetd requested a review from a team as a code owner December 5, 2024 17:44
@dskloetd dskloetd enabled auto-merge December 5, 2024 17:45
frontend/src/lib/pages/Tokens.svelte Outdated Show resolved Hide resolved
@dskloetd dskloetd added this pull request to the merge queue Dec 9, 2024
Merged via the queue into main with commit 1f86c99 Dec 9, 2024
30 checks passed
@dskloetd dskloetd deleted the kloet/total-banner branch December 9, 2024 07:46
yhabib pushed a commit that referenced this pull request Dec 9, 2024
# Motivation

Using the banner component from
#5932 on the tokens page.

# Changes

1. Calculate the sum of USD values in
`frontend/src/lib/pages/Tokens.svelte`.
2. Add `UsdValueBanner` if `ENABLE_USD_VALUES` is enabled.

# Tests

1. Unit tests added.
2. Tested manually at
https://qsgjb-riaaa-aaaaa-aaaga-cai.dskloet-ingress.devenv.dfinity.network/

# Todos

- [ ] Add entry to changelog (if necessary).
not yet
@dskloetd dskloetd mentioned this pull request Dec 10, 2024
1 task
github-merge-queue bot pushed a commit that referenced this pull request Dec 10, 2024
# Motivation

#5934 added the USD value banner
on the tokens page.
We want the same banner on the ICP accounts page.

# Changes

1. Move function to add up USD balances to utils.
2. Add banner to `NnsAccounts` component.

# Tests

1. Unit tests added.
2. Tested manually at
https://qsgjb-riaaa-aaaaa-aaaga-cai.dskloet-ingress.devenv.dfinity.network/accounts/?u=qsgjb-riaaa-aaaaa-aaaga-cai

# Todos

- [ ] Add entry to changelog (if necessary).
not yet
github-merge-queue bot pushed a commit that referenced this pull request Dec 10, 2024
# Motivation

#5934 added the USD value banner
on the tokens page.
We want the same banner on the ICP accounts page.

# Changes

1. Move function to add up USD balances to utils.
2. Add banner to `NnsAccounts` component.

# Tests

1. Unit tests added.
2. Tested manually at
https://qsgjb-riaaa-aaaaa-aaaga-cai.dskloet-ingress.devenv.dfinity.network/accounts/?u=qsgjb-riaaa-aaaaa-aaaga-cai

# Todos

- [ ] Add entry to changelog (if necessary).
not yet
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.

2 participants