This commit is contained in:
2026-01-16 04:57:05 -08:00
parent 00bee0011c
commit 0f71ec7873
8 changed files with 446 additions and 137 deletions

View File

@@ -261,7 +261,7 @@ def render_image_to_console(image_path: str | Path, max_width: int | None = None
pass
def render_item_details_panel(item: Dict[str, Any]) -> None:
def render_item_details_panel(item: Dict[str, Any], *, title: Optional[str] = None) -> None:
"""Render a comprehensive details panel for a result item using unified ItemDetailView."""
from SYS.result_table import ItemDetailView, extract_item_metadata
@@ -269,7 +269,7 @@ def render_item_details_panel(item: Dict[str, Any]) -> None:
# Create a specialized view with no results rows (only the metadata panel)
# We set no_choice=True to hide the "#" column (not that there are any rows).
view = ItemDetailView(item_metadata=metadata).set_no_choice(True)
view = ItemDetailView(item_metadata=metadata, detail_title=title).set_no_choice(True)
# Ensure no title leaks in (prevents an empty "No results" table from rendering).
try:
view.title = ""