Skip to content

feat(campaigns): add Campaigns to nav and show sibling campaigns in detail sidebar - #27

Merged
anujeet98 merged 5 commits into
mainfrom
feat/campaigns-in-campaign-detail-sidebar
Aug 6, 2026
Merged

feat(campaigns): add Campaigns to nav and show sibling campaigns in detail sidebar#27
anujeet98 merged 5 commits into
mainfrom
feat/campaigns-in-campaign-detail-sidebar

Conversation

@Rishavraaj

Copy link
Copy Markdown
Member

Summary

Two related improvements to campaign visibility:

  1. Sidebar navigation — Campaigns link added between ICPs and Tasks using MegaphoneIcon
  2. Campaign detail sidebar — When a campaign belongs to an ICP, an "Other Campaigns" section lists sibling campaigns (name + status badge + link) so users can switch between them without going back

Changes

  • application-layout.tsx — added Campaigns nav item with MegaphoneIcon
  • CampaignDetail.tsx — added IcpCampaignsList component rendered in the detail sidebar when icpProfileId is present

Test plan

  • Campaigns appears in sidebar nav and navigates to /campaigns
  • Campaign detail page with an ICP shows "Other Campaigns" section in sidebar
  • Campaign with no ICP does not show the section
  • Clicking a sibling campaign navigates correctly
  • Active/Inactive badge reflects correct status

Rishavraaj and others added 5 commits August 5, 2026 12:50
Adds an "Other Campaigns" section to the sidebar listing sibling
campaigns under the same ICP profile, each with name, status badge,
and link to their detail page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Row click was passing Apollo's MongoDB string ID to the route that expects
a Zuko integer DB id, causing parseInt to return NaN and the campaign
lookup to fail. Now fetches all Zuko campaigns and maps providerSequenceId
→ zuko.id before navigating.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…oint, remove q_active filter

- Apollo MCP: check response.ok before parsing SSE to handle 429s properly
- Add GET /integrations/apollo/campaigns to list all Zuko campaigns
- Remove q_active: false filter so all sequences (active + inactive) are returned
- campaigns.repository findAll: include icpProfile relation
- query-options: add staleTime to getCampaignsInfinite, add getAllZukoCampaigns

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anujeet98
anujeet98 merged commit 2325d71 into main Aug 6, 2026
1 check passed
@anujeet98
anujeet98 deleted the feat/campaigns-in-campaign-detail-sidebar branch August 6, 2026 10:38
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