-
- (
- setShowDatePicker(true)}
- onKeyDown={() => setShowDatePicker(false)}
- name={field.name}
- value={field.value}
- onChange={field.onChange}
- />
- )}
- />
-
-
- (
- setShowDatePicker(true)}
- onKeyDown={() => setShowDatePicker(false)}
- name={field.name}
- value={field.value}
- onChange={field.onChange}
- />
- )}
- />
-
+
+
+
(
+
+ )}
+ name="probe_cc"
+ control={control}
+ />
+ {domains && (
+ (
+
+ )}
+ name="domains"
+ control={control}
+ />
+ )}
)
diff --git a/components/domain/Form.js b/components/domain/Form.js
index 65c051cd..3d784694 100644
--- a/components/domain/Form.js
+++ b/components/domain/Form.js
@@ -35,7 +35,7 @@ const Form = ({ onSubmit, availableCountries = [] }) => {
return {
since: query?.since ?? defaultDefaultValues.since,
until: query?.until ?? defaultDefaultValues.until,
- probe_cc: defaultDefaultValues.probe_cc,
+ probe_cc: query?.probe_cc ?? defaultDefaultValues.probe_cc,
}
}, [query])
@@ -58,7 +58,7 @@ const Form = ({ onSubmit, availableCountries = [] }) => {
}
useEffect(() => {
- const subscription = watch((value, { name, type }) => {
+ const subscription = watch((value, { name }) => {
if (
value[name] !== query[name] &&
dayjs(value.since, 'YYYY-MM-DD', true).isValid() &&
diff --git a/components/findings/FindingDisplay.js b/components/findings/FindingDisplay.js
index f220c6c1..0d92b5b1 100644
--- a/components/findings/FindingDisplay.js
+++ b/components/findings/FindingDisplay.js
@@ -4,7 +4,7 @@ import { MATChartWrapper } from 'components/MATChart'
import Markdown from 'markdown-to-jsx'
import Link from 'next/link'
import { useIntl } from 'react-intl'
-import { formatLongDate } from 'utils'
+import { formatLongDateUTC } from 'utils'
import { getLocalisedRegionName } from 'utils/i18nCountries'
const FormattedMarkdown = ({ children }) => {
@@ -28,7 +28,8 @@ const FindingDisplay = ({ incident }) => {
const reportedBy = incident?.reported_by
const formattedCreationDate =
- incident?.create_time && formatLongDate(incident?.create_time, intl.locale)
+ incident?.create_time &&
+ formatLongDateUTC(incident?.create_time, intl.locale)
const listOfNetworks = incident?.ASNs?.map((as) => (
{`AS${as}`}
)).reduce((prev, curr) => (prev ? [prev, ', ', curr] : curr), null)
@@ -46,10 +47,10 @@ const FindingDisplay = ({ incident }) => {
)}
{incident?.start_time &&
- formatLongDate(incident?.start_time, intl.locale)}{' '}
+ formatLongDateUTC(incident?.start_time, intl.locale)}{' '}
-{' '}
{incident?.end_time
- ? formatLongDate(incident?.end_time, intl.locale)
+ ? formatLongDateUTC(incident?.end_time, intl.locale)
: 'ongoing'}
{!!incident?.tags?.length && (
diff --git a/components/landing/HighlightBox.js b/components/landing/HighlightBox.js
index 9372979a..6541fe31 100644
--- a/components/landing/HighlightBox.js
+++ b/components/landing/HighlightBox.js
@@ -3,13 +3,15 @@ import PropTypes from 'prop-types'
import { useIntl } from 'react-intl'
import { getLocalisedRegionName } from 'utils/i18nCountries'
+import Link from 'next/link'
+import { formatLongDateUTC } from '../../utils'
import Flag from '../Flag'
const HighlightBox = ({ countryCode, title, text, dates, footer }) => {
const intl = useIntl()
return (
-
+
{countryCode && (
@@ -21,9 +23,9 @@ const HighlightBox = ({ countryCode, title, text, dates, footer }) => {
)}
{dates}
{title}
-
+
{text}
-
+
{footer}
@@ -40,3 +42,76 @@ HighlightBox.propTypes = {
}
export default HighlightBox
+
+export const FindingBox = ({ incident }) => {
+ const intl = useIntl()
+
+ return (
+
+
+ {incident.start_time &&
+ formatLongDateUTC(incident.start_time, intl.locale)}{' '}
+ -{' '}
+ {incident.end_time
+ ? formatLongDateUTC(incident.end_time, intl.locale)
+ : 'ongoing'}
+
+
+ {intl.formatMessage(
+ { id: 'Findings.Index.HighLightBox.CreatedOn' },
+ {
+ date:
+ incident?.create_time &&
+ formatLongDateUTC(incident?.create_time, intl.locale),
+ },
+ )}
+
+
+ }
+ footer={
+
+
+
+
+
+ }
+ />
+ )
+}
+
+export const FindingBoxSmall = ({ incident }) => {
+ const intl = useIntl()
+
+ return (
+
+
+
+ {incident.start_time &&
+ formatLongDateUTC(incident.start_time, intl.locale)}{' '}
+ -{' '}
+ {incident.end_time
+ ? formatLongDateUTC(incident.end_time, intl.locale)
+ : 'ongoing'}
+
+
+ }
+ />
+
+ )
+}
diff --git a/components/measurement/CommonDetails.js b/components/measurement/CommonDetails.js
index a4ab2da6..3aaac3cb 100644
--- a/components/measurement/CommonDetails.js
+++ b/components/measurement/CommonDetails.js
@@ -8,11 +8,7 @@ import { EmbeddedViewContext } from '../../pages/m/[measurement_uid]'
import { DetailsBox, DetailsBoxTable } from './DetailsBox'
const LoadingRawData = () => {
- return (
-
-
-
- )
+ return
}
const ReactJson = dynamic(() => import('react-json-view'), {
diff --git a/components/measurement/FeedbackBox.js b/components/measurement/FeedbackBox.js
index 92ae39c7..522c948a 100644
--- a/components/measurement/FeedbackBox.js
+++ b/components/measurement/FeedbackBox.js
@@ -138,9 +138,9 @@ const FeedbackBox = ({
const submitEnabled = useMemo(() => !!firstLevelRadio, [firstLevelRadio])
return (
-
+
setShowModal(false)}
/>
<>
diff --git a/components/measurement/InfoBoxItem.js b/components/measurement/InfoBoxItem.js
index 68f399b8..2ad6e04c 100644
--- a/components/measurement/InfoBoxItem.js
+++ b/components/measurement/InfoBoxItem.js
@@ -6,7 +6,7 @@ export const InfoBoxItem = ({ label, content, unit }) => (
{content} {unit && {unit}}
- {label}
+ {label}
)
diff --git a/components/measurement/nettests/Tor.js b/components/measurement/nettests/Tor.js
index 6df4b874..52e55308 100644
--- a/components/measurement/nettests/Tor.js
+++ b/components/measurement/nettests/Tor.js
@@ -96,7 +96,7 @@ const Table = ({ columns, data }) => {
const ConnectionStatusCell = ({ cell: { value } }) => {
let statusIcon = null
if (value === false) {
- statusIcon =
N/A
+ statusIcon =
N/A
} else {
statusIcon =
value === null ? (
diff --git a/components/search/FilterSidebar.js b/components/search/FilterSidebar.js
index d9f741db..143f7462 100644
--- a/components/search/FilterSidebar.js
+++ b/components/search/FilterSidebar.js
@@ -405,7 +405,7 @@ const FilterSidebar = ({
{(showConfirmedFilter || showAnomalyFilter) && (
<>
-