feat: Add ActiveAdmin, subscription system, and UI improvements#10
Merged
Conversation
- Add ActiveAdmin with resources for Users, Tenants, Projects, Containers, ApiTokens - Add DodoPayments subscription integration with webhooks - Add subscription-related migrations and fields - Update models with display_name methods for admin interface - Update routes for admin and subscription endpoints - Add node_modules to .gitignore - Various styling and layout improvements
princetechs
pushed a commit
that referenced
this pull request
Feb 15, 2026
Root cause: IntentDetectionJob claimed a warm instance, which immediately triggered WarmPoolReplenishJob to cold-provision a replacement. This meant every visit to 'New Project' page launched 2 EC2 instances. Fix: - WarmPoolManager#claim_warm_instance! no longer triggers replenishment - Replenishment now happens in ContainerProvisionJob after successful deploy - IntentDetectionJob no longer cold-provisions when no warm instance exists (cold provisioning happens on-demand in ContainerProvisionJob instead) Flow now: 1. Visit New Project → IntentDetectionJob starts 1 warm instance (if available) 2. Deploy container → ContainerProvisionJob uses the warm instance 3. After successful deploy → WarmPoolReplenishJob provisions replacement 4. If user never deploys → IdleReaperJob stops instance after 5min (back to warm) Cleaned up: terminated idle Node #9, Node #10 is warm spare
princetechs
pushed a commit
that referenced
this pull request
Feb 15, 2026
Root cause: IntentDetectionJob claimed a warm instance, which immediately triggered WarmPoolReplenishJob to cold-provision a replacement. This meant every visit to 'New Project' page launched 2 EC2 instances. Fix: - WarmPoolManager#claim_warm_instance! no longer triggers replenishment - Replenishment now happens in ContainerProvisionJob after successful deploy - IntentDetectionJob no longer cold-provisions when no warm instance exists (cold provisioning happens on-demand in ContainerProvisionJob instead) Flow now: 1. Visit New Project → IntentDetectionJob starts 1 warm instance (if available) 2. Deploy container → ContainerProvisionJob uses the warm instance 3. After successful deploy → WarmPoolReplenishJob provisions replacement 4. If user never deploys → IdleReaperJob stops instance after 5min (back to warm) Cleaned up: terminated idle Node #9, Node #10 is warm spare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds ActiveAdmin for managing application data and integrates DodoPayments for subscription handling.
Changes
ActiveAdmin
Subscription System
Other Improvements
Migrations Required
```bash
rails db:migrate
```"