Add Club Creation Request Management Features
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Failing after 1m14s
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Failing after 1m14s
- Introduced endpoints for managing club creation requests, including fetching, creating, and withdrawing requests. - Updated the onboarding page to allow users to submit new club creation requests and view their existing requests. - Enhanced the admin interface with navigation and routing for club creation requests management. - Incremented version to 0.8.191 to reflect these new features and updates in the application.
This commit is contained in:
1 parent
8718cf5c70
commit
8ee8f52e0f
11 files changed
+836
-9
No files matched your search
@@ -232,6 +232,35 @@ export async function withdrawClubJoinRequest(requestId) {
|
||||
return request(`/api/me/club-join-requests/${requestId}`, { method: 'DELETE' })
|
||||
}
|
||||
|
||||
/** Eigene Anträge auf Vereinsgründung. */
|
||||
export async function getMyClubCreationRequests() {
|
||||
return request('/api/me/club-creation-requests')
|
||||
}
|
||||
|
||||
export async function createClubCreationRequest(payload) {
|
||||
return request('/api/me/club-creation-requests', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(payload),
|
||||
})
|
||||
}
|
||||
|
||||
export async function withdrawClubCreationRequest(requestId) {
|
||||
return request(`/api/me/club-creation-requests/${requestId}`, { method: 'DELETE' })
|
||||
}
|
||||
|
||||
/** Offene Gründungsanträge — Plattform-Admin. */
|
||||
export async function listAdminClubCreationRequests() {
|
||||
return request('/api/admin/club-creation-requests')
|
||||
}
|
||||
|
||||
export async function approveClubCreationRequest(requestId) {
|
||||
return request(`/api/admin/club-creation-requests/${requestId}/approve`, { method: 'POST' })
|
||||
}
|
||||
|
||||
export async function rejectClubCreationRequest(requestId) {
|
||||
return request(`/api/admin/club-creation-requests/${requestId}/reject`, { method: 'POST' })
|
||||
}
|
||||
|
||||
/** Offene Anträge (Vereins-/Plattform-Admin). */
|
||||
export async function listClubJoinRequests(clubId) {
|
||||
return request(`/api/clubs/${clubId}/join-requests`)
|
||||
@@ -889,6 +918,12 @@ export const api = {
|
||||
getMyClubJoinRequests,
|
||||
createClubJoinRequest,
|
||||
withdrawClubJoinRequest,
|
||||
getMyClubCreationRequests,
|
||||
createClubCreationRequest,
|
||||
withdrawClubCreationRequest,
|
||||
listAdminClubCreationRequests,
|
||||
approveClubCreationRequest,
|
||||
rejectClubCreationRequest,
|
||||
listClubJoinRequests,
|
||||
acceptClubJoinRequest,
|
||||
rejectClubJoinRequest,
|
||||
|
||||
Reference in new issue
Block a user