Fix media friendly names, metadata display, output recording, and plan display
- Add friendly name display to media detail and list pages - Unpack nested meta fields to top level for template access - Fix output_cid mismatch: use IPFS CID consistently between cache and database - Add dual-indexing in cache_manager to map both IPFS CID and local hash - Fix plan display: accept IPFS CIDs (Qm..., bafy...) not just 64-char hashes - Add friendly names to recipe listing - Add recipe upload button and handler to recipes list - Add debug logging to recipe listing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -181,7 +181,13 @@ async def get_run(
|
||||
plan_sexp = None # Native S-expression if available
|
||||
recipe_ipfs_cid = None
|
||||
recipe_id = run.get("recipe")
|
||||
if recipe_id and len(recipe_id) == 64: # Looks like a hash
|
||||
# Check for valid recipe ID (64-char hash, IPFS CIDv0 "Qm...", or CIDv1 "bafy...")
|
||||
is_valid_recipe_id = recipe_id and (
|
||||
len(recipe_id) == 64 or
|
||||
recipe_id.startswith("Qm") or
|
||||
recipe_id.startswith("bafy")
|
||||
)
|
||||
if is_valid_recipe_id:
|
||||
try:
|
||||
from ..services.recipe_service import RecipeService
|
||||
recipe_service = RecipeService(get_redis_client(), get_cache_manager())
|
||||
|
||||
Reference in New Issue
Block a user