UI: доработать профиль и связи

This commit is contained in:
AidarKC
2026-09-01 15:24:39 +04:00
parent 390a2b988e
commit 632d56737b
8 changed files with 240 additions and 115 deletions
+7 -2
View File
@@ -254,9 +254,14 @@ export async function loadUserProfileCard(login) {
address: fields.address || '',
web: fields.web || '',
phone: fields.phone || '',
about: fields.about || '',
spiritualPath: fields.spiritual_path || '',
accountRole: String(snapshot?.accountRole || '').trim().toLowerCase(),
shineStatus: String(snapshot?.shineStatus || '').trim().toLowerCase(),
gender: String(snapshot?.gender || 'unknown').trim().toLowerCase() || 'unknown',
official: Boolean(toggles.official),
shine: Boolean(toggles.shine),
// Compatibility aliases for older graph/card consumers; values come only from the new profile schema.
official: String(snapshot?.accountRole || '').trim().toLowerCase() === 'primary',
shine: String(snapshot?.shineStatus || '').trim().toLowerCase() === 'shining',
avatar: snapshot?.avatar?.txId
? {
ar: String(snapshot.avatar.txId).trim(),