Backend: Workspace model, migration (036), schemas, CRUD API endpoints. Adds workspace_id to trees and categories, seeds 4 default workspaces per account, auto-assigns existing trees by tree_type. Frontend: Complete AppLayout rewrite from top-nav to CSS Grid shell with persistent sidebar + topbar. New components: WorkspaceSwitcher, NavItem, CategoryList, TagCloud, TopBar, Sidebar. Dashboard components: QuickStats, FiltersBar, SectionGroup, TreeListItem, SessionsPanel. WorkspaceStore with localStorage persistence. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
1.4 KiB
Python
29 lines
1.4 KiB
Python
from fastapi import APIRouter
|
|
from app.api.endpoints import auth, trees, sessions, invite, categories, tags, folders, step_categories, steps, admin, accounts, webhooks, shares, shared, tree_markdown, workspaces
|
|
from app.api.endpoints import admin_dashboard, admin_audit, admin_plan_limits, admin_feature_flags, admin_settings, admin_categories
|
|
|
|
api_router = APIRouter()
|
|
|
|
api_router.include_router(auth.router)
|
|
api_router.include_router(trees.router)
|
|
api_router.include_router(sessions.router)
|
|
api_router.include_router(invite.router)
|
|
api_router.include_router(categories.router)
|
|
api_router.include_router(tags.router)
|
|
api_router.include_router(folders.router)
|
|
api_router.include_router(step_categories.router)
|
|
api_router.include_router(steps.router)
|
|
api_router.include_router(admin.router)
|
|
api_router.include_router(admin_dashboard.router)
|
|
api_router.include_router(admin_audit.router)
|
|
api_router.include_router(admin_plan_limits.router)
|
|
api_router.include_router(admin_feature_flags.router)
|
|
api_router.include_router(admin_settings.router)
|
|
api_router.include_router(admin_categories.router)
|
|
api_router.include_router(accounts.router)
|
|
api_router.include_router(webhooks.router)
|
|
api_router.include_router(shares.router)
|
|
api_router.include_router(shared.router) # Public endpoints (no auth)
|
|
api_router.include_router(tree_markdown.router)
|
|
api_router.include_router(workspaces.router)
|