MemberMobileCardProfile

MemberMobileCardProfile Stimulus Controller

Manages mobile-optimized member profile card display with PWA integration. Extends MobileControllerBase for centralized connection handling.

Features:

  • Mobile-optimized profile card layout
  • PWA readiness integration
  • Fetch with retry for reliability
  • Dynamic card generation for plugin sections

Constructor

new MemberMobileCardProfile()

Methods

handlePwaReady()

Handle PWA ready event

(async) loadCard()

Load member profile data with retry logic

onConnect()

Called after base class connect

onConnectionStateChanged(isOnline)

Handle global online/offline state changes from MobileControllerBase.

Parameters:
NameTypeDescription
isOnlineboolean

Current connection state.

onDisconnect()

Called after base class disconnect

pwaReadyValueChanged()

Handle PWA ready state changes

renderMemberData()

Render member data to the card

renderPluginSections()

Render plugin-provided sections

retryLoad()

Retry loading card data

showOfflineMessage()

Show offline message with retry option

startCard()

Create a new mobile card section

updatePhotoActionsForConnection(isOnline)

Hide photo capture/upload affordances while offline.

Parameters:
NameTypeDescription
isOnlineboolean

Current connectivity state.