diff --git a/frontend/app/components/Dashboard/components/Errors/ErrorsList/ErrorsList.tsx b/frontend/app/components/Dashboard/components/Errors/ErrorsList/ErrorsList.tsx
index bfc7c9bcc..a6a9bca4c 100644
--- a/frontend/app/components/Dashboard/components/Errors/ErrorsList/ErrorsList.tsx
+++ b/frontend/app/components/Dashboard/components/Errors/ErrorsList/ErrorsList.tsx
@@ -1,8 +1,15 @@
-import React from 'react';
+import React, { useEffect } from 'react';
import ErrorListItem from '../ErrorListItem';
+import { useStore } from 'App/mstore';
+import { useObserver } from 'mobx-react-lite';
function ErrorsList(props) {
-
+ const { errorStore, metricStore } = useStore();
+ const metric = useObserver(() => metricStore.instance);
+
+ useEffect(() => {
+ errorStore.fetchErrors();
+ }, []);
return (
Errors List
diff --git a/frontend/app/components/Dashboard/components/Sessions/SessionList/SessionList.tsx b/frontend/app/components/Dashboard/components/Sessions/SessionList/SessionList.tsx
new file mode 100644
index 000000000..f85110edb
--- /dev/null
+++ b/frontend/app/components/Dashboard/components/Sessions/SessionList/SessionList.tsx
@@ -0,0 +1,13 @@
+import React from 'react';
+import SessionListItem from '../SessionListItem';
+
+function SessionList(props) {
+ return (
+
+ Session list
+
+
+ );
+}
+
+export default SessionList;
\ No newline at end of file
diff --git a/frontend/app/components/Dashboard/components/Sessions/SessionList/index.ts b/frontend/app/components/Dashboard/components/Sessions/SessionList/index.ts
new file mode 100644
index 000000000..779c9df2a
--- /dev/null
+++ b/frontend/app/components/Dashboard/components/Sessions/SessionList/index.ts
@@ -0,0 +1 @@
+export { default } from './SessionList';
\ No newline at end of file
diff --git a/frontend/app/components/Dashboard/components/Sessions/SessionListItem/SessionListItem.tsx b/frontend/app/components/Dashboard/components/Sessions/SessionListItem/SessionListItem.tsx
new file mode 100644
index 000000000..898d2d341
--- /dev/null
+++ b/frontend/app/components/Dashboard/components/Sessions/SessionListItem/SessionListItem.tsx
@@ -0,0 +1,14 @@
+import React from 'react';
+
+interface Props {
+ session: any;
+}
+function SessionListItem(props: Props) {
+ return (
+
+ Session list item
+
+ );
+}
+
+export default SessionListItem;
\ No newline at end of file
diff --git a/frontend/app/components/Dashboard/components/Sessions/SessionListItem/index.ts b/frontend/app/components/Dashboard/components/Sessions/SessionListItem/index.ts
new file mode 100644
index 000000000..1c2791143
--- /dev/null
+++ b/frontend/app/components/Dashboard/components/Sessions/SessionListItem/index.ts
@@ -0,0 +1 @@
+export { default } from './SessionListItem';
\ No newline at end of file
diff --git a/frontend/app/components/Dashboard/components/Sessions/SessionWidget/SessionWidget.tsx b/frontend/app/components/Dashboard/components/Sessions/SessionWidget/SessionWidget.tsx
new file mode 100644
index 000000000..0eb5ca1a5
--- /dev/null
+++ b/frontend/app/components/Dashboard/components/Sessions/SessionWidget/SessionWidget.tsx
@@ -0,0 +1,12 @@
+import React from 'react';
+import SessionList from '../SessionList';
+
+function SessionWidget(props) {
+ return (
+
+
+
+ );
+}
+
+export default SessionWidget;
\ No newline at end of file
diff --git a/frontend/app/components/Dashboard/components/Sessions/SessionWidget/index.ts b/frontend/app/components/Dashboard/components/Sessions/SessionWidget/index.ts
new file mode 100644
index 000000000..64b9563f5
--- /dev/null
+++ b/frontend/app/components/Dashboard/components/Sessions/SessionWidget/index.ts
@@ -0,0 +1 @@
+export { default } from './SessionWidget';
\ No newline at end of file
diff --git a/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx b/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx
index 32623efe7..c4232cc1b 100644
--- a/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx
+++ b/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx
@@ -13,6 +13,7 @@ import { getStartAndEndTimestampsByDensity } from 'Types/dashboard/helper';
import { debounce } from 'App/utils';
import FunnelWidget from 'App/components/Funnels/FunnelWidget';
import ErrorsWidget from '../Errors/ErrorsWidget';
+import SessionWidget from '../Sessions/SessionWidget';
interface Props {
metric: any;
isWidget?: boolean
@@ -84,6 +85,10 @@ function WidgetChart(props: Props) {
const renderChart = () => {
const { metricType, viewType } = metric;
+ if (metricType === 'sessions') {
+ return
+ }
+
if (metricType === 'errors') {
return
}
diff --git a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx
index e6c29f4af..100a76baf 100644
--- a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx
+++ b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx
@@ -19,7 +19,6 @@ function WidgetView(props: Props) {
const { metricStore } = useStore();
const widget = useObserver(() => metricStore.instance);
const loading = useObserver(() => metricStore.isLoading);
- const isFunnel = widget.metricType === 'funnel';
const [expanded, setExpanded] = useState(!metricId || metricId === 'create');
React.useEffect(() => {
@@ -73,8 +72,8 @@ function WidgetView(props: Props) {