User Profiles

Guide to BrewHoard user profiles - editing your profile, collection stats, and account settings.

User profiles in BrewHoard allow collectors to view and manage their beer journey. This guide covers profile editing and the collection statistics displayed on your profile.

Overview

FeatureDescription
Profile EditingUpdate name, bio, location, and country
Collection StatsView total beers, unique styles, top breweries
Language SelectionChoose your UI language
Account ManagementLogout and account deletion

Editing Your Profile

Users can edit their profile directly from the /profile page by clicking the Edit button.

Available Fields

FieldTypeDescription
First NameTextYour first name
Last NameTextYour last name
LocationTextCity, Country
CountrySelectAuto-detects from browser
Preferred CurrencySelectEUR, USD, GBP, CAD, AUD
BioTextareaTell us about yourself

Country & Currency

When you select a country, the preferred currency is automatically suggested:

  • 🇪🇪 Estonia → EUR
  • 🇺🇸 United States → USD
  • 🇬🇧 United Kingdom → GBP
  • 🇨🇦 Canada → CAD
  • 🇦🇺 Australia → AUD

Collection Statistics

The profile page displays collection statistics when you have beers in your collection:

StatDescription
Total BeersTotal number of items in your collection
Unique StylesNumber of distinct beer styles
Unique BreweriesNumber of distinct breweries

Top Breweries & Styles

The profile also shows your top breweries and styles based on the number of beers from each.


Profile Page Actions

Language Selection

Choose your interface language directly from the profile page. Supported languages:

  • English
  • Nederlands (Dutch)
  • Français (French)
  • Español (Spanish)
  • Português (Portuguese)

Navigation Links

The profile page provides quick links to:

  • Analytics (/collection/analytics) - Collection insights
  • Alerts (/settings/alerts) - Notification preferences
  • Integrations (/settings/integrations) - Untappd and more
  • Settings (/settings) - App settings
  • Docs (/docs) - Documentation

Account Deletion

Users can permanently delete their account from the Danger Zone section. See Settings & Preferences for details.


Database Schema

The user profile data is stored in the user table managed by Better Auth. Key profile fields:

ColumnTypeDescription
usernameTEXTUnique username
nameTEXTDisplay name
emailTEXTEmail address
imageTEXTAvatar URL
bioTEXTProfile bio
locationTEXTUser’s location
discoverableBOOLEANAppear in discovery

Note: The user table is managed by Better Auth (src/lib/db/auth-schema.ts). Profile updates go through updateUser() in src/lib/auth/users.js.


Next Steps