Skip to content

Commit db2def5

Browse files
authored
[Dashboard] Join operators address view and the wallet address view (#3323)
* feat: add kv store table, show transaction history for operator; cleanup * refactor: home page, header, graph * refactor: theme, components, simplify code, reorganize imports, add new fields to the wallet details * refactor: styles for mobile device, shadow icon * refactor: make table responsove, fix its cells, fix few other components, replace scss with mui in the component * fix: time period buttons logic, numeric format of hmt balance, remove some tooltips * refactor: leaderboard table, some component, reorder imports, remove unused css modules and components * refactor: use-breakpoints hook, some components, remove needless files * refactor: remove footer scss and changed footer component, other minor changes * refactor: theme's variants * feat: add tooltips to the operator details * fix: rename button * refactor: tooltips on home page * minor refactoring * fix: use custom hook for identifying isMobile * minor refactoring of Holders component * fix: weird padding in table, tooltip's padding on graph, color of address in the table, add withdrawable tokens * address the feedback partially * fix: using max integer * fix: show 0 instead of empty string, if graph's metric is nullable * fix: reset pagination on unmount * fix: hide vertical scroll on tables, get back standard-background className * remove log * fix hmt balance
1 parent 0048682 commit db2def5

File tree

69 files changed

+1662
-2018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1662
-2018
lines changed

packages/apps/dashboard/client/src/App.css

Whitespace-only changes.

packages/apps/dashboard/client/src/App.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import React from 'react';
1+
import { FC } from 'react';
2+
23
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
3-
import Home from '@pages/Home';
4+
45
import Graph from '@pages/Graph';
6+
import Home from '@pages/Home';
7+
import LeaderBoard from '@pages/Leaderboard';
58
import SearchResults from '@pages/SearchResults';
6-
import { LeaderBoard } from '@pages/Leaderboard';
79

8-
const App: React.FC = () => {
10+
const App: FC = () => {
911
return (
1012
<Router>
1113
<Routes>

packages/apps/dashboard/client/src/assets/react.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/apps/dashboard/client/src/assets/styles/_breadcrumbs.scss

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/apps/dashboard/client/src/assets/styles/_footer.scss

Lines changed: 0 additions & 72 deletions
This file was deleted.

packages/apps/dashboard/client/src/assets/styles/_graph-swipper.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
.swiper-button-next, .swiper-button-prev {
2-
top: 35%
2+
top: 50%;
3+
4+
@media (max-width: 900px) {
5+
top: 30%;
6+
}
37
}
48

59
.swiper-button-next::after, .swiper-button-prev::after {

packages/apps/dashboard/client/src/assets/styles/_header.scss

Lines changed: 0 additions & 72 deletions
This file was deleted.
Lines changed: 2 additions & 184 deletions
Original file line numberDiff line numberDiff line change
@@ -1,189 +1,7 @@
1-
.home-page-header {
2-
color: $white;
3-
.home-page-search {
4-
margin-top: 24px;
5-
}
1+
.home-page-search {
2+
margin-top: 24px;
63
}
74

8-
.home-page-boxes {
9-
display: flex;
10-
gap: 24px;
11-
margin-top: 62px;
12-
13-
.home-page-box {
14-
color: $primary;
15-
background-color: $white;
16-
border-radius: 16px;
17-
padding: 24px 32px;
18-
width: calc(38% - 24px);
19-
20-
@media (max-width: 660px) {
21-
padding: 24px 16px;
22-
}
23-
24-
.box-title {
25-
font-size: 14px;
26-
height: 32px;
27-
margin-bottom: 24px;
28-
display: flex;
29-
align-items: center;
30-
justify-content: space-between;
31-
}
32-
.box-content {
33-
display: flex;
34-
.count {
35-
font-size: 20px;
36-
font-weight: 500;
37-
margin-top: 3px;
38-
}
39-
.box-icon {
40-
margin-right: 10px;
41-
}
42-
}
43-
}
44-
45-
.home-page-box:first-child {
46-
width: 24%;
47-
}
48-
@media (max-width: 1250px) {
49-
flex-wrap: wrap;
50-
.home-page-box,
51-
.home-page-box:first-child {
52-
width: 100%;
53-
}
54-
}
55-
}
56-
57-
.home-page-find {
58-
font-size: 14px;
59-
margin-top: 32px;
60-
display: flex;
61-
gap: 32px;
62-
align-items: center;
63-
height: 60px;
64-
white-space: nowrap;
65-
span {
66-
display: flex;
67-
align-items: center;
68-
gap: 16px;
69-
}
70-
@media (max-width: 1100px) {
71-
span {
72-
min-width: 120px;
73-
}
74-
}
75-
}
76-
77-
.home-page-find-title-mobile {
78-
margin-top: 32px;
79-
font-size: 14px;
80-
@media (max-width: 1100px) {
81-
display: block;
82-
}
83-
}
845
.home-page-leaderboard {
856
margin-top: 60px;
867
}
87-
88-
.home-page-table-header {
89-
background-color: $whiteSolid;
90-
height: 72px;
91-
color: #320a8d;
92-
text-transform: uppercase;
93-
border: 0;
94-
margin-bottom: 15px;
95-
96-
th {
97-
font-size: 12px;
98-
}
99-
.icon-table {
100-
display: flex;
101-
align-items: center;
102-
gap: 8px;
103-
}
104-
}
105-
106-
.home-page-table-row {
107-
td {
108-
padding: 32px 16px;
109-
font-size: 16px;
110-
}
111-
112-
.icon-table {
113-
background-color: $groundwaterOpacity;
114-
display: flex;
115-
align-items: center;
116-
justify-content: center;
117-
border-radius: 10px;
118-
width: 52px;
119-
height: 52px;
120-
}
121-
122-
.reputation-table {
123-
padding: 4px 8px;
124-
border-radius: 16px;
125-
font-size: 13px;
126-
display: inline;
127-
}
128-
129-
.reputation-table-medium {
130-
color: $medium;
131-
border: 1px solid $mediumBorder;
132-
}
133-
134-
.reputation-table-low {
135-
color: $low;
136-
border: 1px solid $lowBorder;
137-
}
138-
139-
.reputation-table-high {
140-
color: $high;
141-
border: 1px solid $highBorder;
142-
}
143-
.reputation-table-soon {
144-
color: $soon;
145-
border: 1px solid $soonBorder;
146-
}
147-
148-
&:hover {
149-
transition: opacity 8ms;
150-
opacity: 0.8;
151-
}
152-
}
153-
154-
#network-select {
155-
svg {
156-
display: none;
157-
}
158-
}
159-
160-
.select-item {
161-
display: flex;
162-
gap: 10px;
163-
}
164-
165-
.mobile-select {
166-
width: 270px;
167-
background-color: $whiteSolid;
168-
padding: 10px;
169-
display: none;
170-
margin-bottom: 20px;
171-
@media (max-width: 1100px) {
172-
display: block;
173-
}
174-
}
175-
176-
.table-filter-select {
177-
@media (max-width: 1100px) {
178-
div {
179-
display: none;
180-
}
181-
}
182-
.mobile-title {
183-
display: none;
184-
font-weight: 400;
185-
@media (max-width: 1100px) {
186-
display: block;
187-
}
188-
}
189-
}

packages/apps/dashboard/client/src/assets/styles/_nothing-found.scss

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)