Commit f4e004c
authored
refactor: redesign slot progress timeline UI (#290)
* fix: correct MEV block detection and improve phase node layout
Fixes two issues in the slot progress timeline:
1. MEV Detection: Changed the logic to check for the existence of the
blockMev object rather than just builder_pubkey. A block is externally
built if there is ANY data in the payload-delivered/MEV table, not just
when builder_pubkey is present. This ensures blocks built via MEV relay
are correctly identified as "External" instead of "Local".
2. Layout: Improved PhaseNode component styling to fix the "scuffed" third
line appearance:
- Increased gap between label/time/stats from 0.5 to 1 (gap-1)
- Always render time badge with reserved space (min-h-[13px]) instead
of conditional rendering to maintain consistent alignment
- Increased stats font size from 8px to 9px for better readability
- Added text-center class to time and stats for better alignment
- All three lines now have consistent reserved space to prevent layout
shifts
Affects both live slot view and static slot detail pages.
* refactor: improve slot progress timeline with distinct colors and remove unreliable MEV stats
Changes:
1. Removed "External" vs "Local" stats from Proposing phase - this was
unreliable due to MEV data timing issues
2. Added distinct colors to each phase for better visual hierarchy:
- Builders: accent (distinctive for MEV bidding)
- Relaying: secondary (relay selection)
- Proposing: primary (main block proposal action)
- Gossiping: secondary (network propagation, slots only)
- Attesting: warning (ongoing validation)
- Accepted: success (completed, >66% threshold)
3. All phases now have consistent color scheme across both live and
static views
The monotonous all-primary color scheme made it hard to distinguish
phases. The new color palette provides clear visual separation while
maintaining semantic meaning.
* refactor: use muted secondary color for all timeline phases
Replaced the varied color scheme (accent, primary, warning, success)
with a uniform secondary color for all phases. This creates a more
cohesive, muted appearance that is easier on the eyes and less
visually noisy.
All phases now use 'secondary' color:
- Builders
- Relaying
- Proposing
- Gossiping (slots only)
- Attesting
- Accepted
The uniform color scheme provides a calmer, more professional look
while maintaining clear phase distinctions through labels and icons.
* revert: use primary color for all timeline phases
Secondary was too dark/muted. Going back to a simpler approach with
primary color across all phases for a cleaner, more consistent look.
* refactor: simplify and clean up slot progress timeline design
Completely redesigned the timeline for a cleaner, more professional look:
PhaseNode changes:
- Removed all animations (pulse, ring effects, scale on hover)
- Switched from large circular buttons (size-12) to compact rounded squares (size-8)
- Removed complex color mappings and dynamic styles
- Simplified to three states with subtle visual differences:
- Pending: muted on surface background
- Active: primary accent with light background
- Completed: muted on surface background
- Smaller, cleaner icons (size-5)
- Better text hierarchy with proper font sizes (11px/10px/9px)
- Monospace font for time values for better alignment
- Conditional stats rendering (only show when present)
PhaseConnection changes:
- Removed dual-layer background/foreground approach
- Simplified to single subtle border line (border/50)
- Lighter progress fill (primary/20)
- Removed isActive color variations
Overall improvements:
- No more "scuffed" third line - proper conditional rendering
- No more uninspired look - clean, minimal, professional
- Better visual hierarchy without relying on animations
- More compact layout that doesn't dominate the UI
- Consistent spacing and alignment throughout
* fix: prevent layout shifts in slot progress timeline
Fixed height jumping by ensuring all text elements are always rendered:
- Added 'leading-tight' to all text spans for consistent line height
- Stats line now always renders with opacity-0 when empty instead of
conditionally rendering, preventing the component from changing height
- Non-breaking space (\u00A0) used as fallback to maintain consistent
spacing even when content is hidden
This prevents the page from jumping around when phases transition or
stats appear/disappear.
* feat: add success color to Accepted phase when 66% threshold reached
The Accepted phase now shows with a distinct success (green) color when
the block has achieved >66% attestation acceptance, making it visually
stand out as a completion milestone.
Changes:
- Accepted phase uses 'success' color when acceptanceTime is defined
- PhaseNode component now respects the 'success' color for both active
and completed states
- Icon background and text use success/10 and success colors
- Time badge also shows in success color when phase is successful
- Applied to both live and static slot views
When the phase is pending (acceptanceTime undefined), it remains muted
with primary color like other phases.1 parent 3142456 commit f4e004c
File tree
4 files changed
+54
-150
lines changed- src
- components/Ethereum/SlotProgressTimeline/components
- PhaseConnection
- PhaseNode
- pages/ethereum
- live/hooks/useSlotProgressData
- slots/hooks/useSlotProgressData
4 files changed
+54
-150
lines changedLines changed: 6 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 6 | + | |
27 | 7 | | |
28 | 8 | | |
29 | 9 | | |
30 | 10 | | |
31 | | - | |
| 11 | + | |
32 | 12 | | |
33 | 13 | | |
34 | 14 | | |
35 | 15 | | |
36 | 16 | | |
37 | 17 | | |
38 | 18 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
44 | 22 | | |
45 | 23 | | |
46 | 24 | | |
47 | 25 | | |
48 | 26 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 27 | | |
53 | 28 | | |
54 | 29 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 30 | + | |
61 | 31 | | |
62 | | - | |
63 | 32 | | |
64 | 33 | | |
65 | 34 | | |
| |||
Lines changed: 41 additions & 102 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
30 | 12 | | |
31 | 13 | | |
32 | 14 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 15 | + | |
48 | 16 | | |
49 | 17 | | |
50 | | - | |
51 | | - | |
| 18 | + | |
| 19 | + | |
52 | 20 | | |
53 | 21 | | |
54 | 22 | | |
55 | 23 | | |
56 | 24 | | |
57 | | - | |
| 25 | + | |
58 | 26 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 27 | + | |
64 | 28 | | |
65 | 29 | | |
66 | | - | |
67 | | - | |
| 30 | + | |
| 31 | + | |
68 | 32 | | |
69 | 33 | | |
70 | 34 | | |
71 | 35 | | |
72 | | - | |
73 | | - | |
| 36 | + | |
| 37 | + | |
74 | 38 | | |
75 | 39 | | |
76 | 40 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 41 | | |
86 | 42 | | |
87 | 43 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 44 | + | |
96 | 45 | | |
97 | 46 | | |
98 | | - | |
| 47 | + | |
99 | 48 | | |
| 49 | + | |
100 | 50 | | |
101 | 51 | | |
102 | | - | |
103 | | - | |
| 52 | + | |
| 53 | + | |
104 | 54 | | |
105 | | - | |
| 55 | + | |
106 | 56 | | |
107 | | - | |
108 | 57 | | |
109 | 58 | | |
110 | 59 | | |
111 | 60 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
133 | 76 | | |
134 | | - | |
| 77 | + | |
135 | 78 | | |
136 | 79 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
143 | 86 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 87 | | |
149 | 88 | | |
150 | 89 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | | - | |
| 96 | + | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | | - | |
| 117 | + | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| |||
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
133 | | - | |
| 130 | + | |
134 | 131 | | |
135 | 132 | | |
136 | | - | |
| 133 | + | |
137 | 134 | | |
138 | 135 | | |
139 | 136 | | |
| |||
147 | 144 | | |
148 | 145 | | |
149 | 146 | | |
150 | | - | |
| 147 | + | |
151 | 148 | | |
152 | 149 | | |
153 | 150 | | |
| |||
0 commit comments