change(ui): funnel issues table show context column
This commit is contained in:
parent
8024083c64
commit
89afab8a22
1 changed files with 18 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { Table } from 'antd';
|
import { Table, Typography } from 'antd';
|
||||||
import type { TableProps } from 'antd';
|
import type { TableProps } from 'antd';
|
||||||
import { useObserver } from 'mobx-react-lite';
|
import { useObserver } from 'mobx-react-lite';
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
|
|
@ -11,6 +11,7 @@ import { InfoCircleOutlined } from '@ant-design/icons';
|
||||||
import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
|
import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
|
||||||
import FunnelIssueModal from '../FunnelIssueModal';
|
import FunnelIssueModal from '../FunnelIssueModal';
|
||||||
import FunnelIssuesListItem from '../FunnelIssuesListItem';
|
import FunnelIssuesListItem from '../FunnelIssuesListItem';
|
||||||
|
const { Text } = Typography;
|
||||||
|
|
||||||
interface Issue {
|
interface Issue {
|
||||||
issueId: string;
|
issueId: string;
|
||||||
|
|
@ -36,6 +37,20 @@ const columns: TableProps<Issue>['columns'] = [
|
||||||
dataIndex: 'title',
|
dataIndex: 'title',
|
||||||
key: 'title',
|
key: 'title',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Page / Element',
|
||||||
|
dataIndex: 'contextString',
|
||||||
|
key: 'contextString',
|
||||||
|
render: (text: string) => (
|
||||||
|
<Text ellipsis style={{
|
||||||
|
width: 200, // Adjust width here as needed
|
||||||
|
overflow: 'hidden',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
textOverflow: 'ellipsis',
|
||||||
|
}}>{text}</Text>
|
||||||
|
),
|
||||||
|
width: 200,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '# Users Affected',
|
title: '# Users Affected',
|
||||||
dataIndex: 'affectedUsers',
|
dataIndex: 'affectedUsers',
|
||||||
|
|
@ -55,13 +70,13 @@ const columns: TableProps<Issue>['columns'] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
interface Props {
|
interface Props extends RouteComponentProps {
|
||||||
loading?: boolean;
|
loading?: boolean;
|
||||||
issues: Issue[];
|
issues: Issue[];
|
||||||
history: any;
|
history: any;
|
||||||
location: any;
|
location: any;
|
||||||
}
|
}
|
||||||
function FunnelIssuesList(props: RouteComponentProps<Props>) {
|
function FunnelIssuesList(props: Props) {
|
||||||
const { issues, loading } = props;
|
const { issues, loading } = props;
|
||||||
const { funnelStore } = useStore();
|
const { funnelStore } = useStore();
|
||||||
const issuesSort = useObserver(() => funnelStore.issuesSort);
|
const issuesSort = useObserver(() => funnelStore.issuesSort);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue