-
Notifications
You must be signed in to change notification settings - Fork 38
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
New network centric view #750
Conversation
@majakomel is attempting to deploy a commit to the OONI Team on Vercel. A member of the Team first needs to authorize it. |
@hellais This is a rough implementation of the network view - it needs some more refactoring/cleanup and changes to the date selector when the other ticket is ready to be merged. Is there any clear idea yet what to put on the top of the page in the "high-level stats" area? I can start working on that part too. |
Thanks for putting this together. I left in the original issue some ideas for what we can do with the high level stats: #744 (comment). Re: this branch, here is some feedback:
|
@hellais That for the feedback and review, although this is just a first draft and there are several parts to still be refactored. |
@hellais I refactored all charts into one component and extracted two fetchers. Should I add a TODO comment or is there a way to add a follow-up ticket when backend adds support for multiple test_names? Few notes:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This is looking good. Some comments based on an inspection of the preview: In the measurement overview screen I think we should color code the dates in the future differently, since it's expected for there to not be any data there. I would suggest using an even lighter grey for those dates. For the dates which have zero data, it would be good if we had in those cases also a tooltip that shows 0 in it, so it's clear that is what is going on here. For the "Network observed in countries: XXX", I think we should make the XXX country name a link to the relevant country page so that we connect these two pages together. When I access a network for which we don't have any data, I think we should have a specific 404 page or have a zero state for that network page. We can display something similar to when we have no OONI data for a certain country encouraging people to run measurements: https://explorer.ooni.org/country/AQ. I think the URLs for the networks should start with AS{NUMBER}, this gives us the flexibility to re-route endpoints based on the prefix if we ever decide to change the format (maybe we want to put the network name in the address bar instead of the ASN). Sorry if my initial comment on this point wasn't clear. Answering your questions in the above comment:
I would say we should document it in an ooni/explorer issue and link it to the backend one so we remember to do it once there is backend support.
I think it would be good if we could figure out how to get the ranges to work properly. The issue with using ranges that are relative to a given network is that it will make it hard to compare charts of different networks (for example what is colored green in one network, might be colored red in another, because they have big spikes of many more measurements).
I tested this again with the latest deployed version and I don't seem to be able to reproduce this anymore. |
Another thing that would be good to have, is if we could sort the list of "Network observed in countries" by the number of measurements and perhaps also display the total number of measurements for each country. This is useful because it would allow us to spot cases in which the network is wrongly geolocated to a specific country. |
I addressed all the points from the comments, color range is also set now. Empty network page only shows CTA - let me know if you want to add more content. |
I think this looks good and we should merge and deploy it as is. We should document some items to be done for future work, which can be implemented iteratively as follow up PRs:
|
Closes #744