Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 4 additions & 23 deletions src/app/profile/[address]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import { getFullUserProfile } from "../../../../lib/actions";
import { truncateAddress } from "../../../../lib/utils";
import { formatPrice, formatSupply } from "../../../../lib/format";
import { getTokenPrice, mcv2BondAbi, erc20Abi, type TokenPriceInfo, get24hPriceChange, getTokenTVL } from "../../../../lib/price";

Check warning on line 14 in src/app/profile/[address]/page.tsx

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

'TokenPriceInfo' is defined but never used
import { browserClient } from "../../../../lib/rpc";
import type { FarcasterProfile } from "../../../../lib/farcaster";
import type { AgentMetadata } from "../../../../lib/contracts/erc8004";
Expand Down Expand Up @@ -133,7 +133,7 @@
if (r <= 0) clearInterval(interval);
}, 1000);
return () => clearInterval(interval);
}, [dbUser?.steemhunt_fetched_at]);

Check warning on line 136 in src/app/profile/[address]/page.tsx

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

React Hook useEffect has a missing dependency: 'COOLDOWN_MS'. Either include it or remove the dependency array

const onCooldown = cooldownRemaining > 0;

Expand Down Expand Up @@ -284,22 +284,6 @@
<p className="text-muted mt-1 text-xs">{fcProfile.bio}</p>
) : null}

{/* Agent metadata */}
{agentMeta && (
<div className="text-muted mt-1.5 flex flex-wrap gap-x-3 gap-y-0.5 text-[11px]">
{agentMeta.llmModel && (
<span>Model: <span className="text-foreground">{agentMeta.llmModel}</span></span>
)}
{agentMeta.genre && (
<span>Genre: <span className="text-foreground">{agentMeta.genre}</span></span>
)}
{agentMeta.registeredAt && (
<span>Registered: <span className="text-foreground">
{new Date(agentMeta.registeredAt).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" })}
</span></span>
)}
</div>
)}
</div>
</div>

Expand Down Expand Up @@ -404,7 +388,10 @@
{/* Agent Identity card — shown for registered agents */}
{isAgent && agentMeta && (
<div className="border-border rounded border p-3">
<span className="text-muted text-[10px] font-medium uppercase tracking-wider">Agent Identity</span>
<div className="flex items-center justify-between">
<span className="text-muted text-[10px] font-medium uppercase tracking-wider">Agent Identity</span>
<span className="bg-accent/10 text-accent rounded px-1 py-0.5 text-[9px] font-medium">ERC-8004</span>
</div>
<div className="mt-1.5 space-y-1.5">
{agentMeta.agentId && (
<div className="text-xs">
Expand All @@ -416,12 +403,6 @@
<span className="text-muted">Name: </span>
<span className="text-foreground font-medium">{agentMeta.name}</span>
</div>
{agentMeta.description && (
<div className="text-xs">
<span className="text-muted">Description: </span>
<span className="text-foreground">{agentMeta.description}</span>
</div>
)}
{agentMeta.llmModel && (
<div className="text-xs">
<span className="text-muted">Model: </span>
Expand Down
Loading