billing hooks, channel stats, trained-videos persistence, and stats tooling#148
Open
GauravOP-03 wants to merge 7 commits intoscriptaiapp:mainfrom
Open
billing hooks, channel stats, trained-videos persistence, and stats tooling#148GauravOP-03 wants to merge 7 commits intoscriptaiapp:mainfrom
GauravOP-03 wants to merge 7 commits intoscriptaiapp:mainfrom
Conversation
…ema to resue on frontend as well as backend
…FileSize, formatTime)
…tarting AI training
Contributor
|
@GauravOP-03 is attempting to deploy a commit to the afrin127329's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
📝 Description
Extend the web app with billing and channel stats hooks, stats formatting utilities, and trained-videos persistence. Integrate shared
@repo/validationtypes for billing and channel stats, persist trained videos before AI training, and update styles/config. Only modified and new files are included; no unrelated changes.🎯 Type of Change
🧪 Testing
Describe briefly:
forceSynctrue/false).📋 Checklist
🔧 Technical Details
hooks/useBilling.tsPlanandBillingInfofrom@repo/validation./api/v1/billing/plansand/api/v1/billing/info.subscribe(planId)for checkout andopenPortal()for Stripe portal.refresh: loadAllto reload plans and billing info.hooks/useChannelStats.tsChannelStatsfrom@repo/validation./api/v1/youtube/channel-stats?forceSync=${forceSync}.stats,loading,error,fetchStats(forceSync?).utils/toolsUtil.tsformatCount(n)– K/M formatting for view counts.formatFileSize(bytes)– Human-readable file size.parseDuration(iso)– Parses YouTube ISO 8601 tom:ssorh:mm:ss.timeAgo(dateStr)– Returns label + style for badges ("Today", "5d ago", etc.).formatTime(seconds)– Formats asm:ss.hooks/useAITraining.tsPOST /api/v1/youtube/trained-videoswithselectedVideosbefore starting training.youtube_channels.youtube_trained_videosbefore the AI training job runs.package.jsontailwind.config.tsapp/globals.css🚀 Deployment Notes
📚 Documentation Updates
🔍 Review Notes
useBillinganduseChannelStatscorrectly use@repo/validationtypes.toolsUtilhelpers match usage (e.g.timeAgolabel/style).📊 Performance Impact
🔒 Security Considerations
Details:
requireAuth: true.🎉 Additional Notes
@repo/validationschema.