From a19c1cbddb6fd20f89089d45f86850baba8003df Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Sat, 5 Dec 2026 13:07:30 -0800 Subject: [PATCH 1/2] Match the team handle field to the form's input size Co-Authored-By: Claude Opus 5.5 --- src/components/product-listing-form.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/product-listing-form.tsx b/src/components/product-listing-form.tsx index 136bf91..862fa03 100644 --- a/src/components/product-listing-form.tsx +++ b/src/components/product-listing-form.tsx @@ -1955,7 +1955,6 @@ export function ProductListingForm({
Date: Sat, 5 Dec 2026 13:13:24 -0800 Subject: [PATCH 2/2] Give team members in the sidebar a role subtitle and larger avatar Co-Authored-By: Claude Opus 5.5 --- .../shelf/listing/ListingTeamRow.tsx | 94 ++++++++++++------- 1 file changed, 62 insertions(+), 32 deletions(-) diff --git a/src/components/shelf/listing/ListingTeamRow.tsx b/src/components/shelf/listing/ListingTeamRow.tsx index 04a7037..bc59024 100644 --- a/src/components/shelf/listing/ListingTeamRow.tsx +++ b/src/components/shelf/listing/ListingTeamRow.tsx @@ -6,27 +6,45 @@ import type { SnapshotTeamMember } from "../../../lib/listing-page-snapshot.type import { animationDuration } from "../../../design-system/theme/animations.stylex"; import { uiColor } from "../../../design-system/theme/color.stylex"; +import { fontWeight } from "../../../design-system/theme/typography.stylex"; import { PersonAvatar } from "../account/PersonAvatar"; import { DetailRow } from "./ListingParts"; const styles = stylex.create({ + list: { + margin: 0, + padding: 0, + listStyle: "none", + display: "flex", + flexBasis: "100%", + flexDirection: "column", + rowGap: 12, + minWidth: 0, + }, member: { - paddingBlock: 2, alignItems: "center", - columnGap: 8, + columnGap: 10, + display: "flex", + minWidth: 0, + }, + text: { display: "flex", + flexDirection: "column", + rowGap: 1, minWidth: 0, }, - link: { + name: { borderRadius: 2, overflow: "hidden", color: uiColor.text2, + fontWeight: fontWeight.medium, + lineHeight: 1.3, outlineColor: uiColor.text2, outlineOffset: 2, outlineStyle: { default: "none", ":focus-visible": "solid" }, outlineWidth: 2, textDecorationColor: { - default: uiColor.border2, + default: "transparent", ":hover": uiColor.text2, }, textDecorationLine: "underline", @@ -35,11 +53,14 @@ const styles = stylex.create({ transitionDuration: animationDuration.default, transitionProperty: "text-decoration-color", whiteSpace: "nowrap", - minWidth: 0, }, - role: { + subtitle: { + overflow: "hidden", color: uiColor.text1, - flexShrink: 0, + fontSize: 13, + lineHeight: 1.3, + textOverflow: "ellipsis", + whiteSpace: "nowrap", }, }); @@ -48,10 +69,10 @@ function validHandle(handle: string | null | undefined): string | null { } /** - * Sidebar "Team" row: the people behind the listing, each linking to their - * at-store profile. Order and roles come from the record; names and avatars - * from the page snapshot (a member added since the last snapshot still - * renders, just without a name or avatar). + * Sidebar "Team" row: the people behind the listing, each with their role as + * a subtitle and linking to their at-store profile. Order and roles come from + * the record; names and avatars from the page snapshot (a member added since + * the last snapshot still renders, just without a name or avatar). */ export function ListingTeamRow({ team, @@ -64,27 +85,36 @@ export function ListingTeamRow({ const byDid = new Map((profiles ?? []).map((p) => [p.did, p])); return ( - - {team.map((member) => { - const profile = byDid.get(member.did); - const handle = validHandle(profile?.handle); - const name = - profile?.displayName?.trim() || (handle ? `@${handle}` : member.did); - const role = member.role?.trim(); - return ( - - - - {name} - - {role ? {role} : null} - - ); - })} + +
    + {team.map((member) => { + const profile = byDid.get(member.did); + const handle = validHandle(profile?.handle); + const handleLabel = handle ? `@${handle}` : null; + const name = + profile?.displayName?.trim() || handleLabel || member.did; + // Role when given; otherwise the handle, unless it is already the name. + const subtitle = + member.role?.trim() || (name === handleLabel ? null : handleLabel); + return ( +
  • + + + + {name} + + {subtitle ? ( + {subtitle} + ) : null} + +
  • + ); + })} +
); }