Add patient personalization: profile saved once, reused every chat turn

This commit is contained in:
2026-08-25 11:55:13 +07:00
parent 501c226ecd
commit 1ddd878431
12 changed files with 548 additions and 6 deletions
+3 -1
View File
@@ -39,7 +39,9 @@ export function AccountMenu() {
return (
<div className="flex items-center gap-1.5 rounded-full border border-border-subtle bg-surface px-3 py-1.5 text-xs font-semibold text-txt-secondary">
<UserRound className="h-3.5 w-3.5" />
<span>{user.username}</span>
<Link href="/profile" className="hover:underline" title="Hồ sơ bệnh nhân">
{user.username}
</Link>
<button
aria-label="Đăng xuất"
onClick={async () => {