Uh oh!
There was an error while loading. Please reload this page.
improvement(subscriptions): added log retention cron, enterprise plan & refactored subscriptions logic - #357
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
PR Summary
This PR significantly refactors the subscription and waitlist management systems, adding enterprise plan support and log retention features.
- Added new
workspace_invitationtable and subscription metadata for enterprise plans in/db/migrations/0035_adorable_loa.sql - Added chat execution tracking with new
totalChatExecutionsfield in user stats and related API endpoints - Introduced enterprise subscription management with per-seat allowances and custom limits in
/lib/subscription/utils.ts - Removed waitlist management UI components and API routes, suggesting a major restructuring of this functionality
- Added daily cron job in
vercel.jsonto clean up logs for free users
The changes appear well-structured but warrant careful testing of the waitlist functionality migration and enterprise plan integration.
41 file(s) reviewed, 21 comment(s)
Edit PR Review Bot Settings | Greptile
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…red subscriptions logic & ui
2baab52 to
4d38462Compare
Description
Added log retention cron, enterprise plan & refactored subscriptions logic
Type of change
How Has This Been Tested?
Tested manually, ensured that the plan can be issued and the limits adjusted accordingly
Checklist:
npm test)Security Considerations: