From 5f67c01cefb15791c4727976c0c01d19837f62ae Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 21 May 2026 15:08:35 +0200 Subject: [PATCH] Refactor Exercise Visibility Labels for Consistency Across Components - Replaced hardcoded visibility labels with the new constant EXERCISE_VISIBILITY_FIELD_LABEL in multiple components, ensuring consistent terminology throughout the application. - Updated UI text to reflect the change from "Sichtbarkeit" to "Freigabelevel" in various contexts, enhancing clarity for users. - Improved accessibility by standardizing the visibility-related labels in the ExercisePickerModal, ExerciseProgressionGraphPanel, and other related components. --- frontend/src/components/ExercisePickerModal.jsx | 9 +++++---- .../src/components/ExerciseProgressionGraphPanel.jsx | 5 +++-- .../src/components/exercises/ExerciseFormPageRoot.jsx | 10 +++++++--- .../src/components/exercises/ExerciseListBulkModal.jsx | 3 ++- frontend/src/components/exercises/ExerciseListCard.jsx | 3 ++- .../components/exercises/ExerciseListFilterModal.jsx | 9 +++++---- .../src/components/exercises/ExercisesListPageRoot.jsx | 2 +- .../exercises/SaveSelectedExercisesAsModuleModal.jsx | 5 +++-- frontend/src/constants/exerciseGovernanceLabels.js | 4 ++++ frontend/src/utils/exerciseListFilterChips.js | 3 ++- 10 files changed, 34 insertions(+), 19 deletions(-) create mode 100644 frontend/src/constants/exerciseGovernanceLabels.js diff --git a/frontend/src/components/ExercisePickerModal.jsx b/frontend/src/components/ExercisePickerModal.jsx index 0052eed..c869498 100644 --- a/frontend/src/components/ExercisePickerModal.jsx +++ b/frontend/src/components/ExercisePickerModal.jsx @@ -7,6 +7,7 @@ import { useVirtualizer } from '@tanstack/react-virtual' import api from '../utils/api' import { useAuth } from '../context/AuthContext' import { SKILL_LEVEL_OPTIONS } from '../constants/skillLevels' +import { EXERCISE_VISIBILITY_FIELD_LABEL } from '../constants/exerciseGovernanceLabels' import { INITIAL_EXERCISE_LIST_FILTERS, mergeExerciseListPrefsFromApi, @@ -373,7 +374,7 @@ export default function ExercisePickerModal({ {quickOpen ? (

- Wird mit Sichtbarkeit privat und Status Entwurf gespeichert und + Wird mit Freigabelevel privat und Status Entwurf gespeichert und erscheint auf dem Dashboard zum Weiterbearbeiten. Nach dem Speichern wird die Übung direkt in den Ablauf übernommen.

@@ -462,7 +463,7 @@ export default function ExercisePickerModal({

Felder gelten mit UND. Kataloge: mehrere „+“ = alle zutreffend; „−“ schließt aus. - Sichtbarkeit/Status: mehrere „+“ = eine davon (ODER); „−“ blendet aus. + Freigabelevel/Status: mehrere „+“ = eine davon (ODER); „−“ blendet aus.

setFilters((f) => ({ ...f, ...patch }))} />
- + setMetaVisibility(e.target.value)}> {filteredGraphVisOptions.map((o) => (