Enhance frontend testing setup and refactor TrainingPlanningPageRoot component
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 37s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 19s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m21s

- Added Vitest as a testing framework and included test scripts in package.json for improved testing capabilities.
- Refactored TrainingPlanningPageRoot component by removing unused state variables and imports, streamlining the code for better readability and performance.
- Introduced new utility functions for planning routes to enhance navigation within the training planning interface.
This commit is contained in:
Lars committed 2026-05-19 11:02:03 +02:00
1 parent 295c7e7efc
commit 16eaf839e7
17 files changed
+1854 -786

No files matched your search

+1 -1
View File
@@ -134,7 +134,7 @@ function MediaUsageBlock({ usage, compact }) {
[t.planned_date, (t.group_name || '').trim()].filter(Boolean).join(' · ') || `Einheit #${t.id}`
const short = label.length > (compact ? 20 : 36) ? `${label.slice(0, compact ? 20 : 36)}…` : label
return (
<Link key={t.id} to={`/planning?unit=${t.id}`} title={label}>
<Link key={t.id} to={`/planning/units/${t.id}/edit`} title={label}>
{short}
</Link>
)