Skip to content

feat: event card avatar click handler#450

Open
braianj wants to merge 1 commit into
masterfrom
feat/event-card-avatar-click
Open

feat: event card avatar click handler#450
braianj wants to merge 1 commit into
masterfrom
feat/event-card-avatar-click

Conversation

@braianj

@braianj braianj commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

adds an optional onAvatarClick handler to EventCard.

today the creator row is a hard link to the legacy decentraland.org/profile/accounts/<addr> URL and it sits inside the card's action area, so clicking the avatar both navigated to the legacy profile AND fired the card-level jump-in in a second tab. when onAvatarClick is provided the row renders as a button (preventDefault + stopPropagation) and delegates navigation to the consumer — sites uses it to open its native /profile/<addr> route. without the prop the behavior is unchanged (backward compatible, optional with default).

test plan

  • storybook EventCard: without onAvatarClick, the creator link still navigates to the legacy profile URL
  • with onAvatarClick: clicking the creator name fires the handler only — no second tab, no card-level jump-in
  • keyboard: the creator row is focusable (role="button", tabIndex=0) when the handler is provided

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ui2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 412bd86
Status: ✅  Deploy successful!
Preview URL: https://4065420d.ui2-423.pages.dev
Branch Preview URL: https://feat-event-card-avatar-click.ui2-423.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant