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 { useObserver } from 'mobx-react-lite';
|
||||
import React, { useEffect } from 'react';
|
||||
|
|
@ -11,6 +11,7 @@ import { InfoCircleOutlined } from '@ant-design/icons';
|
|||
import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
|
||||
import FunnelIssueModal from '../FunnelIssueModal';
|
||||
import FunnelIssuesListItem from '../FunnelIssuesListItem';
|
||||
const { Text } = Typography;
|
||||
|
||||
interface Issue {
|
||||
issueId: string;
|
||||
|
|
@ -36,6 +37,20 @@ const columns: TableProps<Issue>['columns'] = [
|
|||
dataIndex: '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',
|
||||
dataIndex: 'affectedUsers',
|
||||
|
|
@ -55,13 +70,13 @@ const columns: TableProps<Issue>['columns'] = [
|
|||
},
|
||||
];
|
||||
|
||||
interface Props {
|
||||
interface Props extends RouteComponentProps {
|
||||
loading?: boolean;
|
||||
issues: Issue[];
|
||||
history: any;
|
||||
location: any;
|
||||
}
|
||||
function FunnelIssuesList(props: RouteComponentProps<Props>) {
|
||||
function FunnelIssuesList(props: Props) {
|
||||
const { issues, loading } = props;
|
||||
const { funnelStore } = useStore();
|
||||
const issuesSort = useObserver(() => funnelStore.issuesSort);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue