No description
Find a file
amertensreplit 543fd96afd Verbindungscheck beim Provider-Einrichten (Task #10)
Add an inline "Verbindung testen" button to the Neuer/Bearbeiten provider
dialogs so users can test a connection with the currently entered values
before saving.

Backend:
- New endpoint POST /providers/test-connection that accepts an ad-hoc provider
  config (apiType, baseUrl, model, optional apiToken, optional providerId) in
  the request body and runs a one-shot test via the existing callProvider
  logic. When apiToken is empty and providerId is given, it falls back to the
  stored token of that provider (edit case). Returns { ok, message }; the token
  is never returned or leaked (existing redactSecrets still applies to errors).
- Defined ProviderTestConnectionInput schema + path in openapi.yaml and ran
  codegen for Zod schemas and the React client.

Frontend (artifacts/skillguard/src/pages/admin.tsx):
- Add dialog: "Verbindung testen" button (disabled until Base URL + Token set
  or while testing) with loading spinner and an inline green success / red
  error result box. Result resets when the dialog closes.
- Edit dialog: same inline test; empty token field falls back to the stored
  token via providerId. Result resets on open/close.
- The existing per-card "Verbindung testen" button is unchanged.

Verification: typecheck passes for api-server and skillguard; curl tested the
new endpoint for success-path (fetch error surfaced), empty-token, and invalid
body (400) cases. Token not present in any response.

Deviations: none.
Replit-Task-Id: 4f77293f-468c-496a-ab05-1f10e7bf8137
2026-06-10 18:54:56 +00:00
.agents/memory Add live progress updates and detailed scan checkpoints to scan results 2026-06-10 18:53:17 +00:00
artifacts Verbindungscheck beim Provider-Einrichten (Task #10) 2026-06-10 18:54:56 +00:00
lib Verbindungscheck beim Provider-Einrichten (Task #10) 2026-06-10 18:54:56 +00:00
scripts Initial commit 2026-05-28 23:37:31 +00:00
.gitignore Initial commit 2026-05-28 23:37:31 +00:00
.npmrc Initial commit 2026-05-28 23:37:31 +00:00
.replit SkillGuard: complete frontend wiring and harden backend 2026-06-08 14:59:17 +00:00
.replitignore Initial commit 2026-05-28 23:37:31 +00:00
package.json Initial commit 2026-05-28 23:37:31 +00:00
pnpm-lock.yaml SkillGuard: complete frontend wiring and harden backend 2026-06-08 14:59:17 +00:00
pnpm-workspace.yaml Initial commit 2026-05-28 23:37:31 +00:00
replit.md SkillGuard: complete frontend wiring and harden backend 2026-06-08 14:59:17 +00:00
tsconfig.base.json Initial commit 2026-05-28 23:37:31 +00:00
tsconfig.json Initial commit 2026-05-28 23:37:31 +00:00