diff --git a/frontend/src/components/panels/TaskPanel.tsx b/frontend/src/components/panels/TaskPanel.tsx index e0370f88..7da9bb4e 100644 --- a/frontend/src/components/panels/TaskPanel.tsx +++ b/frontend/src/components/panels/TaskPanel.tsx @@ -74,90 +74,92 @@ const TaskPanel = ({ task }: TaskPanelProps) => { return ( <> -
-
+
+
{descriptionContent && ( )}
- {isAttemptsLoading && ( -
- {t('taskPanel.loadingAttempts')} -
- )} - {isAttemptsError && ( -
- {t('taskPanel.errorLoadingAttempts')} -
- )} - {!isAttemptsLoading && !isAttemptsError && ( - - - - - - - - {displayedAttempts.length === 0 ? ( +
+ {isAttemptsLoading && ( +
+ {t('taskPanel.loadingAttempts')} +
+ )} + {isAttemptsError && ( +
+ {t('taskPanel.errorLoadingAttempts')} +
+ )} + {!isAttemptsLoading && !isAttemptsError && ( +
-
- - {t('taskPanel.attemptsCount', { - count: displayedAttempts.length, - })} - - - - -
-
+ - + - ) : ( - displayedAttempts.map((attempt) => ( - { - if (projectId && task.id && attempt.id) { - navigate( - paths.attempt(projectId, task.id, attempt.id) - ); - } - }} - > - - - + + {displayedAttempts.length === 0 ? ( + + - )) - )} - -
- {t('taskPanel.noAttempts')} - +
+ + {t('taskPanel.attemptsCount', { + count: displayedAttempts.length, + })} + + + + +
+
- {attempt.executor || 'Base Agent'} - {attempt.branch || '—'} - {formatTimeAgo(attempt.created_at)} +
+ {t('taskPanel.noAttempts')}
- )} + ) : ( + displayedAttempts.map((attempt) => ( + { + if (projectId && task.id && attempt.id) { + navigate( + paths.attempt(projectId, task.id, attempt.id) + ); + } + }} + > + + {attempt.executor || 'Base Agent'} + + {attempt.branch || '—'} + + {formatTimeAgo(attempt.created_at)} + + + )) + )} + + + )} +