-
Notifications
You must be signed in to change notification settings - Fork 37
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
add playback success + update css purecss + reorder columns + update crystal version #44
base: master
Are you sure you want to change the base?
Conversation
@@ -18,7 +18,7 @@ jobs: | |||
- name: Install Crystal | |||
uses: oprypin/install-crystal@v1 |
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.
uses: oprypin/install-crystal@v1 | |
uses: crystal-lang/install-crystal@v1.8.1 |
@@ -160,6 +160,7 @@ SORT_PROCS = { | |||
"api" => ->(name : String, instance : Instance) { instance[:api] == nil ? 2 : instance[:api] ? 0 : 1 }, | |||
"users" => ->(name : String, instance : Instance) { -(instance[:stats]?.try &.["usage"]?.try &.["users"]["total"].as_i || 0) }, | |||
"version" => ->(name : String, instance : Instance) { instance[:stats]?.try &.["software"]?.try &.["version"].as_s.try &.split("-", 2)[0].split(".").map { |a| -a.to_i } || [0, 0, 0] }, | |||
"playback" => ->(name : String, instance : Instance) { -(instance[:stats]?.try &.["playback"]?.try &.["ratio"]?.try { |ratio| ratio.as_f } || 0.0) }, |
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.
What do you think about latching onto the previous (populated) playback success statistics so that we mostly won't get an empty playback stats data?
Waiting for a feedback for iv-org/invidious#4231 (comment) |
This adds the new statistic called "playback success" (related iv-org/invidious#4085) to the column so that the user can choose instances that have working local playback (and working DASH).
I did try to add meaningful tooltips. I'm bad at CSS, so I removed the arrow that points to what the tooltip is for.
Also, I did reorder the columns and placed from the left the most important ones because I think it's more user-friendly. Not sure why we are keeping "cors" while it could just be available only in the JSON API.
Finally, I upgraded purecss from v1.0.1 to v3.0.0 and also to crystal 1.10.1
Results :
Tooltips: