@@ -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,44 @@ 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+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
128+ Cell : ( instance : any ) => {
129+ return < TooltipCell > { instance . cell . value } </ TooltipCell > ;
130+ } ,
115131 } ,
116132 {
117133 Header : t ( 'MCPHealthPopoverButton.transitionHeader' ) ,
118134 accessor : 'lastTransitionTime' ,
135+ width : 110 ,
119136 // eslint-disable-next-line @typescript-eslint/no-explicit-any
120137 Cell : ( instance : any ) => {
121- return < ReactTimeAgo date = { new Date ( instance . cell . value ) } /> ;
138+ const rawDate = instance . cell . value ;
139+ const date = new Date ( rawDate ) ;
140+
141+ return (
142+ < TooltipCell >
143+ < ReactTimeAgo date = { date } />
144+ </ TooltipCell >
145+ ) ;
122146 } ,
123147 } ,
124148 ] ;
@@ -155,9 +179,9 @@ function StatusTable({
155179 const { t } = useTranslation ( ) ;
156180
157181 return (
158- < div style = { { width : 600 } } >
182+ < div style = { { width : 770 } } >
159183 < AnalyticalTable
160- scaleWidthMode = "Smart "
184+ scaleWidthMode = "Default "
161185 columns = { tableColumns }
162186 data = {
163187 status ?. conditions ?. sort ( ( a , b ) => {
0 commit comments