From 0ac558e5846cb22d9419b36aba9805ea1d817e27 Mon Sep 17 00:00:00 2001
From: David de Kloet <122978264+dskloetd@users.noreply.github.com>
Date: Thu, 5 Dec 2024 16:08:12 +0100
Subject: [PATCH 1/7] Add banner to show total USD value (#5932)
# Motivation
At the top of both the tokens page and the neurons page we want to show
a banner with the total value in USD of the listed assets.
This PR adds a first version of that banner component, not yet used on
any page.
Switching the USD/ICP values and error state will be added in
subsequence PRs.
# Changes
1. Add banner component.
# Tests
1. Added unit tests.
# Todos
- [ ] Add entry to changelog (if necessary).
not necessary
---------
Co-authored-by: Yusef Habib
---
.../lib/components/ui/UsdValueBanner.svelte | 133 ++++++++++++++++++
frontend/src/lib/i18n/en.json | 3 +-
frontend/src/lib/types/i18n.d.ts | 1 +
.../lib/components/ui/UsdValueBanner.spec.ts | 87 ++++++++++++
.../UsdValueBanner.page-object.ts | 27 ++++
5 files changed, 250 insertions(+), 1 deletion(-)
create mode 100644 frontend/src/lib/components/ui/UsdValueBanner.svelte
create mode 100644 frontend/src/tests/lib/components/ui/UsdValueBanner.spec.ts
create mode 100644 frontend/src/tests/page-objects/UsdValueBanner.page-object.ts
diff --git a/frontend/src/lib/components/ui/UsdValueBanner.svelte b/frontend/src/lib/components/ui/UsdValueBanner.svelte
new file mode 100644
index 00000000000..93e7ceaca97
--- /dev/null
+++ b/frontend/src/lib/components/ui/UsdValueBanner.svelte
@@ -0,0 +1,133 @@
+
+
+