Date : 02/02/2026 21:00
Status : TERMINE
Commits : e26aa27 (connectors-api), a0ce369 (connectors-front)
Le selecteur d'endpoints dans les pages creation/edition d'actions API ne fonctionnait pas :
api.getInstances() → GET /api/user/instancesconnector_type_idinst.connector_type_id → undefinedapi.getEndpoints(undefined) → GET /api/connectors/undefined/endpoints → echecconnectors-api/src/index.ts)Ajout de connector_type_id dans le mapping de GET /api/user/instances :
return {
id: inst.id,
name: inst.name,
+ connector_type_id: inst.connector_type_id,
connector_type: inst.connector_type,
new/index.tsx + edit/index.tsx)Ajout d'un fallback connector_type (nom du connecteur) quand connector_type_id est absent. L'API getEndpoints() accepte un nom OU un UUID.
- apiConnectorTypeId.value = inst.connector_type_id || '';
- if (inst.connector_type_id) {
+ const connectorId = inst.connector_type_id || inst.connector_type;
+ apiConnectorTypeId.value = connectorId || '';
+ if (connectorId) {
Applique dans 3 endroits :
new/index.tsx : watcher apiInstanceId (lignes ~112-120)edit/index.tsx : chargement initial (lignes ~130-134)edit/index.tsx : watcher apiInstanceId (lignes ~178-183)| Fichier | Modification |
|---|---|
connectors-api/src/index.ts |
+1 ligne : connector_type_id dans mapping instances |
connectors-front/src/routes/actions/new/index.tsx |
Fallback connector_type pour getEndpoints |
connectors-front/src/routes/actions/[id]/edit/index.tsx |
Idem, 2 endroits |
Le code des pages new/edit contenait deja toutes les features prevues dans le plan :
| Feature | Status | Details |
|---|---|---|
| SSH shell type badges | OK | Fetch getInstance(), affiche badges os_type + shell_type |
| SSH type selector (command/script) | OK | Radio buttons command unique / script multi-lignes |
| API instance selector | OK | Select filtre non-SSH, auto-charge endpoints |
| API endpoint picker | OK | Select groupé par entity, methode + path + summary |
| API path params dynamiques | OK | Inputs pre-remplis avec {{placeholder}} |
| API query params | OK | Required + optionnels collapsibles, enum → select |
| API body template | OK | Auto-genere depuis requestBody.schema |
| API input_schema auto | OK | Genere depuis params required |
| Transform code editor | OK | Textarea mono, timeout configurable |
| Transform test inline | OK | Input JSON + bouton tester |
| Transform ctx reference | OK | Panel collapsible : executeAction, fetch, instances/actions/routines |
| Transform expressions routines | OK | Panel collapsible : syntaxe {{trigger.params...}} etc. |