@metropolle/design-system 1.2026.0-1.24.1601 → 1.2026.0-1.24.2030
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react/index.js
CHANGED
|
@@ -1544,14 +1544,23 @@ function ProfileCard({ user, variant = 'full', photoWidth, showSocial = false, s
|
|
|
1544
1544
|
return () => observer.disconnect();
|
|
1545
1545
|
}, []);
|
|
1546
1546
|
// Dynamic info texts for rotating display
|
|
1547
|
-
|
|
1547
|
+
// FEAT-090: Use verification_score checks when available, fallback to legacy
|
|
1548
|
+
const infoTexts = user.verification_score ? [
|
|
1549
|
+
`Verification Level ${user.verification_score.score}`,
|
|
1550
|
+
`User #${user.registration_sequence?.toLocaleString() || '—'}`,
|
|
1551
|
+
`Member since ${new Date(user.created_at).getFullYear()}`,
|
|
1552
|
+
// Show passed verification checks
|
|
1553
|
+
...user.verification_score.checks
|
|
1554
|
+
.filter(check => check.passed)
|
|
1555
|
+
.map(check => check.description),
|
|
1556
|
+
] : [
|
|
1548
1557
|
`Member since ${new Date(user.created_at).getFullYear()}`,
|
|
1549
1558
|
...(user.registration_sequence ? [`User #${user.registration_sequence.toLocaleString()}`] : []),
|
|
1550
1559
|
...(user.verified >= 1 ? ['Email Verified'] : []),
|
|
1551
1560
|
...(user.verified >= 2 ? ['Identity Verified'] : []),
|
|
1552
1561
|
...(user.verified >= 3 ? ['Area Verified'] : []),
|
|
1553
1562
|
// PROC-013: Show MFA status when enabled (highlight security-conscious users)
|
|
1554
|
-
...(user.mfa_enabled === true ? ['2FA
|
|
1563
|
+
...(user.mfa_enabled === true ? ['2FA Enabled'] : []),
|
|
1555
1564
|
];
|
|
1556
1565
|
// Rotate info text
|
|
1557
1566
|
require$$0.useEffect(() => {
|
|
@@ -1613,11 +1622,11 @@ function ProfileCard({ user, variant = 'full', photoWidth, showSocial = false, s
|
|
|
1613
1622
|
e.stopPropagation();
|
|
1614
1623
|
setShowVerifiedPopup(!showVerifiedPopup);
|
|
1615
1624
|
setShowSocialPopup(false);
|
|
1616
|
-
}, title: "Verification Status", children: Icons.shield }), showVerifiedPopup && (jsxRuntimeExports.
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1625
|
+
}, title: "Verification Status", children: Icons.shield }), showVerifiedPopup && (jsxRuntimeExports.jsx("div", { className: "mds-profile-card__verified-popup", children: user.verification_score ? (
|
|
1626
|
+
// FEAT-090: New 5-point verification score
|
|
1627
|
+
jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: "mds-profile-card__verified-header", children: ["Verification Level ", user.verification_score.score] }), jsxRuntimeExports.jsx("div", { className: "mds-profile-card__verified-checks", children: user.verification_score.checks.map((check) => (jsxRuntimeExports.jsx(VerificationCheckItem, { description: check.description, passed: check.passed }, check.name))) }), jsxRuntimeExports.jsxs("div", { className: "mds-profile-card__verified-footer", children: [user.registration_sequence && (jsxRuntimeExports.jsxs("span", { className: "mds-profile-card__verified-sequence", children: ["User #", user.registration_sequence.toLocaleString()] })), jsxRuntimeExports.jsxs("span", { className: "mds-profile-card__verified-date", children: ["since ", memberSince] })] })] })) : (
|
|
1628
|
+
// Legacy: Old verification levels
|
|
1629
|
+
jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: "mds-profile-card__verified-header", children: ["Verification Level ", user.verified] }), jsxRuntimeExports.jsxs("div", { className: "mds-profile-card__verified-stats", children: [jsxRuntimeExports.jsx(StatItem, { label: "Email", verified: user.verified >= 1 }), jsxRuntimeExports.jsx(StatItem, { label: "Identity", verified: user.verified >= 2 }), jsxRuntimeExports.jsx(StatItem, { label: "Area", verified: user.verified >= 3 })] }), jsxRuntimeExports.jsxs("div", { className: "mds-profile-card__verified-footer", children: [user.registration_sequence && (jsxRuntimeExports.jsxs("span", { className: "mds-profile-card__verified-sequence", children: ["User #", user.registration_sequence.toLocaleString()] })), jsxRuntimeExports.jsxs("span", { className: "mds-profile-card__verified-date", children: ["since ", memberSince] })] })] })) }))] }), showRotatingInfo && (jsxRuntimeExports.jsx("div", { className: "mds-profile-card__info-dots", children: infoTexts.map((_, index) => (jsxRuntimeExports.jsx("span", { className: `mds-profile-card__info-dot ${index === currentInfoIndex ? 'active' : ''}` }, index))) }))] }))] })] }));
|
|
1621
1630
|
}
|
|
1622
1631
|
|
|
1623
1632
|
const variantElementMap = {
|