fix: make owner Salary Plans available on Free#57

merged1
main
codex/free-salary-plans
openedSep 17, 2026bySScreen
View on GitHubTwo-way sync enabledPR last imported Oct 22, 2026

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

1 failing · 4 successful
Some checks were not successful

Failing1

63b513e

Added 1 commit

  • fix: make owner Salary Plans available on Free63b513e
Synced from GitHub

Review Change StackReview Change Stack

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.ts
  • convex/salaryPlans.test.ts
  • convex/salaryPlans.ts
  • convex/workspaceSubscriptions.test.ts
  • convex/workspaceSubscriptions.ts
  • docs/APP-OVERVIEW.md
  • src/components/salary-plans-panel.tsx
  • src/components/subscription-plans.test.tsx
  • src/components/subscription-plans.tsx
  • src/features/projects/project-access.tsx
  • src/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 nameStatusExplanationResolution
Docstring Coverage⚠️ WarningDocstring 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 nameStatusExplanation
Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
Title check✅ PassedThe title clearly and concisely describes the primary change: making owner-scoped Salary Plans available on Free plans.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck 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.

❤️ Share

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