Skip to content

feat: add RIP tracking#20

Merged
ECWireless merged 2 commits into
mainfrom
codex/rip-tracking
Jun 14, 2026
Merged

feat: add RIP tracking#20
ECWireless merged 2 commits into
mainfrom
codex/rip-tracking

Conversation

@ECWireless

Copy link
Copy Markdown
Member

This pull request introduces a new "RIP" (Request for Improvement Proposal) feature, integrating it into the ledger and transaction classification workflows. It includes database schema changes, backend logic for creating, updating, and deleting RIPs, and UI updates to support linking ledger entries to RIPs.

Database and Backend Enhancements:

  • Added a new rips table with encrypted fields, indexes, and a foreign key from ledger_entries to support linking transactions to RIPs. Also introduced a new ledger category rip_expense.
  • Implemented server actions for creating, updating, and deleting RIPs, including validation, encryption, audit logging, and safe deletion (prevents deleting RIPs linked to ledger entries).

Transaction Classification and Validation:

User Interface Updates:

Migration and Metadata:

  • Added a migration script and updated migration metadata to track the new rips table and related schema changes. [1] [2]

Copilot AI review requested due to automatic review settings June 14, 2026 18:10
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
raidguild-accounting Ready Ready Preview, Comment Jun 14, 2026 6:19pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ECWireless, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 12 minutes and 33 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b11f851d-38b1-4a5f-afd8-f5daf452bc12

📥 Commits

Reviewing files that changed from the base of the PR and between f3baaae and 8f71fa5.

📒 Files selected for processing (11)
  • drizzle/0014_freezing_peter_quill.sql
  • drizzle/meta/0014_snapshot.json
  • drizzle/meta/_journal.json
  • src/app/admin/quarters/[id]/transactions/actions.ts
  • src/app/admin/quarters/[id]/transactions/page.tsx
  • src/app/page.tsx
  • src/app/rips/actions.ts
  • src/app/rips/page.tsx
  • src/db/schema.ts
  • src/lib/rips.ts
  • src/lib/transaction-classification.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/rip-tracking

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new “RIP” (Request for Improvement Proposal) tracking feature and integrates RIP linking into the existing ledger-entry classification flow so RIP-related spend can be tracked and surfaced in the UI.

Changes:

  • Introduces a new rips table and links ledger_entries to RIPs via ledger_entries.rip_id, plus a new ledger_category value rip_expense.
  • Adds backend helpers and server actions to create/update/delete RIPs, plus listing APIs for RIP options and RIP spend totals.
  • Updates admin transaction classification UI/logic to select and display RIP links for rip_expense, and adds a member-facing /rips page + nav entry.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/lib/transaction-classification.ts Extends classification options and views to include ripId and RIP option lists.
src/lib/rips.ts Adds RIP listing, totals aggregation, and RIP existence validation.
src/db/schema.ts Adds rips table, ledger_entries.rip_id, indexes, and rip_expense category.
src/app/rips/page.tsx Implements the member-facing RIP tracking page and UI for editing/deleting.
src/app/rips/actions.ts Adds server actions for creating/updating/deleting RIPs with validation and audit logging.
src/app/page.tsx Adds a “RIPs” navigation link for members.
src/app/admin/quarters/[id]/transactions/page.tsx Adds RIP selection to classification form and displays linked RIPs on cards.
src/app/admin/quarters/[id]/transactions/actions.ts Enforces RIP requirements for rip_expense and validates RIP availability when classifying.
drizzle/meta/0014_snapshot.json Updates Drizzle snapshot metadata for the new schema.
drizzle/meta/_journal.json Records the new migration in Drizzle’s migration journal.
drizzle/0014_freezing_peter_quill.sql Adds SQL migration for enum value, rips table, and ledger_entries.rip_id FK/index.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/rips/actions.ts Outdated
@ECWireless ECWireless merged commit 9d5464c into main Jun 14, 2026
5 checks passed
@ECWireless ECWireless deleted the codex/rip-tracking branch June 14, 2026 18:20
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