refactor: update navigation components and styles for improved consistency
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 6s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 28s

- Replaced legacy .capture-shell with .app-subnav-shell and integrated PageSectionNav for a unified navigation experience across multiple pages.
- Refactored AdminCatalogsPage, AdminMaturityModelsPage, ClubsPage, ExercisesListPage, MediaWikiImportPage, SkillsPage, and TrainingFrameworkProgramEditPage to utilize the new PageSectionNav component for tab navigation.
- Enhanced CSS styles for better responsiveness and visual clarity in navigation elements.
- Improved accessibility features with appropriate ARIA roles and attributes for better usability.
This commit is contained in:
Lars committed 2026-05-06 12:49:35 +02:00
1 parent 1e1fd80fb7
commit db8af53652
11 files changed
+243 -451

No files matched your search

+14 -38
View File
@@ -1,9 +1,8 @@
import PageSectionNav from './PageSectionNav'
/**
* Sub-Navigation (einheitlich mit Admin-Sektionsschaltern):
* — Mobil & Desktop: eine horizontale Chip-/Registerzeile oben (scroll auf schmalen Viewports).
* — Eine darunter liegende „Sub-Sub“-Ebene (z. B. Rahmen bearbeiten) bleibt bewusst
* seitlich / in eigenen Layout-Komponenten (z. B. Trainingseinheit, Framework-Editor).
* Nutzt .capture-shell* aus app.css.
* Sub-Navigation mit Icon-Chips: gleiche Darstellung wie Stammdaten / Vereine (PageSectionNav).
* „Sub-Sub“ (z. B. Editor) bleibt in den jeweiligen Feature-Layouts.
*/
export default function AppSubnavShell({
ariaLabel,
@@ -14,39 +13,16 @@ export default function AppSubnavShell({
iconSize = 18,
}) {
return (
<div className="capture-shell app-subnav-shell">
<div className="capture-shell__layout">
<div className="capture-shell__nav-wrap">
<nav className="capture-shell__nav" aria-label={ariaLabel}>
{items.map((item) => {
const Icon = item.icon
const active = value === item.id
return (
<button
key={item.id}
type="button"
className={
'capture-shell__nav-item' +
(active ? ' capture-shell__nav-item--active' : '')
}
onClick={() => onChange(item.id)}
>
{Icon ? (
<Icon
className="capture-shell__nav-icon"
size={iconSize}
strokeWidth={2}
aria-hidden
/>
) : null}
<span className="capture-shell__nav-label">{item.label}</span>
</button>
)
})}
</nav>
</div>
<div className="capture-shell__main">{children}</div>
</div>
<div className="app-subnav-shell">
<PageSectionNav
ariaLabel={ariaLabel}
value={value}
onChange={onChange}
items={items}
iconSize={iconSize}
className="page-section-nav--wrap"
/>
<div className="app-subnav-shell__main">{children}</div>
</div>
)
}