Phase 3 - credts, usage, plans app pages #Migrations

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-06 21:28:13 +00:00
parent cb8e747387
commit 9ca048fb9d
37 changed files with 9328 additions and 1149 deletions

View File

@@ -16,12 +16,7 @@ export interface Plan {
max_sites?: number;
max_users?: number;
max_keywords?: number;
max_clusters?: number;
max_content_ideas?: number;
max_content_words?: number;
max_images_basic?: number;
max_images_premium?: number;
max_image_prompts?: number;
max_ahrefs_queries?: number;
included_credits?: number;
}
@@ -37,8 +32,8 @@ export const convertToPricingPlan = (plan: Plan): PricingPlan => {
const features: string[] = [];
// Dynamic counts - shown with numbers from backend
if (plan.max_content_ideas) {
features.push(`**${formatNumber(plan.max_content_ideas)} Pages/Articles per month**`);
if (plan.max_keywords) {
features.push(`**${formatNumber(plan.max_keywords)} Keywords**`);
}
if (plan.max_sites) {
features.push(`${plan.max_sites === 999999 ? 'Unlimited' : formatNumber(plan.max_sites)} Site${plan.max_sites > 1 && plan.max_sites !== 999999 ? 's' : ''}`);