Capy couldn't review this pull request because Screen's workspace is out of credits, add credits or enable auto-reload to resume automatic reviews.
fix: make owner Salary Plans available on Free#57
First layer of the Free launch stack. Removes paid-plan gating from owner-scoped Salary Plans and Salary Batches, updates the reports interface, and retains ownership checks. Other paid capabilities remain gated.
Validation: 20 focused backend tests and 42 component/library tests passed on the stack; TypeScript passed. Live-account testing remains with Screen.
Review this layer before #58. No payment integration or deployment.
Summary by CodeRabbit
New Features
- Salary Plans are now available on Free and paid plans for authenticated Workspace owners.
- Owners can create, view, update, archive, and manage Salary Plans and batches without a paid-plan requirement.
- Salary Plans remain limited to solo Projects.
Bug Fixes
- Removed the upgrade prompt that previously blocked eligible Free-plan owners from accessing Salary Plans.
Documentation
- Updated plan-access documentation to reflect Salary Plans’ availability across all plans.
Checks
Failing1
- Failed
Added 1 commit
- fix: make owner Salary Plans available on Free63b513e
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 2c565b1c-5696-472f-84da-bef135016a9d
📥 Commits
Reviewing files that changed from the base of the PR and between 23b275bd4384c3122a538b741f9cb8749b0769db and 63b513e1e2f314691692d454b25130fb0d3eab23.
📒 Files selected for processing (11)
convex/salaryPlanAccess.test.tsconvex/salaryPlans.test.tsconvex/salaryPlans.tsconvex/workspaceSubscriptions.test.tsconvex/workspaceSubscriptions.tsdocs/APP-OVERVIEW.mdsrc/components/salary-plans-panel.tsxsrc/components/subscription-plans.test.tsxsrc/components/subscription-plans.tsxsrc/features/projects/project-access.tsxsrc/features/reports/reports-application.tsx
💤 Files with no reviewable changes (4)
- src/components/subscription-plans.tsx
- src/features/projects/project-access.tsx
- src/features/reports/reports-application.tsx
- convex/salaryPlans.ts
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.
📝 Walkthrough
Walkthrough
Salary Plans no longer require a paid plan capability. Backend operations retain authentication and ownership checks. The frontend removes capability-based gating, and documentation now describes availability on Free and paid plans.
Changes
Free Salary Plans Access
| Layer / File(s) | Summary |
|---|---|
Backend access and subscription rules convex/salaryPlans.ts, convex/workspaceSubscriptions.ts, convex/*salaryPlans*.test.ts, convex/workspaceSubscriptions.test.ts | Salary Plan reads and mutations no longer require the subscription capability. Free workspaces can create plans, and access remains owner-scoped. |
Frontend access wiring src/features/projects/project-access.tsx, src/features/reports/reports-application.tsx, src/components/salary-plans-panel.tsx, src/components/subscription-plans.tsx, src/components/subscription-plans.test.tsx | The Salary Plans capability flag and upgrade prompt are removed. Authenticated owners can use the panel. |
Salary Plans product documentation docs/APP-OVERVIEW.md | The overview lists Salary Plans as available to authenticated Workspace owners on Free and paid plans. |
Priority: ➖ Normal
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Feature
Merge Risk: ⚪ Minimal · up to 63b51
Salary Plans are consistently enabled for authenticated Free workspace owners without evidence of an unresolved correctness, security, or availability regression.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | ⚠️ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 6 files. (1 skipped: 1 … | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly and concisely describes the primary change: making owner-scoped Salary Plans available on Free plans. |
| 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. |
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 6 files. (1 skipped: 1 unsupported.)
- Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
- Commit to this branch
- Create a new PR
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.
Comment @coderabbitai help to get the list of available commands.
Deploying with
Cloudflare Workers
The latest updates on your project. Learn more about integrating Git with Workers.
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs | relay-web | 63b513e1 | Commit Preview URL Branch Preview URL | Sep 17 2026, 07:18 PM |