diff --git a/backend/app/routers/auth.py b/backend/app/routers/auth.py index 552fe69..9989812 100644 --- a/backend/app/routers/auth.py +++ b/backend/app/routers/auth.py @@ -441,7 +441,7 @@ async def register( select(User).where(User.username == data.username) ) if existing.scalar_one_or_none(): - raise HTTPException(status_code=400, detail="Registration could not be completed. Please try a different username.") + raise HTTPException(status_code=400, detail="Registration could not be completed. Please check your details and try again.") # Check email uniqueness (generic error to prevent enumeration) if data.email: diff --git a/frontend/src/components/people/PeoplePage.tsx b/frontend/src/components/people/PeoplePage.tsx index 4e52d41..f49b81d 100644 --- a/frontend/src/components/people/PeoplePage.tsx +++ b/frontend/src/components/people/PeoplePage.tsx @@ -60,7 +60,11 @@ function StatCounter({ // Helpers // --------------------------------------------------------------------------- function getPersonInitialsName(p: Person): string { - const parts = [p.first_name, p.last_name].filter(Boolean); + const firstName = p.is_umbral_contact && p.shared_fields?.first_name + ? String(p.shared_fields.first_name) : p.first_name; + const lastName = p.is_umbral_contact && p.shared_fields?.last_name + ? String(p.shared_fields.last_name) : p.last_name; + const parts = [firstName, lastName].filter(Boolean); return parts.length > 0 ? parts.join(' ') : p.name; } @@ -428,7 +432,11 @@ export default function PeoplePage() {
-

{p.name}

+

{ + p.is_umbral_contact && p.shared_fields + ? [sf(p, 'first_name'), sf(p, 'last_name')].filter(Boolean).join(' ') || p.name + : p.name + }

{p.is_umbral_contact && ( )}