This commit is contained in:
2026-01-21 22:52:52 -08:00
parent d94e321148
commit 201663bb62
9 changed files with 377 additions and 124 deletions

View File

@@ -991,8 +991,10 @@ class Table:
row.add_column("Tag", item.tag_name)
# Source/Store (where the tag values come from)
if hasattr(item, "source") and item.source:
row.add_column("Store", item.source)
# Support both 'source' (legacy) and 'store' (new) attribute names
source_val = getattr(item, "source", None) or getattr(item, "store", None)
if source_val:
row.add_column("Store", source_val)
def _add_pipe_object(self, row: Row, obj: Any) -> None:
"""Extract and add PipeObject fields to row."""
@@ -2013,11 +2015,13 @@ class ItemDetailView(Table):
title: str = "",
item_metadata: Optional[Dict[str, Any]] = None,
detail_title: Optional[str] = None,
exclude_tags: bool = False,
**kwargs
):
super().__init__(title, **kwargs)
self.item_metadata = item_metadata or {}
self.detail_title = detail_title
self.exclude_tags = exclude_tags
def to_rich(self):
"""Render the item details panel above the standard results table."""
@@ -2075,7 +2079,7 @@ class ItemDetailView(Table):
# Tags Summary
tags = self.item_metadata.get("Tags") or self.item_metadata.get("tags") or self.item_metadata.get("tag")
if tags and isinstance(tags, (list, str)):
if not self.exclude_tags and tags and isinstance(tags, (list, str)):
if isinstance(tags, str):
tags = [t.strip() for t in tags.split(",") if t.strip()]
tags_sorted = sorted(map(str, tags))