compiler-explorer / conanproxy

Nodejs proxy in front of conanserver
Apache License 2.0
2 stars 2 forks source link

Make usage data page more readable #20

Closed partouf closed 2 years ago

partouf commented 2 years ago

The page https://conan.compiler-explorer.com/usage.html retrieves statistics from a CSV and displays them in a D3 chart. But when there's a lot of libraries listed, it's not very user friendly or readable.

Preferably at least the libraries that have 0 hits should not be in the chart, and even better should be mentioned like "The following libraries are left out because they were not used in the specified time-period: lib1, lib2, lib3, etc"

If there are better ways to graph this out with D3 thats Ok too.

The page can be edited directly from https://github.com/compiler-explorer/conanproxy/blob/main/html/usage.html and should be testable from any browser without having to serve it from a webserver.

Omafovbe commented 2 years ago

Hi, would love to work on this. Can I have the privilege to go ahead?

partouf commented 2 years ago

Hi, would love to work on this. Can I have the privilege to go ahead?

Absolutely, thanks!

AbrilRBS commented 2 years ago

Let us know if there's something we can help with :)

Omafovbe commented 2 years ago

Thanks. So I was thinking of using two approaches. One with chart.js and d3.js and limiting the libraries to 5 and more usage to present on the chart. Then <5 we can display as text. Is this Ok? And of course it can be updated later

On Wed, Aug 24, 2022 at 12:25 PM Rubén Rincón Blanco < @.***> wrote:

Let us know if there's something we can help with :)

— Reply to this email directly, view it on GitHub https://github.com/compiler-explorer/conanproxy/issues/20#issuecomment-1225588474, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXP2H3GKK4ALWC3GAUNX5LV2YBDRANCNFSM57MWWW5A . You are receiving this because you were assigned.Message ID: @.***>

partouf commented 2 years ago

Sounds good to me

Omafovbe commented 2 years ago

Hi,

I have been able to get the chart.js working with limiting the number of libraries to display as well as display the libraries not included in the chart on the html page with their number as show in the image attached herewith but i wish to ask would prefer we distinguish which is cpp and rust or just list the libraries. [image: usage chart.png]

On Wed, Aug 24, 2022 at 5:56 PM Patrick Quist @.***> wrote:

Sounds good to me

— Reply to this email directly, view it on GitHub https://github.com/compiler-explorer/conanproxy/issues/20#issuecomment-1225989558, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXP2H3DJWCNQ2OIHQJ26H3V2ZH4RANCNFSM57MWWW5A . You are receiving this because you were assigned.Message ID: @.***>

partouf commented 2 years ago

Hi, I have been able to get the chart.js working with limiting the number of libraries to display as well as display the libraries not included in the chart on the html page with their number as show in the image attached herewith but i wish to ask would prefer we distinguish which is cpp and rust or just list the libraries. [image: usage chart.png] On Wed, Aug 24, 2022 at 5:56 PM Patrick Quist @.> wrote: Sounds good to me — Reply to this email directly, view it on GitHub <#20 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXP2H3DJWCNQ2OIHQJ26H3V2ZH4RANCNFSM57MWWW5A . You are receiving this because you were assigned.Message ID: @.>

I cant see the image, but there should be something to mention whether its a cpp or rust library. Can be just textual like “libname (rust)” if needed

Omafovbe commented 2 years ago

Sorry about the image, didn't know it was that long, would work on this aspect then create another html page that deals solely with d3. Thanks

usage chart

On Sun, Aug 28, 2022 at 12:13 PM Patrick Quist @.***> wrote:

Hi, I have been able to get the chart.js working with limiting the number of libraries to display as well as display the libraries not included in the chart on the html page with their number as show in the image attached herewith but i wish to ask would prefer we distinguish which is cpp and rust or just list the libraries. [image: usage chart.png] … <#m6732129795014255255> On Wed, Aug 24, 2022 at 5:56 PM Patrick Quist @.> wrote: Sounds good to me — Reply to this email directly, view it on GitHub <#20 (comment) https://github.com/compiler-explorer/conanproxy/issues/20#issuecomment-1225989558>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXP2H3DJWCNQ2OIHQJ26H3V2ZH4RANCNFSM57MWWW5A https://github.com/notifications/unsubscribe-auth/AEXP2H3DJWCNQ2OIHQJ26H3V2ZH4RANCNFSM57MWWW5A . You are receiving this because you were assigned.Message ID: @.>

I cant see the image, but there should be something to mention whether its a cpp or rust library. Can be just textual like “libname (rust)” if needed

— Reply to this email directly, view it on GitHub https://github.com/compiler-explorer/conanproxy/issues/20#issuecomment-1229434904, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXP2H5IG6G7Z4VZUWE4QBDV3NCVNANCNFSM57MWWW5A . You are receiving this because you were assigned.Message ID: @.***>

partouf commented 2 years ago

Both pages are now live @ https://conan.compiler-explorer.com/usage.html and https://conan.compiler-explorer.com/usage-d3.html

Thanks, again!

Omafovbe commented 2 years ago

Thanks too for allowing me the privilege. And I wouldn't mind continually contributing to the project.

On Wed, Aug 31, 2022 at 1:58 AM Patrick Quist @.***> wrote:

Both pages are now live @ https://conan.compiler-explorer.com/usage.html and https://conan.compiler-explorer.com/usage-d3.html

Thanks, again!

— Reply to this email directly, view it on GitHub https://github.com/compiler-explorer/conanproxy/issues/20#issuecomment-1232326759, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXP2H45HGMLT3RJTDVATNDV32U2FANCNFSM57MWWW5A . You are receiving this because you were assigned.Message ID: @.***>