Skip to main content

SPEC 013 — User Profile and Dashboard


1. Feature Purpose

The user profile and dashboard module provides the personal home experience for each Equa user. It aggregates holdings, organization memberships, personal information, wallet data, and account security settings into a single view. Users can edit their profile, manage blockchain wallet addresses, configure a 4-digit signing PIN, and view portfolio performance across all organizations they belong to.

2. Current State (Verified)

2.1 User Dashboard Entry Point

2.2 Dashboard Component

2.3 Profile Form

2.4 Account Settings

2.5 Wallet Integration

2.6 Pages Exported


3. Data Model

Profiles

Users

UserAccounts

UserStates

Colors

WalletAddresses


4. API Endpoints


5. Frontend Components

Module: equa-web/src/modules/profile/

Module: equa-web/src/modules/user-dashboard/


6. Business Rules

  1. Profile image must be PNG, JPG, or JPEG. Square images are recommended.
  2. PIN must be exactly 4 numeric digits. The confirmation PIN must match.
  3. Email field on profile is distinct from the login email on the Users table. Profile email is editable; login email requires verification.
  4. Wallet net worth is calculated as: wallet + savings + claimable + vault - debt.
  5. Color assignments persist per user and apply across the dashboard and portfolio views. If no color is assigned, the system cycles through the 8-color fallback palette.
  6. Dashboard redirects: zero orgs → welcome page; one org → that org’s page; multiple orgs → org list.
  7. Guest users see a limited dashboard with prompts to add personal information and organizations.
  8. Profile links (LinkedIn, Facebook, Twitter, Instagram, Website) are validated as URLs before save.
  9. Copy to clipboard is available for email and phone number fields on the dashboard.

7. Acceptance Criteria

  • User can view their dashboard with holdings summary (Total Investment, Total Current Value, Lifetime Growth USD/%)
  • User can edit profile: name, photo, phone, DOB, address, social links, website
  • User can set and update their 4-digit signing PIN
  • User can view, add, edit, and remove blockchain wallet addresses
  • Wallet portfolio displays net worth with category breakdown (Wallet, Savings, Claimable, Debt)
  • Dashboard shows up to 3 organizations alphabetically sorted
  • Rainbow bar chart reflects portfolio allocation by security
  • Color assignments persist across sessions
  • Guest users see appropriate empty-state prompts
  • Profile image upload accepts PNG/JPG/JPEG only

8. Risks