sync - tui loads but no data in views

This commit is contained in:
2025-09-26 08:33:02 -07:00
parent 6d0d8493aa
commit 5c0e05db16
27 changed files with 283 additions and 2797 deletions

View File

@@ -98,6 +98,10 @@ class DashboardView(Widget):
"""Create dashboard layout."""
self.log(f"[DashboardView] compose called | debug_id={self.debug_id} | loading={self.loading} | error={self.error_message}")
yield Static("AI Cycling Coach Dashboard", classes="view-title")
# DEBUG: Always show some content to verify rendering
yield Static(f"DEBUG: View Status - Loading: {self.loading}, Error: {bool(self.error_message)}, Data: {bool(self.dashboard_data)}")
# Always show the structure - use conditional content
if self.error_message:
with Container(classes="error-container"):
@@ -115,6 +119,7 @@ class DashboardView(Widget):
yield Static("Click Refresh to try again", classes="error-action")
elif self.loading and not self.dashboard_data:
# Initial load - full screen loader
yield Static("Loading dashboard data...")
yield LoadingIndicator(id="dashboard-loader")
else:
# Show content with optional refresh indicator