Skip to content

Promote test → main: segments-surface cleanup (#1685)#1689

Merged
sweetmantech merged 2 commits into
mainfrom
test
Apr 17, 2026
Merged

Promote test → main: segments-surface cleanup (#1685)#1689
sweetmantech merged 2 commits into
mainfrom
test

Conversation

@sweetmantech
Copy link
Copy Markdown
Collaborator

@sweetmantech sweetmantech commented Apr 17, 2026

Promotes chat PR #1685 (remove dead segments surface) from test to main.

CI on #1685: unit tests ✅, cubic reviewer ✅

🤖 Generated with Claude Code


Summary by cubic

Remove the deprecated Segments surface across the app, including UI, APIs, hooks, Supabase helpers, and chat tool integrations. Cleans up navigation and tool registries to avoid dead links and unused code.

  • Refactors
    • Deleted /segments page and segment API routes.
    • Removed Segments UI components and chat renderers for segment fans.
    • Dropped segment-related hooks, types, and assets (including public/segment.svg).
    • Removed Supabase helpers for segments and fan_segments.
    • Unregistered MCP tools create_segments, get_artist_segments, and get_segment_fans; pruned related logic in ToolComponents and getToolsInfo.
    • Removed "Fans" sidebar/nav entries and related menu wiring.

Written for commit 49f8c89. Summary will update on new commits.

arpitgupta1214 and others added 2 commits April 17, 2026 18:23
Deletes the remaining segment list/create routes, the Segments UI
components, segment-fans renderers, segment hooks, lib/segments,
chat-segment lookup, segment MCP/AI tool wrappers, sidebar segment
nav entries, and segment-related supabase helpers. The Segments
feature is being removed entirely; the earlier migration plan is
abandoned. Follows #1678 (segment report removal). Part of
SEGMENTS_SURFACE_REMOVAL_PLAN.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recoup-chat Building Building Preview Apr 17, 2026 8:09pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 17, 2026

Warning

Rate limit exceeded

@sweetmantech has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 37 minutes and 32 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 37 minutes and 32 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a6b07c66-0dc7-4165-8b97-58ea1872b8d5

📥 Commits

Reviewing files that changed from the base of the PR and between 8695996 and 49f8c89.

⛔ Files ignored due to path filters (2)
  • public/segment.svg is excluded by !**/*.svg and included by none
  • types/fans.ts is excluded by none and included by none
📒 Files selected for processing (49)
  • app/api/segments/create/route.ts
  • app/api/segments/route.ts
  • app/segments/page.tsx
  • components/Segments/FanProfileHover.tsx
  • components/Segments/NoSegmentsFound.tsx
  • components/Segments/SegmentButton.tsx
  • components/Segments/SegmentFanCircles.tsx
  • components/Segments/Segments.tsx
  • components/Segments/SegmentsSkeleton.tsx
  • components/Segments/SegmentsWrapper.tsx
  • components/SideMenu/SideMenu.tsx
  • components/Sidebar/FanGroupNavItem.tsx
  • components/Sidebar/Menu.tsx
  • components/Sidebar/MiniMenu.tsx
  • components/Sidebar/SecondaryNav.tsx
  • components/VercelChat/ToolComponents.tsx
  • components/VercelChat/tools/segment-fans/EmptyState.tsx
  • components/VercelChat/tools/segment-fans/ErrorState.tsx
  • components/VercelChat/tools/segment-fans/FanCard.tsx
  • components/VercelChat/tools/segment-fans/GetSegmentFansResult.tsx
  • components/VercelChat/tools/segment-fans/GetSegmentFansResultSkeleton.tsx
  • components/VercelChat/tools/segment-fans/SegmentHeader.tsx
  • components/VercelChat/tools/segment-fans/animations.ts
  • hooks/useArtistSegments.ts
  • hooks/useChatSegment.ts
  • hooks/useCreateSegments.ts
  • hooks/useFansCSVExport.tsx
  • lib/agent/getSegments.tsx
  • lib/chats/getChatSegment.ts
  • lib/getFanSegments.tsx
  • lib/getFunnelReport.tsx
  • lib/segments/createSegmentResponses.ts
  • lib/segments/createSegments.ts
  • lib/segments/generateSegments.ts
  • lib/segments/getAnalysisPrompt.ts
  • lib/segments/getFanSegmentsToInsert.ts
  • lib/supabase/artist_segments/insertArtistSegments.ts
  • lib/supabase/fan_segments/insertFanSegments.ts
  • lib/supabase/fan_segments/selectFanSegments.ts
  • lib/supabase/getArtistSegmentNames.ts
  • lib/supabase/getArtistSegments.ts
  • lib/supabase/getSegmentCounts.ts
  • lib/supabase/segments/deleteSegments.ts
  • lib/supabase/segments/insertSegments.ts
  • lib/tools/createSegments.ts
  • lib/tools/getArtistSegments.ts
  • lib/tools/getMcpTools.ts
  • lib/tools/getSegmentFans.ts
  • lib/utils/getToolsInfo.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sweetmantech sweetmantech merged commit 1bd43d8 into main Apr 17, 2026
2 of 3 checks passed
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 51 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Large-scale deletion of a feature (Segments) across UI, API, and tool registries (51 files). High impact changes like this require human verification of the removal process.

Note: This PR contains a large number of files. During the trial, cubic reviews up to 50 files per PR. Paid plans get a higher limit.

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