4.1 KiB

Profile Features

Last Updated: 2025-03-25
Status: Active
Related To: User Identity, Progress, Settings

Purpose

This document provides an overview of the profile tab features in the POWR app. It describes the various sections of the profile tab, their purposes, and how they integrate with other app features.

Overview

The profile tab serves as the user's personal space within the app, providing:

  1. User identity and account management
  2. Progress tracking and analytics
  3. Application settings and preferences
  4. Social activity overview
  5. Account management features

The profile implementation is focused on these key principles:

  • User control over personal information
  • Clear organization of progress data
  • Simple access to app settings
  • Integration with Nostr for identity

Component Architecture

High-Level Components

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│   UI Layer      │     │  Service Layer  │     │   Data Layer    │
│                 │     │                 │     │                 │
│ Profile Screens │     │ Profile Service │     │ User Data       │
│ Settings Views  │◄───►│ Analytics       │◄───►│ Settings Storage│
│ Progress Views  │     │ Auth Management │     │ Analytics Data  │
└─────────────────┘     └─────────────────┘     └─────────────────┘

Profile Screens

  • ProfileOverview: Main profile screen with user information
  • ProfileProgress: Progress tracking visualizations and data
  • ProfileActivity: Recent social and workout activity
  • ProfileTerms: Terms of service and legal documents
  • ProfileSettings: App settings and preferences

MVP Implementation Focus

For the MVP release, the profile tab focuses on:

  1. User Identity

    • Basic profile information display
    • Profile editing capabilities
    • Nostr pubkey association
  2. Progress Tracking

    • Exercise progress charts and metrics
    • Performance tracking over time
    • Personal records and milestones
  3. Core Settings

    • App preferences
    • Theme switching
    • Account management
  4. Activity Overview

    • Limited view of recent workouts
    • Social activity summary
    • Simplified activity feed

User Identity

The profile tab handles user identity through:

  1. Profile Information

    • Display name
    • Profile picture (with Nostr and local options)
    • User metadata
    • Exercise history summary
  2. Authentication Management

    • Nostr key handling
    • Login/logout functionality
    • Key creation and import

Progress Features

Progress tracking is a key feature of the profile tab:

  1. Progress Charts

    • Exercise-specific progress tracking
    • Weight/volume progression charts
    • Performance metrics
    • Personal records
  2. Workout Summary Data

    • Total workouts completed
    • Exercise frequency
    • Workout time analytics
    • Consistency metrics

Settings and Preferences

The profile tab provides access to app settings:

  1. App Preferences

    • Theme selection (light/dark)
    • Notification preferences
    • Default units (kg/lbs)
  2. Account Management

    • Export/import data
    • Clear cache
    • Data management

Activity Overview

The profile tab includes a simplified activity overview:

  1. Recent Workouts

    • Last few completed workouts
    • Quick stats
    • Links to full history
  2. Social Activity

    • Recent social interactions
    • Posts and shares
    • Simplified activity feed