-
+ { funnelIssue && }
+
+
+ {funnelIssue && funnelIssue.sessions.map(session => (
+
+ ))}
+
);
}
diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssueDetails/index.ts b/frontend/app/components/Dashboard/components/Funnels/FunnelIssueDetails/index.ts
similarity index 100%
rename from frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssueDetails/index.ts
rename to frontend/app/components/Dashboard/components/Funnels/FunnelIssueDetails/index.ts
diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssueGraph/FunnelIssueGraph.tsx b/frontend/app/components/Dashboard/components/Funnels/FunnelIssueGraph/FunnelIssueGraph.tsx
similarity index 100%
rename from frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssueGraph/FunnelIssueGraph.tsx
rename to frontend/app/components/Dashboard/components/Funnels/FunnelIssueGraph/FunnelIssueGraph.tsx
diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssueGraph/index.ts b/frontend/app/components/Dashboard/components/Funnels/FunnelIssueGraph/index.ts
similarity index 100%
rename from frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssueGraph/index.ts
rename to frontend/app/components/Dashboard/components/Funnels/FunnelIssueGraph/index.ts
diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/FunnelIssues.tsx b/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/FunnelIssues.tsx
index e779d4f49..81bb4457e 100644
--- a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/FunnelIssues.tsx
+++ b/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/FunnelIssues.tsx
@@ -4,7 +4,7 @@ import React, { useEffect } from 'react';
import { NoContent, Loader } from 'UI';
import FunnelIssuesDropdown from '../FunnelIssuesDropdown';
import FunnelIssuesSort from '../FunnelIssuesSort';
-import FunnelIssuesList from './components/FunnelIssuesList';
+import FunnelIssuesList from '../FunnelIssuesList';
function FunnelIssues(props) {
const { funnelStore } = useStore();
diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssuesList/FunnelIssuesList.tsx b/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesList/FunnelIssuesList.tsx
similarity index 100%
rename from frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssuesList/FunnelIssuesList.tsx
rename to frontend/app/components/Dashboard/components/Funnels/FunnelIssuesList/FunnelIssuesList.tsx
diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssuesList/index.ts b/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesList/index.ts
similarity index 100%
rename from frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssuesList/index.ts
rename to frontend/app/components/Dashboard/components/Funnels/FunnelIssuesList/index.ts
diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssuesListItem/FunnelIssuesListItem.tsx b/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesListItem/FunnelIssuesListItem.tsx
similarity index 100%
rename from frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssuesListItem/FunnelIssuesListItem.tsx
rename to frontend/app/components/Dashboard/components/Funnels/FunnelIssuesListItem/FunnelIssuesListItem.tsx
diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssuesListItem/index.ts b/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesListItem/index.ts
similarity index 100%
rename from frontend/app/components/Dashboard/components/Funnels/FunnelIssues/components/FunnelIssuesListItem/index.ts
rename to frontend/app/components/Dashboard/components/Funnels/FunnelIssuesListItem/index.ts
diff --git a/frontend/app/components/Dashboard/components/WidgetSubDetailsView/WidgetSubDetailsView.tsx b/frontend/app/components/Dashboard/components/WidgetSubDetailsView/WidgetSubDetailsView.tsx
index da772e747..261e77efd 100644
--- a/frontend/app/components/Dashboard/components/WidgetSubDetailsView/WidgetSubDetailsView.tsx
+++ b/frontend/app/components/Dashboard/components/WidgetSubDetailsView/WidgetSubDetailsView.tsx
@@ -4,7 +4,7 @@ import { useObserver } from 'mobx-react-lite';
import React, { useEffect } from 'react';
import { withSiteId } from 'App/routes';
import { Loader } from 'UI';
-// import FunnelSubDetailsView from './FunnelSubDetailsView';
+import FunnelIssueDetails from '../Funnels/FunnelIssueDetails';
interface Props {
history: any;
@@ -12,11 +12,13 @@ interface Props {
siteId: any
}
function WidgetSubDetailsView(props: Props) {
- const { match: { params: { siteId, dashboardId, metricId } } } = props;
- const { metricStore } = useStore();
+ const { match: { params: { siteId, dashboardId, metricId, subId } } } = props;
+ const { metricStore, funnelStore } = useStore();
const widget = useObserver(() => metricStore.instance);
+ const issueInstance = useObserver(() => funnelStore.issueInstance);
const loadingWidget = useObserver(() => metricStore.isLoading);
- const isFunnel = widget.metricType === 'funnel';
+ // const isFunnel = widget.metricType === 'funnel'; // TODO uncomment this line
+ const isFunnel = widget.metricType === 'table'; // TODO remove this line
useEffect(() => {
if (!widget || !widget.exists()) {
@@ -30,12 +32,12 @@ function WidgetSubDetailsView(props: Props) {
items={[
{ label: dashboardId ? 'Dashboard' : 'Metrics', to: dashboardId ? withSiteId('/dashboard/' + dashboardId, siteId) : withSiteId('/metrics', siteId) },
{ label: widget.name, to: withSiteId(`/metrics/${widget.metricId}`, siteId) },
- { label: 'Sub Details' }
+ { label: issueInstance ? issueInstance.title : 'Sub Details' }
]}
/>