Commit 36821600 by heheer Committed by GitHub

limit custom param name width in http tools (#6125)

* limit custom param name width in http tools

* scroll

* cron log

---------

Co-authored-by: archer <545436317@qq.com>
parent 5631ec78
...@@ -11,8 +11,12 @@ export enum TrackEnum { ...@@ -11,8 +11,12 @@ export enum TrackEnum {
clickOperationalAd = 'clickOperationalAd', clickOperationalAd = 'clickOperationalAd',
closeOperationalAd = 'closeOperationalAd', closeOperationalAd = 'closeOperationalAd',
teamChatQPM = 'teamChatQPM', teamChatQPM = 'teamChatQPM',
// Admin cron job tracks
subscriptionDeleted = 'subscriptionDeleted', subscriptionDeleted = 'subscriptionDeleted',
freeAccountCleanup = 'freeAccountCleanup', freeAccountCleanup = 'freeAccountCleanup',
auditLogCleanup = 'auditLogCleanup',
chatHistoryCleanup = 'chatHistoryCleanup',
// web tracks // web tracks
clientError = 'clientError' clientError = 'clientError'
......
...@@ -158,6 +158,8 @@ export const pushTrack = { ...@@ -158,6 +158,8 @@ export const pushTrack = {
} }
}); });
}, },
// Admin cron job tracks
subscriptionDeleted: (data: { subscriptionDeleted: (data: {
teamId: string; teamId: string;
subscriptionType: string; subscriptionType: string;
...@@ -185,5 +187,23 @@ export const pushTrack = { ...@@ -185,5 +187,23 @@ export const pushTrack = {
expiredTime: data.expiredTime expiredTime: data.expiredTime
} }
}); });
},
auditLogCleanup: (data: { teamId: string; retentionDays: number }) => {
return createTrack({
event: TrackEnum.auditLogCleanup,
data: {
teamId: data.teamId,
retentionDays: data.retentionDays
}
});
},
chatHistoryCleanup: (data: { teamId: string; retentionDays: number }) => {
return createTrack({
event: TrackEnum.chatHistoryCleanup,
data: {
teamId: data.teamId,
retentionDays: data.retentionDays
}
});
} }
}; };
...@@ -649,7 +649,7 @@ const CustomParamsTable = ({ ...@@ -649,7 +649,7 @@ const CustomParamsTable = ({
borderBottom={'none'} borderBottom={'none'}
bg={'white'} bg={'white'}
> >
<TableContainer overflowY={'visible'} overflowX={'unset'}> <TableContainer overflowY={'visible'} overflowX={'auto'}>
<Table size={'sm'}> <Table size={'sm'}>
<Thead> <Thead>
<Tr bg={'myGray.50'} h={8}> <Tr bg={'myGray.50'} h={8}>
...@@ -663,8 +663,10 @@ const CustomParamsTable = ({ ...@@ -663,8 +663,10 @@ const CustomParamsTable = ({
<Tbody> <Tbody>
{list.map((item, index) => ( {list.map((item, index) => (
<Tr key={index} h={8}> <Tr key={index} h={8}>
<Td px={2}>{item.key}</Td> <Td px={2} maxW={'250px'} textOverflow={'ellipsis'} overflow={'hidden'}>
<Td px={2} maxW={40} textOverflow={'ellipsis'} overflow={'hidden'}> {item.key}
</Td>
<Td px={2} maxW={20} textOverflow={'ellipsis'} overflow={'hidden'}>
{item.description} {item.description}
</Td> </Td>
<Td px={2}>{item.type}</Td> <Td px={2}>{item.type}</Td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment