Skip to content

release: sync test → main#1713

Merged
sweetmantech merged 1 commit into
mainfrom
test
Apr 27, 2026
Merged

release: sync test → main#1713
sweetmantech merged 1 commit into
mainfrom
test

Conversation

@sweetmantech
Copy link
Copy Markdown
Collaborator

@sweetmantech sweetmantech commented Apr 27, 2026

Promotes test to main.

Included

🤖 Generated with Claude Code


Summary by cubic

Remove unused API routes and the orphaned UI/libs they depended on to shrink the codebase and reduce attack surface. No user-facing changes.

  • Refactors
    • Removed routes: /api/agentkit/get, /api/funnel_analysis, /api/get_artists_by_socials, /api/get_running_agent, /api/ipfs, /api/stripe/session/checked, /api/stripe/session/list, /api/upload/pfp, /api/workspace/create
    • Deleted orphaned code: SocialSharing UI, IPFS helpers, Stripe session fetcher, funnel analysis helpers, and agent lookup utilities

Written for commit 7372f17. Summary will update on new commits. Review in cubic

* chore(chat): remove four dead api routes

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* chore(chat): remove six dead api routes and orphan code

- /api/upload/pfp, /api/stripe/session/list, /api/get_running_agent,
  /api/get_artists_by_socials, /api/ipfs, /api/funnel_analysis
- orphan libs/components only reachable from these routes:
  lib/uploadPfp, lib/uploadPfpToIpfs, lib/stripe/getSession,
  lib/getRunningAgent, lib/getArtistsByAgent, lib/ipfs/*,
  hooks/useShareHeatMap, components/SocialSharing/,
  lib/getFunnelAnalysis, lib/getFunnelChatContext, lib/chat/getFunnelAnalysis

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 27, 2026

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

Project Deployment Actions Updated (UTC)
recoup-chat Ready Ready Preview Apr 27, 2026 5:44pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 27, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: dc325ad7-be21-4d4d-bed5-dd86a9e34408

📥 Commits

Reviewing files that changed from the base of the PR and between 0285f40 and 7372f17.

📒 Files selected for processing (25)
  • app/api/agentkit/get/route.ts
  • app/api/funnel_analysis/route.ts
  • app/api/get_artists_by_socials/route.tsx
  • app/api/get_running_agent/route.ts
  • app/api/ipfs/route.tsx
  • app/api/stripe/session/checked/route.ts
  • app/api/stripe/session/list/route.ts
  • app/api/upload/pfp/route.tsx
  • app/api/workspace/create/route.ts
  • components/SocialSharing/SocialSharing.tsx
  • components/SocialSharing/index.tsx
  • hooks/useShareHeatMap.tsx
  • lib/chat/getFunnelAnalysis.tsx
  • lib/getArtistsByAgent.tsx
  • lib/getFunnelAnalysis.tsx
  • lib/getFunnelChatContext.tsx
  • lib/getRunningAgent.tsx
  • lib/ipfs/getIpfsLink.tsx
  • lib/ipfs/hash.ts
  • lib/ipfs/saveFile.tsx
  • lib/ipfs/upload.ts
  • lib/ipfs/uploadToIpfs.tsx
  • lib/stripe/getSession.tsx
  • lib/uploadPfp.tsx
  • lib/uploadPfpToIpfs.tsx
💤 Files with no reviewable changes (25)
  • lib/getFunnelAnalysis.tsx
  • lib/uploadPfp.tsx
  • lib/getArtistsByAgent.tsx
  • components/SocialSharing/index.tsx
  • lib/getFunnelChatContext.tsx
  • lib/getRunningAgent.tsx
  • lib/ipfs/hash.ts
  • lib/ipfs/saveFile.tsx
  • components/SocialSharing/SocialSharing.tsx
  • lib/ipfs/upload.ts
  • lib/uploadPfpToIpfs.tsx
  • hooks/useShareHeatMap.tsx
  • app/api/stripe/session/list/route.ts
  • lib/chat/getFunnelAnalysis.tsx
  • app/api/get_running_agent/route.ts
  • app/api/upload/pfp/route.tsx
  • app/api/workspace/create/route.ts
  • app/api/funnel_analysis/route.ts
  • app/api/stripe/session/checked/route.ts
  • app/api/ipfs/route.tsx
  • lib/ipfs/getIpfsLink.tsx
  • app/api/get_artists_by_socials/route.tsx
  • app/api/agentkit/get/route.ts
  • lib/stripe/getSession.tsx
  • lib/ipfs/uploadToIpfs.tsx

📝 Walkthrough

Walkthrough

This PR removes a substantial set of deprecated API routes, utility functions, components, and hooks spanning IPFS integration, Stripe session management, funnel analysis features, social sharing heatmap functionality, profile picture uploads, and various agent-related endpoints. All associated route caching configurations are also removed.

Changes

Cohort / File(s) Summary
IPFS Integration
app/api/ipfs/route.tsx, lib/ipfs/getIpfsLink.tsx, lib/ipfs/hash.ts, lib/ipfs/saveFile.tsx, lib/ipfs/upload.ts, lib/ipfs/uploadToIpfs.tsx
Removes entire IPFS upload/pinning workflow including Pinata integration, file hashing, gateway resolution, caching layer, and API endpoint for multipart file uploads.
Stripe Session Management
app/api/stripe/session/checked/route.ts, app/api/stripe/session/list/route.ts, lib/stripe/getSession.tsx
Eliminates Stripe session list/update endpoints and client-side session fetching utility.
Funnel Analysis Features
app/api/funnel_analysis/route.ts, lib/chat/getFunnelAnalysis.tsx, lib/getFunnelAnalysis.tsx, lib/getFunnelChatContext.tsx
Removes funnel analytics API route, Supabase query logic, and chat context aggregation utilities.
Profile Picture Upload
app/api/upload/pfp/route.tsx, lib/uploadPfp.tsx, lib/uploadPfpToIpfs.tsx
Deletes profile picture upload endpoint and IPFS-backed avatar upload utilities.
Agent-Related APIs
app/api/agentkit/get/route.ts, app/api/get_artists_by_socials/route.tsx, app/api/get_running_agent/route.ts, lib/getArtistsByAgent.tsx, lib/getRunningAgent.tsx
Removes agent fetch, running agent queries, and artist resolution endpoints/utilities.
Social Sharing Heatmap
components/SocialSharing/SocialSharing.tsx, components/SocialSharing/index.tsx, hooks/useShareHeatMap.tsx
Eliminates heatmap visualization component, tooltip tracking, and export/sharing logic (PNG download, IPFS tweet sharing).
Workspace Management
app/api/workspace/create/route.ts
Removes deprecated workspace creation endpoint with proxy forwarding and deprecation headers.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Poem

🗑️ Old routes and hooks now fade away,
IPFS uploads, heatmaps, Stripe's relay,
Agent whispers, funnels dry,
Clean code waves—deprecated goodbye.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Solid & Clean Code ⚠️ Warning Orphaned lib/ipfs.tsx file remains with zero references after IPFS directory deletion, violating DRY and clean code principles. Remove lib/ipfs.tsx and verify no uploadToIpfs references exist, then update commit message to reflect complete IPFS infrastructure removal.
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 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.

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 25 files

Confidence score: 5/5

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

Requires human review: Deleting 10 API routes and associated UI/logic is a significant structural change. Requires human verification that these endpoints are truly unused across all clients and integrations.

@sweetmantech sweetmantech merged commit 19f2bca into main Apr 27, 2026
4 checks passed
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