Phase 2 of fragment composition: blog_context() now concurrently
fetches cart-mini and auth-menu HTML fragments from cart and account
apps via fetch_fragments(). Updates shared submodule.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
All auth routes (login, magic link, account, newsletters,
widget pages, logout) are handled by the federation app.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Delete coop_api.py (dead internal API endpoint)
- Replace cross-app calendar imports with shared service calls
- Update shared submodule
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace direct Calendar, MarketPlace, and Post model queries with typed
service calls (services.blog, services.calendar, services.market,
services.cart). Blog registers all 4 services via domain_services_fn
with has() guards for composable deployment.
Key changes:
- app.py: use domain_services_fn instead of inline service registration
- admin routes: MarketPlace queries → services.market.marketplaces_for_container()
- entry_associations: CalendarEntryPost → services.calendar.entry_ids_for_content()
- markets service: Post query → services.blog.get_post_by_id/slug()
- posts_data, post routes: use calendar/market/cart services
- menu_items: glue imports → shared imports
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Context processor now sums product count + calendar_count from the
cart API, so the cart badge shows the correct total on all pages.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Phase 1-3 of decoupling:
- path_setup.py adds project root to sys.path
- Blog-owned models in blog/models/ (ghost_content, snippet, tag_group)
- Re-export shims for shared models (user, kv, magic_link, menu_item)
- All imports updated: shared.infrastructure, shared.db, shared.browser, etc.
- No more cross-app post_id FKs in calendar/market/page_config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract blog-specific code from the coop monolith into a standalone
repository. Includes auth, blog, post, admin, menu_items, snippets
blueprints, associated templates, Dockerfile (APP_MODULE=app:app),
entrypoint, and Gitea CI workflow.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>