@@ -18,6 +18,7 @@ import ReactTimeAgo from 'react-time-ago';
1818import { AnimatedHoverTextButton } from '../Helper/AnimatedHoverTextButton.tsx' ;
1919import { useTranslation } from 'react-i18next' ;
2020import { useLink } from '../../lib/shared/useLink.ts' ;
21+ import TooltipCell from '../Shared/TooltipCell.tsx' ;
2122export default function MCPHealthPopoverButton ( {
2223 mcpStatus,
2324 projectName,
@@ -104,21 +105,45 @@ export default function MCPHealthPopoverButton({
104105 {
105106 Header : t ( 'MCPHealthPopoverButton.typeHeader' ) ,
106107 accessor : 'type' ,
108+ width : 150 ,
109+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
110+ Cell : ( instance : any ) => {
111+ return < TooltipCell > { instance . cell . value } </ TooltipCell > ;
112+ } ,
107113 } ,
108114 {
109115 Header : t ( 'MCPHealthPopoverButton.messageHeader' ) ,
110116 accessor : 'message' ,
117+ width : 350 ,
118+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
119+ Cell : ( instance : any ) => {
120+ return < TooltipCell > { instance . cell . value } </ TooltipCell > ;
121+ } ,
111122 } ,
112123 {
113124 Header : t ( 'MCPHealthPopoverButton.reasonHeader' ) ,
114125 accessor : 'reason' ,
126+ width : 100 ,
127+ headerTooltip : 'sgs' ,
128+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
129+ Cell : ( instance : any ) => {
130+ return < TooltipCell > { instance . cell . value } </ TooltipCell > ;
131+ } ,
115132 } ,
116133 {
117134 Header : t ( 'MCPHealthPopoverButton.transitionHeader' ) ,
118135 accessor : 'lastTransitionTime' ,
136+ width : 110 ,
119137 // eslint-disable-next-line @typescript-eslint/no-explicit-any
120138 Cell : ( instance : any ) => {
121- return < ReactTimeAgo date = { new Date ( instance . cell . value ) } /> ;
139+ const rawDate = instance . cell . value ;
140+ const date = new Date ( rawDate ) ;
141+
142+ return (
143+ < TooltipCell >
144+ < ReactTimeAgo date = { date } />
145+ </ TooltipCell >
146+ ) ;
122147 } ,
123148 } ,
124149 ] ;
@@ -155,9 +180,9 @@ function StatusTable({
155180 const { t } = useTranslation ( ) ;
156181
157182 return (
158- < div style = { { width : 600 } } >
183+ < div style = { { width : 760 } } >
159184 < AnalyticalTable
160- scaleWidthMode = "Smart "
185+ scaleWidthMode = "Default "
161186 columns = { tableColumns }
162187 data = {
163188 status ?. conditions ?. sort ( ( a , b ) => {
0 commit comments