From 2cc7d88d2e15bb3a7115a0d9a5dbf1d5453255a4 Mon Sep 17 00:00:00 2001 From: gilesb Date: Mon, 12 Jan 2026 12:19:06 +0000 Subject: [PATCH] Add effects count to home page dashboard - Add Effects card to home page grid (now 3 columns) - Add stats["effects"] count from cache.list_by_type('effect') - Add tests for home page effects display Co-Authored-By: Claude Opus 4.5 --- app/routers/home.py | 6 ++++++ app/templates/home.html | 7 ++++++- tests/test_effects_web.py | 22 ++++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/app/routers/home.py b/app/routers/home.py index 5b19d37..a7a1704 100644 --- a/app/routers/home.py +++ b/app/routers/home.py @@ -65,6 +65,12 @@ async def home(request: Request): stats["storage"] = len(storage_providers) if storage_providers else 0 except Exception: pass + try: + from ..dependencies import get_cache_manager + effects = get_cache_manager().list_by_type('effect') + stats["effects"] = len(effects) + except Exception: + pass templates = get_templates(request) return render(templates, "home.html", request, diff --git a/app/templates/home.html b/app/templates/home.html index 8189268..c6a23aa 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -7,7 +7,7 @@

Art-DAG L1

Content-Addressable Media Processing

-