Skip to content

Add hub dashboard with player statistics and bottom navigation#14

Merged
Neverdecel merged 4 commits intomainfrom
feature/hub-dashboard-and-nav
Dec 28, 2025
Merged

Add hub dashboard with player statistics and bottom navigation#14
Neverdecel merged 4 commits intomainfrom
feature/hub-dashboard-and-nav

Conversation

@Neverdecel
Copy link
Owner

Summary

  • Hub Dashboard: Redesigned /hub page from channel selector to player statistics dashboard
  • Bottom Navigation: Added fixed bottom nav bar across all messaging views
  • Miro Agent Fix: Fixed ADK template variable error that broke Miro conversations

Changes

New Dashboard Service (src/argent/services/dashboard.py)

  • Aggregates player statistics from database
  • Trust levels for all agents (Ember, Miro)
  • Game progress (time played, milestones, intel gathered)
  • Activity summary (messages sent/received, conversations)

UI Improvements

  • Trust Meters: Visual -100 to +100 scale with indicator
  • Stats Grid: Card-based layout for metrics
  • Bottom Nav: Fixed navigation between Hub, Inbox, and Text channels
  • Typing Indicators: Added to message threads

Bug Fixes

  • Fixed Miro agent not responding due to {key} being interpreted as ADK template variable
  • Changed to plain text description to avoid template injection

Files Changed

File Change
src/argent/services/dashboard.py New service for dashboard stats
src/argent/api/inbox.py Updated hub route to use dashboard service
src/argent/templates/hub.html Redesigned as statistics dashboard
src/argent/static/style.css Added 380+ lines for dashboard and nav
src/argent/templates/partials/bottom_nav.html New reusable nav component
src/argent/story/personas/miro.py Fixed template variable issue
.gitignore Added .playwright-mcp/

Testing

  • Tested dashboard statistics display
  • Verified bottom nav navigation
  • Confirmed Miro agent responds correctly after fix

DevOps Notes

  • No database migrations required (uses existing tables)
  • CSS cache version bumped to v=5 - may need CDN cache purge if using one
  • Docker rebuild required for template changes

Neverdecel added 4 commits December 28, 2025 13:36
- Redesign /hub page to show player stats dashboard:
  - Agent trust levels with visual meters (Ember, Miro)
  - Mission progress (time played, milestones, intel gathered)
  - Communication log (messages sent/received, conversations)
- Add persistent bottom navigation bar across all inbox pages
  - Email/Text tabs with unread badges
  - Separator between tabs, larger text
- Create dashboard service for aggregating player statistics
- Fix Miro prompt leak where meta-instructions appeared in responses
- Redesign /hub page to show player stats dashboard:
  - Agent trust levels with visual meters (Ember, Miro)
  - Mission progress (time played, milestones, intel gathered)
  - Communication log (messages sent/received, conversations)
- Add persistent bottom navigation bar across all inbox pages
  - Email/Text tabs with unread badges
  - Separator between tabs, larger text
- Create dashboard service for aggregating player statistics
- Fix Miro prompt leak where meta-instructions appeared in responses
- Fix ADK template variable error in Miro persona
Use distinct variable names for query results to avoid type inference issues.
@Neverdecel Neverdecel merged commit 8f44403 into main Dec 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant