Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(web): resolve agents/page.tsx merge conflict with dev (avatar upload feature)
Naiyuan Qing1e4cd346effa
diff --cc apps/web/app/(dashboard)/agents/page.tsxindex 0ab927a6af,e87934a8c1..576e5246bf--- a/apps/web/app/(dashboard)/agents/page.tsx+++ b/apps/web/app/(dashboard)/agents/page.tsx@@@ -74,7 -75,7 +75,8 @@@ import { useAuthStore } from "@/featureimport { useWorkspaceStore } from "@/features/workspace";import { useRuntimeStore } from "@/features/runtimes";import { useIssueStore } from "@/features/issues";+import { ActorAvatar } from "@/components/common/actor-avatar";+ import { useFileUpload } from "@/shared/hooks/use-file-upload";// ---------------------------------------------------------------------------@@@ -1191,6 -1222,47 +1209,37 @@@ function SettingsTab(return (<div className="max-w-lg space-y-6">+ <div>+ <Label className="text-xs text-muted-foreground">Avatar</Label>+ <div className="mt-1.5 flex items-center gap-4">+ <button+ type="button"+ className="group relative h-16 w-16 shrink-0 rounded-full bg-muted overflow-hidden focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ onClick={() => fileInputRef.current?.click()}+ disabled={uploading}+ >- {agent.avatar_url ? (- <img- src={agent.avatar_url}- alt={agent.name}- className="h-full w-full object-cover"- />- ) : (- <span className="flex h-full w-full items-center justify-center text-lg font-semibold text-muted-foreground">- {getInitials(agent.name)}- </span>- )}++ <ActorAvatar actorType="agent" actorId={agent.id} size={64} className="rounded-none" />+ <div className="absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover:opacity-100">+ {uploading ? (+ <Loader2 className="h-5 w-5 animate-spin text-white" />+ ) : (+ <Camera className="h-5 w-5 text-white" />+ )}+ </div>+ </button>+ <input+ ref={fileInputRef}+ type="file"+ accept="image/*"+ className="hidden"+ onChange={handleAvatarUpload}+ />+ <div className="text-xs text-muted-foreground">+ Click to upload avatar+ </div>+ </div>+ </div>+<div><Label className="text-xs text-muted-foreground">Name</Label><Input