fix(desktop): remove paywall gate on Pull Requests sidebar nav
Merged
AV
3mo ago+20+20+01234567890123456789-24-24-01234567890123456789
Summary
- Removed the
gateFeature(GATED_FEATURES.TASKS, ...)wrapper fromhandlePullRequestsClickin both sidebar headers (DashboardSidebarHeader.tsx,WorkspaceSidebarHeader.tsx), so clicking Pull Requests navigates directly instead of hitting the paywall dialog. - The
/pull-requestsroute itself had no gate to begin with (nobeforeLoadcheck), and was already reachable ungated via direct URL, deep link, or the legacy/tasks?type=prsredirect — this just makes the sidebar entry points consistent with that. - Tasks navigation is untouched and remains gated.
Test plan
-
tsc --noEmitpasses for both changed files - Manually verify clicking "Pull requests" in both the dashboard and workspace sidebars (collapsed and expanded) navigates straight to
/pull-requestson a free-tier account, with no upgrade dialog
https://claude.ai/code/session_01Tr469nj8DGqiwrCXyVNU3N
Summary by cubic
Removes the Tasks paywall gate from the Pull requests sidebar action so clicks navigate directly to /pull-requests. Previously, sidebar clicks showed an upgrade dialog on free plans; now they go straight to the already-ungated route, aligning sidebar behavior with direct links.
Review notes
- Updated
DashboardSidebarHeader.tsxandWorkspaceSidebarHeader.tsxto replacegateFeature(GATED_FEATURES.TASKS, ...)with a directnavigatethat preserves existing filters viapullRequestsSearchFromFilters. - Verify on a free plan: clicking Pull requests in both sidebars (collapsed and expanded) routes to
/pull-requestswithout a paywall; filter state persists. - Tasks navigation remains gated; no route guards or feature flags changed.
Summary by CodeRabbit
- New Features
- Pull Requests navigation is now available directly from the dashboard and workspace sidebars without requiring the Tasks feature.
- Existing pull-request filters, including search, project, author, review status, closed items, and merged items, continue to be restored when opening the Pull Requests view.