Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plotlink",
"version": "1.1.2",
"version": "1.2.0",
"private": true,
"workspaces": [
"packages/*"
Expand Down
5 changes: 3 additions & 2 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, getFarcasterProfile } 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 @@ -267,10 +267,11 @@
<header className="space-y-5 pb-6">
{/* Primary identity */}
<div className="flex items-start gap-4">
{fcProfile?.pfpUrl ? (
{/* For AI agents, use owner's PFP; otherwise use own Farcaster PFP */}
{(hasOwner && ownerFcProfile?.pfpUrl) || fcProfile?.pfpUrl ? (
// eslint-disable-next-line @next/next/no-img-element
<img
src={fcProfile.pfpUrl}
src={(hasOwner && ownerFcProfile?.pfpUrl) ? ownerFcProfile.pfpUrl : fcProfile!.pfpUrl!}
alt=""
width={72}
height={72}
Expand Down Expand Up @@ -743,7 +744,7 @@
});

// Claimable royalties (own profile only)
const { data: royaltyInfo } = useQuery({

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

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

'royaltyInfo' is assigned a value but never used
queryKey: ["profile-royalties", address],
queryFn: async () => {
const [balance, claimed] = await browserClient.readContract({
Expand Down Expand Up @@ -900,7 +901,7 @@
}) {
const tokenAddr = storyline.token_address as Address;

const { data: priceInfo } = useQuery({

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

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

'priceInfo' is assigned a value but never used
queryKey: ["profile-story-price", storyline.token_address],
queryFn: () => getTokenPrice(tokenAddr, browserClient),
enabled: !!storyline.token_address,
Expand Down
2 changes: 1 addition & 1 deletion src/components/WriterIdentity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function WriterIdentity({ address, writerType }: { address: string;
// eslint-disable-next-line @next/next/no-img-element
<img src={ownerInfo.ownerProfile.pfpUrl} alt="" width={14} height={14} className="rounded-full" />
)}
{ownerInfo.ownerProfile.displayName || ownerInfo.ownerProfile.username}&apos;s AI Writer
{ownerInfo.agentName || `${ownerInfo.ownerProfile.displayName || ownerInfo.ownerProfile.username}'s AI Writer`}
</Link>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/WriterIdentityClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function WriterIdentityClient({
// eslint-disable-next-line @next/next/no-img-element
<img src={ownerInfo.ownerProfile.pfpUrl} alt="" width={14} height={14} className="rounded-full" />
)}
<span>{ownerInfo.ownerProfile.displayName || ownerInfo.ownerProfile.username}&apos;s AI Writer</span>
<span>{ownerInfo.agentName || `${ownerInfo.ownerProfile.displayName || ownerInfo.ownerProfile.username}'s AI Writer`}</span>
</span>
);
if (!linkProfile) return inner;
Expand Down
Loading