feat(org-inbox): implement join request inbox for platform and club admins
Deploy Development / deploy (push) Successful in 41s
Test Suite / pytest-backend (push) Successful in 30s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 7s
Test Suite / playwright-tests (push) Successful in 24s

- Added new API endpoint to retrieve join requests accessible by platform admins and club admins.
- Implemented frontend components to display join requests in the inbox, including navigation updates and badge notifications.
- Enhanced sidebar and navigation to conditionally show inbox based on user permissions.
- Updated styles for inbox components and added responsive design for dashboard integration.
- Introduced context management for inbox state and notifications on join request actions.
This commit is contained in:
Lars committed 2026-05-09 09:13:38 +02:00
1 parent 59fb8a5527
commit 58a38702b9
11 files changed
+631 -20

No files matched your search

+154
View File
@@ -198,6 +198,7 @@ body { font-family: var(--font); background: var(--bg); color: var(--text1); -we
min-width: 68px;
max-width: 108px;
min-height: 48px;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
@@ -6376,3 +6377,156 @@ a.analysis-split__nav-item {
.media-library__preview-fallback .btn {
margin-top: 12px;
}
/* Organisation: Posteingang (Nav-Badge, Sidebar, Dashboard-Widget) */
.nav-item__badge {
position: absolute;
top: 2px;
right: 6px;
min-width: 1.1rem;
padding: 1px 5px;
border-radius: 999px;
font-size: 10px;
font-weight: 700;
line-height: 1.2;
background: var(--accent);
color: #fff;
box-shadow: 0 0 0 1px var(--surface);
}
.desktop-sidebar__badge {
margin-left: auto;
flex-shrink: 0;
min-width: 1.25rem;
padding: 2px 6px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
line-height: 1.2;
background: var(--accent);
color: #fff;
}
.desktop-sidebar__link > span:not(.desktop-sidebar__badge) {
flex: 1;
min-width: 0;
}
.dashboard-org-inbox-widget {
display: none;
}
@media (min-width: 1024px) {
.dashboard-org-inbox-widget {
display: block;
margin-bottom: 1.25rem;
}
}
.dashboard-org-inbox-widget__inner {
padding: 1rem 1.1rem;
}
.dashboard-org-inbox-widget__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
margin-bottom: 0.35rem;
}
.dashboard-org-inbox-widget__title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1rem;
font-weight: 600;
margin: 0;
}
.dashboard-org-inbox-widget__icon {
color: var(--accent);
flex-shrink: 0;
}
.dashboard-org-inbox-widget__badge {
font-size: 0.8rem;
font-weight: 700;
min-width: 1.5rem;
text-align: center;
padding: 2px 8px;
border-radius: 999px;
background: var(--accent);
color: #fff;
}
.dashboard-org-inbox-widget__lead {
margin: 0 0 0.65rem;
font-size: 0.92rem;
}
.dashboard-org-inbox-widget__list {
list-style: none;
margin: 0 0 0.85rem;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.dashboard-org-inbox-widget__item {
display: flex;
flex-wrap: wrap;
gap: 0.35rem 0.75rem;
font-size: 0.9rem;
padding: 0.35rem 0;
border-bottom: 1px solid var(--border);
}
.dashboard-org-inbox-widget__item:last-child {
border-bottom: none;
}
.dashboard-org-inbox-widget__club {
font-weight: 600;
color: var(--text1);
}
.dashboard-org-inbox-widget__applicant {
color: var(--text2);
}
.dashboard-org-inbox-widget__footer {
margin-top: 0.25rem;
}
.inbox-page__header {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.inbox-page__list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.inbox-request-card {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: space-between;
align-items: flex-start;
}
.inbox-request-card__club {
font-size: 0.85rem;
font-weight: 600;
color: var(--accent);
margin-bottom: 0.2rem;
}
.inbox-request-card__applicant {
display: block;
font-size: 1.02rem;
}
.inbox-request-card__meta {
font-size: 0.86rem;
margin-top: 0.25rem;
}
.inbox-request-card__message {
margin: 0.5rem 0 0;
font-size: 0.92rem;
line-height: 1.45;
}
.inbox-request-card__actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
flex-shrink: 0;
}