Closed panzerox123 closed 3 years ago
Modified CPU Table:
Why does CircleCI act up only for Kunal's PRs XD
I believe that was because of a missing License xD
Hey, could you guys test the PR and let me know if something breaks? I'm having trouble reproducing the sensor issue, and my implementation seems to be very similar to the gotop one, so I'm not entirely sure if that was a one off error.
Will test it out later today, in the meantime could you update the branch?
@panzerox123
Oof, still getting the same Error: Number of warnings: 1
error code.
Huh. Thanks. I'm going to see if there's a different way to get temperature data.
The temperature panel works for me, even on 1e1fb7b (no warnings either). The only issue I noticed is that only the first few sensors are visible, the rest are hidden unless I zoom out. Is there a way to scroll that list?
The temperature panel works for me, even on 1e1fb7b (no warnings either). The only issue I noticed is that only the first few sensors are visible, the rest are hidden unless I zoom out. Is there a way to scroll that list?
Yes I'll switch it to the custom table widget!
We could use the Left and Right keys to change the selected widget (CPU, Disk, Temp sensors) and use the Up and Down keys to scroll them. Shouldn't be too hard to do.
Sounds good!
We could use the Left and Right keys
Along with h
and l
, right? :)
Ofcourse xD
This looks great!
I don't know much about grofer's UI codebase, so I can only comment on the usability. Some feedback:
100
without changing it. I tried this out by adding l.MaxVal = 100
to line 79 here, but that's a hack and there are better ways to do it. One way I could think of is adding a boolean flag to the LineGraph
struct which controls whether the graph is scaled or not.Wait vertically centering or horizontally centering them 🤔 . I can try to do both.
About this, were you able to make any progress here? Is it even possible?
I'm not going to lie I actually completely forgot about increasing the number of bars part lol. I'll get to it soon!
Plus I also want to clean up some of the code surrounding selecting tables. Just writing it down here so I don't forget to do that
Wait vertically centering or horizontally centering them thinking . I can try to do both.
I was thinking of vertical centering. This is how it looks for me rn:
I'm not going to lie I actually completely forgot about increasing the number of bars part lol. I'll get to it soon!
Haha, that's okay
Unfortunately it's impossible to adjust it in that case since it'll either be on the first line or the second :(
Should be ready to merge now!
Unfortunately it's impossible to adjust it in that case since it'll either be on the first line or the second :(
Ah right, makes sense.
The new CPU gauges look nice :tada:
Would it make sense to have the CPU table vs gauge a configuration option? Through viper we have a configuration file already, we could add it there.
I was trying to test the CPU table but because I have only 8 cpus I had to make this change in src/display/general/init.go
:
That broke the CPU widget xD
Is there another way to test this?
Yep! You have to change it in overallGraphs.go as well xD. Lines 131 and 283
Oof 6 places to change in total xD
How about we make the 8
a global variable? That can be overridden from viper too, effectively making it a configuration option in the config file.
Yeah that makes sense 🤔
I'll just make it a boolean value that can be changed during runtime with a keypress. That might be better?
That works too
@panzerox123 Loving the new CPU gauges!
I've got a couple of nitpicks before actually reviewing, I'll put them out here:
Could you put maybe either 2/4 character character space between CPU and the percentage utilization? I'm thinking make it look something like this:
CPU 0 12.34%
Selected table looks great with white, but by default there's no table selected (at least border isn't white). Maybe set one by default? Also, it would look better if only the selected table had the showCursor
set to true
.
As for the network graph, could the x axis maybe made thinner? (Not really a priority)
Edit: Also, the temperature table could probably have the columns resized better. Maybe give more space to the Sensor column than the temp?
Fixed the default selected table and the cursor thing. As well as the spacing in the CPU Gauge. Unfortunately I can't fix the X-axis. There's no block character that's thin enough that renders on the top-half of a cell. There is one that renders in the bottom half(so I can change it for the change it for the RX data), but itll look uneven
Unfortunately I can't fix the X-axis. There's no block character that's thin enough that renders on the top-half of a cell. There is one that renders in the bottom half(so I can change it for the change it for the RX data), but itll look uneven
Maybe use a separate axis then? One for RX and one for TX, one below the other. Might look hideous though, I'm not fully sure :P
Sure we can try that :thinking:
Just a suggestion. This PR is already too big, @panzerox123 you have done so much work here :heart:. So why not merge it if there aren't any major issues and we can open (maybe good-first) issues for the minor ones?
@MadhavJivrajani @Gituser143 what do you think?
Just a suggestion. This PR is already too big, @panzerox123 you have done so much work here heart. So why not merge it if there aren't any major issues and we can open (maybe good-first) issues for the minor ones?
Haha dont worry about it. This is a pretty smol change though so I can send it in tomorrow. If there's any other issues y'all can raise it on github and tag me :)
Hey, sorry for the inactivity. Samyak's suggestion is a fair one, after @panzerox123 is satisfied with the changes, we can merge it and follow up with smaller issues that can be picked up :)
And most importantly, thanks a bunch for your work @panzerox123, I love what you've brought to the table here ❤️
The way I see it, this PR is almost complete. A few minor tweaks (along with clean up?) and it should be ready to merge. So if @panzerox123 is up for it, let's wrap up with this PR itself?
That being said, if bugs do crop up, we can raise them as issues.
Yeah we can wrap it up by today!
I think it's ready to be merged
@Gituser143 All done!
@panzerox123 looks great! Thank you for this lovely UI refactor! I'll wait for either @MadhavJivrajani or @Samyak2 to give a second approval and merge!
Description
Building custom
termui
widgets and redesigning the main page to look more colorful. Needs more work to supportAlso added temperature sensor tracking. Needs more testing. Causes crashing on Windows. (Above image doesn't show anything)
Type of change
Please delete options that are not relevant.
Checklist:
go fmt
on my code (reference)