Skip to content

feat(campaigns): show ICP profile name in campaign detail sidebar - #28

Merged
anujeet98 merged 1 commit into
mainfrom
feat/icp-profile-name-in-campaign-sidebar
Aug 7, 2026
Merged

feat(campaigns): show ICP profile name in campaign detail sidebar#28
anujeet98 merged 1 commit into
mainfrom
feat/icp-profile-name-in-campaign-sidebar

Conversation

@Rishavraaj

Copy link
Copy Markdown
Member

Summary

  • Campaign detail sidebar previously showed a generic "View ICP →" link
  • Now shows the actual ICP profile name as a clickable link to the ICP detail page
  • Falls back to ICP #<id> if name is unavailable

Changes

libs/sales

  • campaigns.repository.ts: findById now includes icpProfile { id, name } relation

apps/web

  • CampaignDetail.tsx: sidebar ICP Profile section renders campaign.icpProfile?.name instead of hardcoded "View ICP →"

Test plan

  • Open a campaign linked to an ICP profile → sidebar shows ICP name as link
  • Click the name → navigates to ICP detail page
  • Campaign with no ICP profile → ICP Profile section hidden (unchanged)

🤖 Generated with Claude Code

…debar

findById now includes icpProfile relation so the name is available.
Sidebar renders the profile name as a link to the ICP detail page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anujeet98
anujeet98 merged commit c58015c into main Aug 7, 2026
1 check passed
@anujeet98
anujeet98 deleted the feat/icp-profile-name-in-campaign-sidebar branch August 7, 2026 11:41
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.

2 participants