Refactor full-page editor navigation and update return context handling
Deploy Development / deploy (push) Failing after 23s
Test Suite / pytest-backend (push) Successful in 34s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Failing after 7s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m19s

- Adjusted `PageFormEditorChrome` to set `showReturn` to false by default, making the back button optional.
- Removed `PageReturnButton` from `TrainingFrameworkProgramEditPage`, `TrainingModuleEditPage`, and `TrainingPlanTemplateEditPage` to streamline navigation.
- Updated documentation to reflect changes in editor actions and return context behavior for improved clarity.
This commit is contained in:
Lars committed 2026-05-20 07:56:22 +02:00
1 parent 4588ef4c7e
commit 8afdd811db
5 files changed
+9 -24

No files matched your search

@@ -3,14 +3,12 @@ import { useNavigate, useParams } from 'react-router-dom'
import api from '../utils/api'
import TrainingUnitSectionsEditor from '../components/TrainingUnitSectionsEditor'
import FormActionBar from '../components/FormActionBar'
import PageReturnButton from '../components/PageReturnButton'
import UnsavedChangesPrompt from '../components/UnsavedChangesPrompt'
import { useBeforeUnloadWhen, useUnsavedChangesBlocker } from '../hooks/useUnsavedChangesBlocker'
import { useAuth } from '../context/AuthContext'
import { useToast } from '../context/ToastContext'
import { useNavReturn } from '../hooks/useNavReturn'
import {
PLAN_TEMPLATES_LIST_PATH,
buildPlanTemplatesListReturnContext,
} from '../utils/navReturnContext'
import {
@@ -228,11 +226,6 @@ export default function TrainingPlanTemplateEditPage() {
return (
<div className="app-page">
<PageReturnButton
fallbackPath={PLAN_TEMPLATES_LIST_PATH}
fallbackLabel="Zurück zu Vorlagen"
/>
<h1 className="page-title" style={{ marginBottom: '0.35rem' }}>
Trainingsvorlage bearbeiten
</h1>