Show which exercises differ from their last published release.
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Failing after 30s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 17s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Failing after 7m42s
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Failing after 30s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 17s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Failing after 7m42s
The release tab names the changed areas, and an admin list collects those exercises so a new release stays a deliberate publication. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
4b33b17b2d
commit
4ad62b6e38
14 files changed
+305
-6
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { NavLink } from 'react-router-dom'
|
||||
import { TreePine, FolderTree, Download, Grid3x3, Users, Scale, Sparkles, Bot, Wand2, Activity, Building2, Shield, Share2 } from 'lucide-react'
|
||||
import { TreePine, FolderTree, Download, Grid3x3, Users, Scale, Sparkles, Bot, Wand2, Activity, Building2, Shield, Share2, FileDiff } from 'lucide-react'
|
||||
|
||||
/**
|
||||
* Admin-Seiten-Navigation (horizontal) — nur für Super-Admins (globaler Portal-Mandant).
|
||||
@@ -19,6 +19,7 @@ export default function AdminPageNav() {
|
||||
{ to: '/admin/openrouter', label: 'KI-Modell', icon: Bot },
|
||||
{ to: '/admin/exercise-enrichment', label: 'Übungs-Anreicherung', icon: Wand2 },
|
||||
{ to: '/admin/distribution', label: 'API-Schnittstelle', icon: Share2 },
|
||||
{ to: '/admin/release-updates', label: 'Release-Abgleich', icon: FileDiff },
|
||||
]
|
||||
|
||||
return (
|
||||
|
||||
@@ -128,6 +128,15 @@ export default function ExerciseDistributionPanel({ exerciseId }) {
|
||||
<p>Die Distribution ist auf dieser Instanz nicht aktiv. Bearbeitung und Planung bleiben davon unberührt.</p>
|
||||
) : (
|
||||
<>
|
||||
{overview.drift?.differs ? (
|
||||
<p>
|
||||
Die Arbeitsfassung weicht vom Release Revision {overview.drift.revision} ab
|
||||
{overview.drift.areas?.length ? `: ${overview.drift.areas.join(', ')}` : ''}. Ein neues Release
|
||||
veröffentlicht diesen Stand. Das bisherige Release bleibt unter seiner ID abrufbar.
|
||||
</p>
|
||||
) : overview.releases?.length ? (
|
||||
<p>Die Arbeitsfassung entspricht dem letzten Release.</p>
|
||||
) : null}
|
||||
{overview.release_block ? <p>{overview.release_block}</p> : null}
|
||||
<label className="form-label">
|
||||
API-Schlüssel
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState, useRef, useMemo, useCallback } from 'react'
|
||||
import { useNavigate, useParams, Link, useLocation } from 'react-router-dom'
|
||||
import { useNavigate, useParams, Link, useLocation, useSearchParams } from 'react-router-dom'
|
||||
import api, { buildExerciseApiPayload } from '../../utils/api'
|
||||
import { resolveExerciseMediaFileUrl, resolveMediaAssetFileUrl, useMediaAccessToken } from '../../utils/exerciseMediaUrl'
|
||||
import RichTextEditor from '../RichTextEditor'
|
||||
@@ -647,7 +647,13 @@ function ExerciseFormPageRoot() {
|
||||
const [aiSuggestBusy, setAiSuggestBusy] = useState(false)
|
||||
const [aiSuggestionPreview, setAiSuggestionPreview] = useState(null)
|
||||
const [variantEditSelection, setVariantEditSelection] = useState(null)
|
||||
const [activeFormTab, setActiveFormTab] = useState('stammdaten')
|
||||
const [searchParams] = useSearchParams()
|
||||
const requestedTab = searchParams.get('tab')
|
||||
const [activeFormTab, setActiveFormTab] = useState(
|
||||
['stammdaten', 'anleitung', 'einordnung', 'kombination', 'varianten', 'medien', 'freigabe'].includes(requestedTab)
|
||||
? requestedTab
|
||||
: 'stammdaten',
|
||||
)
|
||||
const variantsSavedSnapshotRef = useRef({})
|
||||
|
||||
const exerciseFormTabs = useMemo(() => {
|
||||
|
||||
Reference in new issue
Block a user