From 069010660dbe6dfecac382f22e6405d46fb08e2f Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 7 Jan 2026 21:52:52 +0000 Subject: [PATCH] Show input content as thumbnails in activity/asset detail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Display actual images/videos for inputs (not just hash links) - Video auto-plays if detected, falls back to image - Consistent display on both activity and asset detail pages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- server.py | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/server.py b/server.py index 1075c3f..70c8c5a 100644 --- a/server.py +++ b/server.py @@ -716,14 +716,27 @@ async def ui_activity_detail(activity_index: int, request: Request): else: effect_url = f"{EFFECTS_REPO_URL}/src/branch/main/{recipe}" - # Build inputs display + # Build inputs display - show actual content as thumbnails inputs_html = "" for inp in inputs: inp_hash = inp.get("content_hash", "") if isinstance(inp, dict) else inp if inp_hash: inputs_html += f''' - {inp_hash[:20]}... +
+
+ + Input +
+
+ {inp_hash[:16]}... + view +
+
''' # Infrastructure display @@ -989,15 +1002,26 @@ async def ui_asset_detail(name: str, request: Request): else: effect_url = f"{EFFECTS_REPO_URL}/src/branch/main/{recipe}" - # Build inputs display + # Build inputs display - show actual content as thumbnails inputs_html = "" for inp in inputs: inp_hash = inp.get("content_hash", "") if isinstance(inp, dict) else inp if inp_hash: inputs_html += f''' -
- {inp_hash[:24]}... +
+
+ + Input +
+
+ {inp_hash[:16]}... + view +
'''