Update Capability Catalog and Club Membership Documentation
Deploy Development / deploy (push) Successful in 49s
Test Suite / pytest-backend (push) Failing after 0s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 15s
Test Suite / playwright-tests (push) Has been cancelled
Test Suite / k6 /health Baseline (push) Has been cancelled

- Revised the status in the Capability Catalog to reflect partial implementation (M3).
- Added a new reference to `MEMBERSHIP_RBAC_DECISIONS_2026-06.md` in both the Capability Catalog and Club Membership documentation.
- Enhanced the Club Membership documentation with details on product decisions and onboarding phases.
- Implemented middleware in the backend to restrict access for unverified users and those pending club membership.
- Updated versioning in `version.py` to reflect changes in account lifecycle management.
This commit is contained in:
Lars committed 2026-06-07 05:57:13 +02:00
1 parent 30dc30c7aa
commit a2f60d3f46
12 files changed
+765 -15

No files matched your search

+23 -6
View File
@@ -14,6 +14,7 @@ import { ToastProvider } from './context/ToastContext'
import { OrgInboxProvider, useOrgInbox } from './context/OrgInboxContext'
import DesktopSidebar from './components/DesktopSidebar'
import { getMainNavItems } from './config/appNav'
import { isOnboardingAllowedPath, isOnboardingRestricted } from './utils/accountState'
import AdminHomeRedirect from './components/AdminHomeRedirect'
import PlatformAdminRoute from './components/PlatformAdminRoute'
import ActiveClubSwitcher from './components/ActiveClubSwitcher'
@@ -21,6 +22,7 @@ import InactiveMembershipBanner from './components/InactiveMembershipBanner'
import './app.css'
const LoginPage = lazy(() => import('./pages/LoginPage'))
const OnboardingPage = lazy(() => import('./pages/OnboardingPage'))
const VerifyPage = lazy(() => import('./pages/VerifyPage'))
const Dashboard = lazy(() => import('./pages/Dashboard'))
const AccountSettingsPage = lazy(() => import('./pages/AccountSettingsPage'))
@@ -83,9 +85,12 @@ function AppRouteFallback() {
}
// Bottom Navigation (Mobile)
function Nav({ showAdminNav }) {
function Nav({ showAdminNav, onboardingOnly }) {
const { canAccessOrgInbox, inboxCount } = useOrgInbox()
const items = getMainNavItems(showAdminNav, { showInbox: canAccessOrgInbox })
const items = getMainNavItems(showAdminNav, {
showInbox: canAccessOrgInbox,
onboardingOnly,
})
const loc = useLocation()
const navItemActive = (pathname, item, routerIsActive) => {
@@ -147,26 +152,37 @@ function ProtectedLayout() {
return <Navigate to="/login" replace />
}
const showAdminNav = computeShowAdminNav(user)
const location = useLocation()
const onboardingOnly = isOnboardingRestricted(user)
if (onboardingOnly && !isOnboardingAllowedPath(location.pathname)) {
return <Navigate to="/onboarding" replace />
}
const showAdminNav = computeShowAdminNav(user) && !onboardingOnly
return (
<OrgInboxProvider user={user}>
<FormEditorActionsProvider>
<DesktopSidebar showAdminNav={showAdminNav} user={user} onLogout={handleLogout} />
<DesktopSidebar
showAdminNav={showAdminNav}
onboardingOnly={onboardingOnly}
user={user}
onLogout={handleLogout}
/>
<div className="app-shell">
<div className="app-shell__column">
<div className="app-header app-header--mobile app-header--mobile-stack">
<div className="app-header-mobile__top">
<div className="app-logo">🥋 Shinkan</div>
</div>
<ActiveClubSwitcher variant="mobile" />
{!onboardingOnly ? <ActiveClubSwitcher variant="mobile" /> : null}
</div>
<div className="app-main">
<InactiveMembershipBanner />
<Outlet />
</div>
<FormEditorBottomSlot>
<Nav showAdminNav={showAdminNav} />
<Nav showAdminNav={showAdminNav} onboardingOnly={onboardingOnly} />
</FormEditorBottomSlot>
</div>
</div>
@@ -220,6 +236,7 @@ const appRouter = createBrowserRouter([
element: <ProtectedLayout />,
children: [
{ index: true, element: <Dashboard /> },
{ path: 'onboarding', element: <OnboardingPage /> },
{ path: 'profile', element: <Navigate to="/settings" replace /> },
{ path: 'settings', element: <AccountSettingsPage /> },
{ path: 'settings/system', element: <SettingsSystemInfoPage /> },