Commit d202fb6
committed
New: EpochProgress component (src/components/ui/epochProgress.tsx)
Generic progress bar that accepts a period(now) callback, recomputing boundaries on every 1s tick so it auto-restarts when a period ends. Displays metadata pills, a thin fill
bar, percentage, and human-readable remaining time.
Deleted files
- countdown.tsx + countdown.css — Circular countdown component replaced by EpochProgress
- userDelegations.tsx — Removed (was already unused; its import was also removed from delegateLocal.tsx)
fsp-stats.tsx
- Added two EpochProgress bars at the top: reward epoch progress (FireBrick) and current round progress (green)
- StatsChart now takes a height prop directly instead of relying on a wrapper <div style={{ height }}>, fixing the recharts -1 width/height console error
- Chart formatY changed from Formatter.number(100 * v) to Formatter.percent(v)
Validator statistics (Flare + Avalanche)
- Both statistics.tsx files: replaced <Countdown> with <EpochProgress>, showing a validator expiration progress bar
- Both types.ts files: countdown type changed from { endTime: Date } to { startTimeMs: number, endTimeMs: number }
- Both data.tsx files: now provide startTimeMs/endTimeMs in ms; dates formatted with new Formatter.dateHuman instead of Formatter.date
rewardClaims.tsx
- Simplified chainToTransactionUrl and chainToAddressUrl for Flare — removed protocol-based FSP/Validator branching, always uses EVM explorer URLs
- Removed unused Protocol import
formatter.ts
- Added dateHuman(unix) — formats as "Apr 1, 2026, 18:00"
- Added duration(ms) — formats as "1d 5h 23m 12s"
main.jsx
- Removed countdown.css import1 parent 3994079 commit d202fb6
16 files changed
Lines changed: 281 additions & 267 deletions
File tree
- src
- assets/css
- components
- pages
- ui
- pages/protocols
- avalanche-validator
- components
- flare-validator
- components
- utils/misc
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | | - | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
46 | 76 | | |
47 | 77 | | |
48 | 78 | | |
| |||
59 | 89 | | |
60 | 90 | | |
61 | 91 | | |
62 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
63 | 100 | | |
64 | 101 | | |
65 | 102 | | |
| |||
86 | 123 | | |
87 | 124 | | |
88 | 125 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 126 | + | |
92 | 127 | | |
93 | 128 | | |
94 | 129 | | |
| |||
100 | 135 | | |
101 | 136 | | |
102 | 137 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 138 | + | |
106 | 139 | | |
107 | 140 | | |
108 | 141 | | |
| |||
112 | 145 | | |
113 | 146 | | |
114 | 147 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 148 | + | |
118 | 149 | | |
119 | 150 | | |
120 | 151 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
0 commit comments