Skip to content

Merge the trending (X) tab into the homepage trending feed - #885

Merged
NielsRogge merged 1 commit into
mainfrom
claude/merge-x-trending-feed
Nov 5, 2026
Merged

NielsRogge merged 1 commit into
mainfrom
claude/merge-x-trending-feed

Conversation

@NielsRogge

@NielsRogge NielsRogge commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

This is the last step of the X like velocity rollout (#867, #871). On 2026-11-05 the user approved the lift-only X weight, and PWC_TRENDING_X_WEIGHT=1 was set in /etc/paperswithcode/trending-cron.env. The homepage trending feed now ranks papers that are viral on X, so the separate tab is removed.

Changes

  • Frontend: removed the "trending (X)" tab. /x-trending now redirects to /. Removed papersApi.xTrending and its query key.
  • Backend: removed GET /papers/x-trending and XTrendingService.feed(), along with the feed's tests. The user chose to drop this public endpoint because it had only existed for a few days.
  • Kept: the admin PUT /papers/x-trending/{shared_on} and the paper_x_trending table, which the "AI Papers on X" sheet routine and curation priority still use. /x-trending stays a known SPA route, so the redirect is served.

Validation

  • pytest backend/tests/paper/test_x_trending.py backend/tests/test_search_discovery.py backend/tests/curation/test_hf_daily_priority.py: 91 passed.
  • vitest run src/views/FollowingView.test.tsx: 28 passed. tsc --noEmit is clean. npm run lint reports 0 errors.
  • ruff check / ruff format are clean.

🤖 Generated with Claude Code


Note

Low Risk
Mostly UI and API cleanup after ranking moved; admin X-trending ingestion is unchanged. Only risk is any short-lived client still calling the removed GET endpoint.

Overview
Removes the separate trending (X) homepage tab now that X engagement is folded into the main trending ranking (per the X like-velocity rollout).

Frontend: Drops the tab and papersApi.xTrending; the homepage always loads papersApi.list with order_by: trending. /x-trending redirects to / so old links still work.

Backend: Deletes public GET /papers/x-trending and XTrendingService.feed(), plus feed-only tests. Admin PUT /papers/x-trending/{shared_on}, the paper_x_trending table, and day-replacement logic stay for the "AI Papers on X" sheet import and curation.

Reviewed by Cursor Bugbot for commit 1c3cfe4. Bugbot is set up for automated code reviews on this repo. Configure here.

X like velocity now lifts papers in the main trending score (#867, #871,
PWC_TRENDING_X_WEIGHT=1 since 2026-11-05), so the separate tab is gone:
/x-trending redirects to /, and GET /papers/x-trending,
XTrendingService.feed() and papersApi.xTrending are removed. The admin
PUT /papers/x-trending/{day} and the paper_x_trending table stay for the
sheet routine and curation priority.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NielsRogge
NielsRogge merged commit d7e7c1c into main Nov 5, 2026
5 checks passed
@NielsRogge
NielsRogge deleted the claude/merge-x-trending-feed branch November 5, 2026 08:25
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