fix #19869: Other columns are not visible when testSuite name is large (#20121)

This commit is contained in:
Shailesh Parmar 2025-03-07 12:37:04 +05:30 committed by GitHub
parent 40a9c67875
commit c65a504ffd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import { Button, Col, Form, Row, Select, Space } from 'antd'; import { Button, Col, Form, Row, Select, Space, Typography } from 'antd';
import { ColumnsType } from 'antd/lib/table'; import { ColumnsType } from 'antd/lib/table';
import { AxiosError } from 'axios'; import { AxiosError } from 'axios';
import { isEmpty } from 'lodash'; import { isEmpty } from 'lodash';
@ -115,6 +115,7 @@ export const TestSuites = () => {
title: t('label.name'), title: t('label.name'),
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name',
width: 600,
sorter: (a, b) => { sorter: (a, b) => {
if (a.basic) { if (a.basic) {
// Sort for basic test suites // Sort for basic test suites
@ -133,28 +134,34 @@ export const TestSuites = () => {
}, },
sortDirections: ['ascend', 'descend'], sortDirections: ['ascend', 'descend'],
render: (name, record) => { render: (name, record) => {
return record.basic ? ( return (
<Link <Typography.Paragraph className="m-0" style={{ maxWidth: 580 }}>
data-testid={name} {record.basic ? (
to={{ <Link
pathname: getEntityDetailsPath( data-testid={name}
EntityType.TABLE, to={{
record.basicEntityReference?.fullyQualifiedName ?? '', pathname: getEntityDetailsPath(
EntityTabs.PROFILER EntityType.TABLE,
), record.basicEntityReference?.fullyQualifiedName ?? '',
search: QueryString.stringify({ EntityTabs.PROFILER
activeTab: TableProfilerTab.DATA_QUALITY, ),
}), search: QueryString.stringify({
}}> activeTab: TableProfilerTab.DATA_QUALITY,
{record.basicEntityReference?.fullyQualifiedName ?? }),
record.basicEntityReference?.name} }}>
</Link> {record.basicEntityReference?.fullyQualifiedName ??
) : ( record.basicEntityReference?.name}
<Link </Link>
data-testid={name} ) : (
to={getTestSuitePath(record.fullyQualifiedName ?? record.name)}> <Link
{getEntityName(record)} data-testid={name}
</Link> to={getTestSuitePath(
record.fullyQualifiedName ?? record.name
)}>
{getEntityName(record)}
</Link>
)}
</Typography.Paragraph>
); );
}, },
}, },