This commit is contained in:
2026-01-18 10:50:42 -08:00
parent 66132811e0
commit 66e6c6eb72
34 changed files with 718 additions and 516 deletions

View File

@@ -80,7 +80,7 @@ def show_provider_config_panel(
provider_names: str | List[str],
) -> None:
"""Show a Rich panel explaining how to configure providers."""
from rich.table import Table
from rich.table import Table as RichTable
from rich.text import Text
from rich.console import Group
@@ -89,7 +89,7 @@ def show_provider_config_panel(
else:
providers = provider_names
table = Table.grid(padding=(0, 1))
table = RichTable.grid(padding=(0, 1))
table.add_column(style="bold red")
for provider in providers:
@@ -116,7 +116,7 @@ def show_store_config_panel(
store_names: str | List[str],
) -> None:
"""Show a Rich panel explaining how to configure storage backends."""
from rich.table import Table
from rich.table import Table as RichTable
from rich.text import Text
from rich.console import Group
@@ -125,7 +125,7 @@ def show_store_config_panel(
else:
stores = store_names
table = Table.grid(padding=(0, 1))
table = RichTable.grid(padding=(0, 1))
table.add_column(style="bold yellow")
for store in stores:
@@ -269,7 +269,7 @@ def render_item_details_panel(item: Dict[str, Any], *, title: Optional[str] = No
# 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, detail_title=title).set_no_choice(True)
view = ItemDetailView(item_metadata=metadata, detail_title=title)._interactive(True)
# Ensure no title leaks in (prevents an empty "No results" table from rendering).
try:
view.title = ""