DocNR 969163313a fix(auth): Improve authentication state handling and avatar display
* Add style prop to UserAvatar component for better customization
* Refactor UserAvatar to use getAvatarSeed utility for consistent avatar generation
* Fix React hook ordering issues in profile/overview.tsx to prevent crashes during auth state changes
* Add proper state initialization and cleanup during authentication transitions
* Ensure consistent fallback avatar display for unauthenticated users

These changes improve stability during login/logout operations and provide better visual continuity with Robohash avatars when profile images aren't available.
2025-04-02 21:11:25 -04:00

1.6 KiB

Library Features

Last Updated: 2025-04-01
Status: Active
Related To: Exercise Management, Template Management, Content Discovery

Overview

The Library section of POWR provides management for all fitness content including exercises, workout templates, and programs. This documentation covers the various components and features of the Library system.

Core Documents

  • Library Overview - Comprehensive guide to the Library tab implementation
  • Template Organization (Coming Soon) - Details on template structure and management

Key Features

  • Exercise Management: Create, edit, search, and categorize exercises
  • Template Management: Create and manage workout templates
  • Content Discovery: Find and reuse exercise content
  • Offline Support: Full functionality with or without connectivity
  • Source Tracking: Attribution for content from various sources

Data Architecture

The Library data is managed through several services:

  • LibraryService: Core data management
  • ExerciseService: Exercise CRUD operations
  • TemplateService: Template management
  • FavoritesService: Favorites functionality

Integration Points

The Library system integrates with several other parts of the application:

  • Workout Creation: Selection of exercises and templates
  • History: Usage tracking and statistics
  • Social Features: Sharing and discovery of content