From de80c393e4be744363f49f7094c5d46cc118b65e Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 24 Feb 2026 11:57:51 +0000 Subject: [PATCH] Restore menu_items fallback for nav, update shared submodule Keep get_navigation_tree() as fallback when nav-tree fragment fetch fails. Update shared submodule with fixed app slug URLs in nav. Co-Authored-By: Claude Opus 4.6 --- app.py | 3 +++ shared | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index f02cda1..48bb697 100644 --- a/app.py +++ b/app.py @@ -19,6 +19,7 @@ async def events_context() -> dict: - cart_count/cart_total: via cart service (shared DB) """ from shared.infrastructure.context import base_context + from shared.services.navigation import get_navigation_tree from shared.services.registry import services from shared.infrastructure.cart_identity import current_cart_identity from shared.infrastructure.fragments import fetch_fragment @@ -29,6 +30,8 @@ async def events_context() -> dict: "blog", "nav-tree", params={"app_name": "events", "path": request.path}, ) + # Fallback for _nav.html when nav-tree fragment fetch fails + ctx["menu_items"] = await get_navigation_tree(g.s) # Cart data via service (replaces cross-app HTTP API) ident = current_cart_identity() diff --git a/shared b/shared index 7e650a0..ab674ad 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit 7e650a0ee3a61d56525cc9e298ed0c4194e780a4 +Subproject commit ab674ada31f09edb1a4333e520d482e13e0c90da