Skip to content
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 links to search in MAT tooltip for all counts #810

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
4a67862
Add links to search in MAT tooltip for all counts
majakomel Oct 18, 2022
17d901a
Build improvements (#808)
majakomel Oct 21, 2022
7141f16
Refactor MAT filters table to virtualize rows (#809)
majakomel Oct 21, 2022
0e9be68
Search page refactoring (#799)
majakomel Oct 21, 2022
0914dcf
Use SWC instead of Babel (#804)
majakomel Oct 25, 2022
0234a1d
Stringify MAT errors
majakomel Oct 25, 2022
951d58a
Fix measurement tests
majakomel Nov 10, 2022
75d127b
Update docs on managing translations (#748)
hellais Nov 10, 2022
ddad910
Import regenerator-runtime
majakomel Nov 24, 2022
5dac6ab
Fix server errors due to missing vars
majakomel Nov 24, 2022
0f92180
Force time_grain to day
majakomel Dec 6, 2022
311341d
Bump decode-uri-component from 0.2.0 to 0.2.2 (#817)
dependabot[bot] Dec 7, 2022
7510800
Bump qs from 6.5.2 to 6.5.3 (#819)
dependabot[bot] Dec 7, 2022
4637933
Bump minimatch from 3.0.4 to 3.1.2 (#820)
dependabot[bot] Dec 7, 2022
acc70fe
Upgrade nivo libraries
majakomel Dec 21, 2022
2eb3711
Move strings to localization file, localized date formatting, RTL sup…
majakomel Dec 22, 2022
801980a
Move vanilla tor from legacy to experimental category (#825)
majakomel Dec 27, 2022
f9d1696
Fix back button where params applied programmatically (#815)
majakomel Dec 27, 2022
9c5dfdd
Improve MAT conditional filters (#752)
sarathms Dec 28, 2022
ebcabdc
replaced older IM and circumvention charts (#785)
GermaVinsmoke Jan 8, 2023
674fd8e
Bump json5 from 1.0.1 to 1.0.2 (#829)
dependabot[bot] Jan 8, 2023
24b519f
Bump ua-parser-js from 0.7.31 to 0.7.33 (#835)
dependabot[bot] Feb 1, 2023
05f908f
DNS Answers: Add ancillary information (#828)
sleinen Feb 1, 2023
44c93f1
Search page filter values (#836)
GermaVinsmoke Feb 9, 2023
219366c
Update coverage chart color scale and add a legend (#823)
majakomel Feb 10, 2023
daee5f6
Update copy
majakomel Feb 13, 2023
8d039a8
Update inputs when navigating back circumvention page (#837)
majakomel Feb 15, 2023
bad54ab
Add support for selecting time granularity on MAT (#818)
majakomel Feb 15, 2023
0541f87
Default to day granularity for charts on thematic pages
majakomel Feb 15, 2023
5db15aa
Fix mat chart if time grain is missing
majakomel Feb 15, 2023
54471a9
Add missing dependency
majakomel Feb 15, 2023
7ca542d
Fix MAT subtitle for categories
majakomel Feb 20, 2023
8ae9d18
Return default value for getDatesBetween
majakomel Feb 20, 2023
4f40115
Update document.js
majakomel Feb 23, 2023
131dc0b
Remove redundant babel related packages
majakomel Feb 23, 2023
329cc9a
Fix error on MAT when dates typed in manually
majakomel Feb 24, 2023
7d2f211
Correctly map test ids
majakomel Feb 27, 2023
6a02865
Pull latest translations
majakomel Feb 27, 2023
63d7a14
Fix date picker ranges
majakomel Feb 27, 2023
d224928
Adjust MAT confirmation modal logic
majakomel Feb 27, 2023
2e4d5d7
User feedback mechanism with login (#790)
majakomel Mar 8, 2023
d7928ed
resolved conflicts
GermaVinsmoke Mar 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix mat chart if time grain is missing
majakomel committed Feb 15, 2023
commit 5db15aac1419d272ffe7d70374280706716cff2e
31 changes: 15 additions & 16 deletions pages/chart/mat.js
Original file line number Diff line number Diff line change
@@ -93,23 +93,22 @@ const MeasurementAggregationToolkit = ({ testNames }) => {
// In that case, trigger a shallow navigation that shows a chart
useEffect(() => {
const { query } = router
if (Object.keys(query).length === 0) {
const today = dayjs.utc().add(1, 'day')
const monthAgo = dayjs.utc(today).subtract(1, 'month')
const href = {
query: {
test_name: 'web_connectivity',
axis_x: 'measurement_start_day',
since: monthAgo.format('YYYY-MM-DD'),
until: today.format('YYYY-MM-DD'),
time_grain: 'day',
},
}
router.replace(href, undefined, { shallow: true })
const today = dayjs.utc().add(1, 'day')
const monthAgo = dayjs.utc(today).subtract(1, 'month')
const href = {
query: {
test_name: 'web_connectivity',
axis_x: 'measurement_start_day',
since: monthAgo.format('YYYY-MM-DD'),
until: today.format('YYYY-MM-DD'),
time_grain: 'day',
...query
},
}
// Ignore the dependency on `router` because we want
// this effect to run only once, on mount, if query is empty.
// eslint-disable-next-line react-hooks/exhaustive-deps
router.replace(href, undefined, { shallow: true })
// Ignore the dependency on `router` because we want
// this effect to run only once, on mount, if query is empty.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

const shouldFetchData = router.pathname !== router.asPath