feat: enhance admin catalog UI and functionality
Deploy Development / deploy (push) Successful in 36s
Test Suite / pytest-backend (push) Successful in 7s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 27s
Deploy Development / deploy (push) Successful in 36s
Test Suite / pytest-backend (push) Successful in 7s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 27s
- Added new CSS styles for admin catalog sections, improving layout and responsiveness. - Implemented icon support for catalog section titles, enhancing visual clarity. - Refactored loading and error states for better user experience in the CatalogsTab and HierarchyTab components. - Updated AdminCatalogsPage to utilize new styles and improve tab navigation. - Enhanced accessibility with appropriate ARIA roles and attributes for better usability.
This commit is contained in:
1 parent
8b86021293
commit
657f73d2c5
4 files changed
+303
-88
No files matched your search
@@ -316,10 +316,9 @@ export default function AdminCatalogsPage() {
|
||||
<div className="app-page">
|
||||
<AdminPageNav />
|
||||
|
||||
<h1 style={{ marginBottom: '24px' }}>Stammdaten-Kataloge</h1>
|
||||
<h1 className="page-title">Stammdaten-Kataloge</h1>
|
||||
|
||||
{/* Tabs */}
|
||||
<div style={{ display: 'flex', gap: '8px', borderBottom: '2px solid var(--border)', marginBottom: '24px', overflowX: 'auto' }}>
|
||||
<div className="admin-page-subtabs" role="tablist" aria-label="Katalogbereiche">
|
||||
{[
|
||||
{ id: 'focus-areas', label: 'Fokusbereiche' },
|
||||
{ id: 'training-styles', label: 'Stilrichtungen' },
|
||||
@@ -330,30 +329,24 @@ export default function AdminCatalogsPage() {
|
||||
{ id: 'training-characters', label: 'Trainingscharakter' },
|
||||
{ id: 'skill-categories', label: 'Fähigkeitskategorien' },
|
||||
{ id: 'trainer-assignments', label: 'Trainer-Zuordnungen' }
|
||||
].map(tab => (
|
||||
].map((tab) => (
|
||||
<button
|
||||
key={tab.id}
|
||||
type="button"
|
||||
role="tab"
|
||||
aria-selected={activeTab === tab.id}
|
||||
onClick={() => setActiveTab(tab.id)}
|
||||
className="btn"
|
||||
style={{
|
||||
borderBottom: activeTab === tab.id ? '3px solid var(--accent)' : 'none',
|
||||
borderRadius: 0,
|
||||
fontWeight: activeTab === tab.id ? 600 : 400,
|
||||
color: activeTab === tab.id ? 'var(--accent)' : 'var(--text2)',
|
||||
padding: '12px 16px',
|
||||
whiteSpace: 'nowrap'
|
||||
}}
|
||||
className={
|
||||
'admin-page-subtabs__btn' +
|
||||
(activeTab === tab.id ? ' admin-page-subtabs__btn--active' : '')
|
||||
}
|
||||
>
|
||||
{tab.label}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{error && (
|
||||
<div style={{ padding: '12px', background: 'var(--danger)', color: 'white', borderRadius: '8px', marginBottom: '16px' }}>
|
||||
{error}
|
||||
</div>
|
||||
)}
|
||||
{error && <div className="admin-matrix-alert">{error}</div>}
|
||||
|
||||
{loading ? (
|
||||
<div className="spinner" />
|
||||
|
||||
Reference in new issue
Block a user