Update guard details to show more relevant information

Refactors the Guards page to display guard's email, phone number, and location. Also updates initial fallback for Avatar component and changes formatting for CardDescription.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/McZSLgC
This commit is contained in:
marco370 2025-10-18 10:11:23 +00:00
parent 1dcb20400f
commit ce1ba6ef33
18 changed files with 10 additions and 5 deletions

View File

@ -20,7 +20,7 @@ localPort = 33035
externalPort = 3001 externalPort = 3001
[[ports]] [[ports]]
localPort = 34507 localPort = 36127
externalPort = 4200 externalPort = 4200
[[ports]] [[ports]]

BIN
after-reload.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

View File

@ -538,15 +538,20 @@ export default function Guards() {
<Avatar> <Avatar>
<AvatarImage src={guard.user?.profileImageUrl || undefined} /> <AvatarImage src={guard.user?.profileImageUrl || undefined} />
<AvatarFallback> <AvatarFallback>
{guard.user?.firstName?.[0]}{guard.user?.lastName?.[0]} {guard.firstName?.[0]}{guard.lastName?.[0]}
</AvatarFallback> </AvatarFallback>
</Avatar> </Avatar>
<div className="flex-1 min-w-0"> <div className="flex-1 min-w-0">
<CardTitle className="text-lg truncate"> <CardTitle className="text-lg truncate">
{guard.user?.firstName} {guard.user?.lastName} {guard.firstName} {guard.lastName}
</CardTitle> </CardTitle>
<CardDescription className="font-mono text-xs"> <CardDescription className="space-y-0.5">
{guard.badgeNumber} <div className="font-mono text-xs">{guard.badgeNumber}</div>
{guard.email && <div className="text-xs truncate">{guard.email}</div>}
{guard.phoneNumber && <div className="text-xs">{guard.phoneNumber}</div>}
<Badge variant="outline" className="text-xs mt-1">
{guard.location === "roccapiemonte" ? "Roccapiemonte" : guard.location === "milano" ? "Milano" : "Roma"}
</Badge>
</CardDescription> </CardDescription>
</div> </div>
<Button <Button

BIN
final_reopen_edit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
guards-nav.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
no-guard-link.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
no-login-button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

BIN
step11_toggled_switches.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
step14_after_submit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
step15_post_submit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
step4_page.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

BIN
step5_guards_nav.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
step8_add_guard_clicked.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB