Let each tenant create named API keys with content and visibility scope.
Deploy Development / deploy (push) Failing after 32s
Test Suite / pytest-backend (push) Failing after 26s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Failing after 6s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Canceled after 1m34s

Superadmins enable a club for the interface. Club admins and members create the keys. Exercise release lives on its own tab and picks one of those keys.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-23 14:07:31 +01:00
1 parent fe3633ba8b
commit 1527a430b9
14 files changed
+842 -290

No files matched your search

@@ -28,7 +28,7 @@ import {
} from '../../utils/activeClub'
import { COMBINATION_ARCHETYPE_OPTIONS, ARCHETYPE_DEFAULT_REP_SERIES_COUNT, defaultRepSeriesCountForArchetype } from '../../constants/combinationArchetypes'
import { readSlotProfilesV1, normalizeAdvanceMode, parseComboRepSeriesCountUi } from '../../utils/combinationMethodProfileUi'
import { GripVertical, FileText, BookOpen, Tags, Layers, GitBranch, Image as ImageIcon } from 'lucide-react'
import { GripVertical, FileText, BookOpen, Tags, Layers, GitBranch, Image as ImageIcon, Share2 } from 'lucide-react'
import UnsavedChangesPrompt from '../UnsavedChangesPrompt'
import PageFormEditorChrome from '../PageFormEditorChrome'
import { ExerciseFormTabBar, ExerciseFormPanel } from './ExerciseFormLayout'
@@ -668,9 +668,11 @@ function ExerciseFormPageRoot() {
})
}
tabs.push({ id: 'medien', label: 'Medien & Mehr', icon: ImageIcon })
tabs.push({ id: 'freigabe', label: 'Freigabe', icon: Share2 })
} else {
tabs.push({ id: 'varianten', label: 'Varianten', icon: GitBranch, disabled: true })
tabs.push({ id: 'medien', label: 'Medien & Mehr', icon: ImageIcon, disabled: true })
tabs.push({ id: 'freigabe', label: 'Freigabe', icon: Share2, disabled: true })
}
return tabs
}, [formData.exercise_kind, isEdit, variants.length])
@@ -1612,8 +1614,6 @@ function ExerciseFormPageRoot() {
</p>
) : null}
{isEdit && exerciseId ? <ExerciseDistributionPanel exerciseId={exerciseId} /> : null}
<div className="card exercise-form-edit">
<form id="exercise-form" onSubmit={handleSubmit}>
<ExerciseFormTabBar
@@ -2905,6 +2905,14 @@ function ExerciseFormPageRoot() {
/>
)}
</ExerciseFormPanel>
<ExerciseFormPanel
tab="freigabe"
activeTab={activeFormTab}
title="Freigabe"
hint="Eingefrorene Fassung für einen Empfänger. Die Übung selbst bleibt davon unberührt."
>
<ExerciseDistributionPanel exerciseId={exerciseId} />
</ExerciseFormPanel>
) : null}
</form>