-
Notifications
You must be signed in to change notification settings - Fork 5
feat: overview tile and network stats #172
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
Conversation
ba70e4e to
6500c9f
Compare
asuzuki-jumptrading
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just one Q
| } { | ||
| const bits = bytes * 8; | ||
| if (bits < 1_000) return { value: bits, unit: "b" }; | ||
| if (bits < 1_000) return { value: getRoundedBitsValue(bits), unit: "b" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
| > | ||
| {Array.from({ length: barCount }, (_, i) => { | ||
| const isHigh = i >= barCount * 0.95; | ||
| const isHigh = i >= barCount * 0.95 || i === barCount - 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
|
|
||
| function setTickMs(newTickMs?: number) { | ||
| if (newTickMs === undefined) return; | ||
| tickMs = newTickMs; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this update for all users of this hook? Are we ok with that ok?
fb5e29b to
1073120
Compare
| <Table.Cell className={styles.chart}> | ||
| <TileSparkLine | ||
| value={Math.min(1, emaValue / maxValue)} | ||
| background="#0000001F" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we put this in the colors.ts file since we're also using it in the SlotPerformance TileCard?
1073120 to
0a2c87d
Compare
No description provided.