📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
(add) new comments for view project
kruzhambus19538fcd4e42
diff --git a/src/pages/Project/View/ViewProject.tsx b/src/pages/Project/View/ViewProject.tsxindex ee24c176e..25ed6fb43 100644--- a/src/pages/Project/View/ViewProject.tsx+++ b/src/pages/Project/View/ViewProject.tsx@@ -217,18 +217,29 @@ const ViewProject = ({})// similar activeChartMetrics but using for performance tabconst [activeChartMetricsPerf, setActiveChartMetricsPerf] = useState<string>(CHART_METRICS_MAPPING_PERF.timing)+ // sessionDurationAVG using for tab overview. It is a data for session durationconst [sessionDurationAVG, setSessionDurationAVG] = useState<any>(null)+ // checkIfAllMetricsAreDisabled when all metrics are disabled, we are hidden chartconst checkIfAllMetricsAreDisabled = useMemo(() => !_some({ ...activeChartMetrics, ...activeChartMetricsCustomEvents }, (value) => value), [activeChartMetrics, activeChartMetricsCustomEvents])+ // filters - when we change filters we loading new data from api, update query url and update chartconst [filters, setFilters] = useState<any[]>([])+ // similar filters but using for performance tabconst [filtersPerf, setFiltersPerf] = useState<any[]>([])// That is needed when using 'Export as image' feature,// Because headless browser cannot do a request to the DDG API due to absense of The Same Origin Policy headerconst [showIcons, setShowIcons] = useState<boolean>(true)++ // isLoading is a true when we loading data from apiconst isLoading = authenticated ? _isLoading : false+ // tnMapping is a mapping for panels typeconst tnMapping = typeNameMapping(t)+ // refCalendar is a ref for calendarconst refCalendar = useRef(null)+ // refCalendarCompare is a ref for calendar when compare is enabledconst refCalendarCompare = useRef(null)+ // localStorageDateRange is a date range from local storageconst localStorageDateRange = projectViewPrefs ? projectViewPrefs[id]?.rangeDate : null+ // dateRange is a date range for calendarconst [dateRange, setDateRange] = useState<null | Date[]>(localStorageDateRange ? [new Date(localStorageDateRange[0]), new Date(localStorageDateRange[1])] : null)const [activeTab, setActiveTab] = useState<string>(() => {// @ts-ignore