Liking cljdoc? Tell your friends :D

boundary.user.core.profile-ui

Profile-specific UI components for user profile management.

This namespace contains pure functions for generating profile-related Hiccup structures including profile viewing, editing, password changes, and MFA setup.

Profile-specific UI components for user profile management.

This namespace contains pure functions for generating profile-related Hiccup
structures including profile viewing, editing, password changes, and MFA setup.
raw docstring

mfa-backup-codes-displayclj

(mfa-backup-codes-display backup-codes)
(mfa-backup-codes-display backup-codes full-page?)
(mfa-backup-codes-display backup-codes full-page? opts)

Display backup codes after MFA enable (HTMX fragment or full page).

Args: backup-codes: Vector of backup code strings full-page?: Boolean indicating if this should be a full page opts: Optional map with :user, :flash, etc.

Returns: Hiccup structure for backup codes display

Display backup codes after MFA enable (HTMX fragment or full page).

Args:
  backup-codes: Vector of backup code strings
  full-page?: Boolean indicating if this should be a full page
  opts: Optional map with :user, :flash, etc.
  
Returns:
  Hiccup structure for backup codes display
sourceraw docstring

mfa-disable-confirm-pageclj

(mfa-disable-confirm-page errors)
(mfa-disable-confirm-page errors opts)

Display MFA disable confirmation page with password verification.

Args: errors: Validation errors map (optional) opts: Optional map with :user, :flash, etc.

Returns: Complete HTML page for MFA disable confirmation

Display MFA disable confirmation page with password verification.

Args:
  errors: Validation errors map (optional)
  opts: Optional map with :user, :flash, etc.
  
Returns:
  Complete HTML page for MFA disable confirmation
sourceraw docstring

mfa-qr-code-stepclj

(mfa-qr-code-step secret qr-code-url issuer account-name)
(mfa-qr-code-step secret qr-code-url issuer account-name backup-codes)
(mfa-qr-code-step secret qr-code-url _issuer _account-name backup-codes errors)

Display QR code and verification step (HTMX fragment).

Args: secret: TOTP secret qr-code-url: QR code image URL issuer: Application name account-name: User's email errors: Validation errors (optional)

Returns: Hiccup structure for QR code step

Display QR code and verification step (HTMX fragment).

Args:
  secret: TOTP secret
  qr-code-url: QR code image URL
  issuer: Application name
  account-name: User's email
  errors: Validation errors (optional)
  
Returns:
  Hiccup structure for QR code step
sourceraw docstring

mfa-setup-pageclj

(mfa-setup-page & [opts])

Display MFA setup page with instructions.

Args: opts: Optional map with :user, :flash, etc.

Returns: Complete HTML page for MFA setup

Display MFA setup page with instructions.

Args:
  opts: Optional map with :user, :flash, etc.
  
Returns:
  Complete HTML page for MFA setup
sourceraw docstring

mfa-status-cardclj

(mfa-status-card _user mfa-status)

Display MFA status card with enable/disable actions.

Args: user: User entity map mfa-status: MFA status map from mfa-service

Returns: Hiccup structure for MFA status card

Display MFA status card with enable/disable actions.

Args:
  user: User entity map
  mfa-status: MFA status map from mfa-service
  
 Returns:
   Hiccup structure for MFA status card
sourceraw docstring

password-change-cardclj

(password-change-card expanded?)
(password-change-card expanded? errors)

Display password change card in security section.

Args: expanded?: Boolean indicating if form should be shown errors: Validation errors map (optional)

Returns: Hiccup structure for password change card

Display password change card in security section.

Args:
  expanded?: Boolean indicating if form should be shown
  errors: Validation errors map (optional)
  
Returns:
  Hiccup structure for password change card
sourceraw docstring

password-change-successclj

(password-change-success)

Display success message after password change.

Returns: Hiccup structure for success message

Display success message after password change.

Returns:
  Hiccup structure for success message
sourceraw docstring

password-section-fragmentclj

(password-section-fragment expanded?)
(password-section-fragment expanded? errors)

Password card-body fragment for HTMX swaps.

Password card-body fragment for HTMX swaps.
sourceraw docstring

preferences-cardclj

(preferences-card user)

Display user preferences card.

Args: user: User entity map

Returns: Hiccup structure for preferences card

Display user preferences card.

Args:
  user: User entity map
  
Returns:
  Hiccup structure for preferences card
sourceraw docstring

preferences-edit-formclj

(preferences-edit-form user)
(preferences-edit-form user errors)

Display editable preferences form (HTMX partial).

Args: user: User entity map errors: Validation errors map (optional)

Returns: Hiccup structure for preferences edit form

Display editable preferences form (HTMX partial).

Args:
  user: User entity map
  errors: Validation errors map (optional)
  
Returns:
  Hiccup structure for preferences edit form
sourceraw docstring

preferences-fragmentclj

(preferences-fragment user)

Preferences card-body fragment for HTMX swaps.

Preferences card-body fragment for HTMX swaps.
sourceraw docstring

profile-edit-formclj

(profile-edit-form user)
(profile-edit-form user errors)

Display editable profile form (HTMX partial).

Args: user: User entity map errors: Validation errors map (optional)

Returns: Hiccup structure for profile edit form

Display editable profile form (HTMX partial).

Args:
  user: User entity map
  errors: Validation errors map (optional)
  
Returns:
  Hiccup structure for profile edit form
sourceraw docstring

profile-info-cardclj

(profile-info-card user)

Display user profile information card (read-only view).

Args: user: User entity map

Returns: Hiccup structure for profile info card

Display user profile information card (read-only view).

Args:
  user: User entity map
  
Returns:
  Hiccup structure for profile info card
sourceraw docstring

profile-info-fragmentclj

(profile-info-fragment user)

Profile information card-body fragment for HTMX swaps.

Profile information card-body fragment for HTMX swaps.
sourceraw docstring

profile-pageclj

(profile-page user mfa-status & [opts])

Display main profile page with all sections.

Args: user: User entity map mfa-status: MFA status map from mfa-service opts: Optional map with :user (for layout), :flash, etc.

Returns: Complete HTML page for user profile

Display main profile page with all sections.

Args:
  user: User entity map
  mfa-status: MFA status map from mfa-service
  opts: Optional map with :user (for layout), :flash, etc.
  
Returns:
  Complete HTML page for user profile
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close