Skip to content

fix: astro check errors in TeamAgentRunsTable - #9

Merged
bobdivx merged 1 commit into
mainfrom
cursor/fix-team-agent-runs-table-4dc8
Aug 26, 2026
Merged

bobdivx merged 1 commit into
mainfrom
cursor/fix-team-agent-runs-table-4dc8

Conversation

@bobdivx

@bobdivx bobdivx commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Description

Corrige les erreurs TypeScript dans TeamAgentRunsTable.tsx qui empêchaient les builds Docker de astro check de passer.

Changements

  1. Import corrigé : agentDetailPath importé depuis agent-routes au lieu de routes (où il n'existe pas)
  2. Fonction inutilisée supprimée : formatDuration déclarée mais jamais utilisée
  3. Accès sécurisé aux metadata : Les champs application_name et deployment_uuid ne font pas partie du type AgentRunMetadata mais peuvent exister dans le record flexible. Ajout de type guards pour un accès sûr.

Erreurs corrigées

  • ❌ Module '"../../lib/routes"' has no exported member 'agentDetailPath'
  • ❌ Property 'application_name' does not exist on type 'AgentRunMetadata'
  • ❌ Property 'deployment_uuid' does not exist on type 'AgentRunMetadata'
  • ⚠️ 'formatDuration' is declared but never used

Validation

✅ astro check --minimumSeverity warning passe sans erreur

Le comportement du tableau des exécutions d'agents de l'équipe est préservé.

Open in Web Open in Cursor 

- Import agentDetailPath from agent-routes instead of routes
- Remove unused formatDuration function
- Access metadata fields safely with type guards for application_name and deployment_uuid

Fixes TypeScript errors preventing Docker image builds.

Co-authored-by: Mathieu JESER <bobdivx@users.noreply.github.com>
@bobdivx
bobdivx merged commit ee7f33c into main Aug 26, 2026
1 check passed
@bobdivx
bobdivx deleted the cursor/fix-team-agent-runs-table-4dc8 branch August 26, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants