Closed GermaVinsmoke closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
explorer | ✅ Ready (Inspect) | Visit Preview | Dec 29, 2022 at 2:56PM (UTC) |
Had to add a separate entry point Chart.js
because the way query and query params are formed are different in the Chart.js
of network
page. I think if we can separate out the query generation logic and useSwr
query hook into separate files then we can generalise the Chart.js
file into a single component
.
This looks great, thanks for putting it together. Some things I think we should do before merging it are:
inCountry
context)FormattedMessage
component), I will add an inline comment for theseChartCountry
, ChartNetwork
) and eventually consider merging them as you said in your comment.Next steps, which can be done as part of a separate PR:
Other nice to have improvements to the country page include:
Hey @hellais , I did 1 and 2. Removed the unused components and files (https://github.com/ooni/explorer/pull/785/commits/969574bc9753603e03a63d2d00591392ff117df8). I wanted to know what to do about some of the section headers, navigation and styling things.
The navigation present here, since we removed the Networks section at last, the scroll link doesn't work anymore.
The section headers, are those all good or can we improve that part? Because it still doesn't match - In the Websites section, we got 2 headers of Website. Then the last 2 charts (Instant Messaging & Circumvention) are present inside Apps section.
About 3.
Was thinking do we need to add the filter parameters in URL also? /country/CM?since=2022-08-01&until=2022-09-07
Just like we got on network page - /network/AS7018?since=2022-08-01&until=2022-09-07
The navigation present here, since we removed the Networks section at last, the scroll link doesn't work anymore.
Yeah I would say we just drop the networks tab until we re-add support for it.
The section headers, are those all good or can we improve that part? Because it still doesn't match - In the Websites section, we got 2 headers of Website.
Good catch. I think we would ideally at the very least drop the Websites heading from the Websites section, so we aren't repeating it twice.
Was thinking do we need to add the filter parameters in URL also?
Yeah I think that's a solid plan
Signed-off-by: GermaVinsmoke vaibhav1180@gmail.com