Skip to content

Follow-up: Additional observability dashboard improvements (from PR #169) #184

@mchestr

Description

@mchestr

Follow-up tasks from PR #169

Tasks

  • Add caching to getObservabilityData() server action using unstable_cache to reduce database load when multiple admins view the dashboard
  • Use Next.js <Image> component for user avatars in active sessions panel with proper domain allowlist for security
  • Add date range filters for activity trends (7/14/30 days toggle)
  • Consider WebSocket support for real-time updates instead of polling (significant architecture change)

Context

From code review comments on PR #169:

For a high-traffic admin dashboard, consider adding caching to the server action using unstable_cache with 30 second revalidation to prevent hammering the database if multiple admins view the dashboard simultaneously.

If session.userThumb comes from user-controlled Tautulli data, it could potentially be a non-image URL. Validate image URLs or use Next.js <Image> component with proper domain allowlist.

Consider adding date range filters for activity trends (7/14/30 days)

Consider WebSocket support for real-time updates instead of polling

See PR #169 for full context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions