feat: dashboard Second Brain, essai 7 jours et vérification e-mail
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 7m14s
CI / Deploy production (on server) (push) Successful in 1m25s

Rendre le dashboard actionnable (inbox, peek, carte mentale), aligner la facturation sur l’essai 7 jours, et bloquer le login e-mail tant que l’adresse n’est pas confirmée.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Antigravity
2026-08-30 07:19:36 +00:00
parent 69c99e4f4f
commit 80ccc1f6de
95 changed files with 4158 additions and 618 deletions

View File

@@ -38,7 +38,24 @@
"privacyTerms": "© 2025 Memento Labs — 隐私 · 条款",
"sessionExpired": "您的网站将包含导航和目录地生成",
"welcomeBack": "欢迎回来",
"welcomeBackSubtitle": "输入你的凭据以访问笔记。"
"welcomeBackSubtitle": "输入你的凭据以访问笔记。",
"checkEmailTitle": "请查收邮件",
"checkEmailDescription": "我们已向 {email} 发送确认链接。请打开链接以激活账户后再登录。",
"checkEmailDescriptionGeneric": "我们已向您的邮箱发送确认链接。请打开链接以激活账户后再登录。",
"resendVerification": "重新发送确认邮件",
"verifyResent": "确认邮件已发送,请检查收件箱。",
"verifyResendFailed": "无法发送确认邮件,请稍后再试。",
"verifyMissingEmail": "请输入电子邮箱地址。",
"verifyLoading": "正在确认邮箱…",
"verifySuccessTitle": "邮箱已确认",
"verifySuccessDescription": "账户已就绪,现在可以登录。",
"verifyExpiredTitle": "链接已过期",
"verifyExpiredDescription": "此确认链接已过期,请重新申请。",
"verifyInvalidTitle": "无效链接",
"verifyInvalidDescription": "此确认链接无效或已被使用。",
"emailNotVerified": "登录前请先确认邮箱。",
"emailVerifiedBanner": "邮箱已确认,现在可以登录。",
"invalidCredentials": "邮箱或密码不正确。"
},
"sidebar": {
"notes": "笔记",
@@ -1580,7 +1597,58 @@
"STRIPE_PRICE_CREDITS_S": "Pack S — 100 credits (price ID)",
"STRIPE_PRICE_CREDITS_M": "Pack M — 500 credits (price ID)",
"STRIPE_PRICE_CREDITS_L": "Pack L — 2,000 credits (price ID)",
"packsCatalogTitle": "Pack catalogue (code)"
"packsCatalogTitle": "Pack catalogue (code)",
"healthTitle": "Stripe health check",
"healthDescription": "Runtime status of keys, webhooks, price IDs and billing flag (secrets are never shown).",
"healthSecret": "Secret key (server)",
"healthPublishable": "Publishable key",
"healthWebhook": "Webhook secret",
"healthBillingFlag": "Billing enabled",
"healthTrial": "Free trial",
"trialDaysValue": "{days} days on first checkout",
"modeTest": "Test mode (sk_test_…)",
"modeLive": "Live mode (sk_live_…)",
"modePlaceholder": "Placeholder / invalid key",
"modeMissing": "Not configured",
"configured": "Configured",
"missing": "Missing",
"enabled": "Enabled",
"disabled": "Disabled",
"priceStatusTitle": "Price IDs vs Stripe",
"colKey": "Plan",
"colPriceId": "Price ID",
"colSource": "Source",
"colStripe": "Stripe amount",
"priceError": "Lookup failed",
"inactive": "inactive",
"notChecked": "Not checked (no Stripe key)",
"subsTitle": "Subscriptions overview",
"subsDescription": "Counts from the local database (synced via Stripe webhooks).",
"statPaid": "Active + trial",
"statTrialing": "On trial",
"statPastDue": "Past due",
"statCanceling": "Cancel at period end",
"byTier": "By tier",
"byStatus": "By status",
"usersWithoutSub": "Users with no Subscription row",
"noSubs": "No subscriptions yet",
"recentSubs": "Recent paid / trial accounts",
"colUser": "User",
"colTier": "Tier",
"colStatus": "Status",
"colPeriod": "Period / trial end",
"canceling": "canceling",
"manualTier": "manual (no Stripe sub)",
"trialUntil": "Trial until {date}",
"testGuideTitle": "How to test Stripe locally",
"testGuideDescription": "Checklist to validate checkout, webhooks and trial.",
"testStep1": "Stripe Dashboard → Test mode ON. Create Pro/Business products + monthly/annual prices + credit packs.",
"testStep2": "Put sk_test_…, pk_test_… in .env. Put price_… IDs in Admin → Billing (or env) and enable billing.",
"testStep3": "Copy the whsec_… into STRIPE_WEBHOOK_SECRET and restart the app.",
"testStep4": "npm run dev → open /settings/billing as a BASIC user.",
"testStep5": "Start Pro checkout. Card: 4242 4242 4242 4242, any future expiry, any CVC. Expect a 7-day trial.",
"testStep6": "Confirm Admin → Billing shows TRIALING, and /settings/billing shows the trial end date.",
"testCardHint": "Other cards: 4000000000009995 = payment fails · 4000002500003155 = 3D Secure. Never use real cards in test mode."
}
},
"about": {
@@ -3113,7 +3181,11 @@
"packLName": "加强包",
"buyPack": "购买",
"packCheckoutSuccess": "积分包已加入余额!",
"packCheckoutFailed": "无法开始购买。请检查 Stripe 配置或重试。"
"packCheckoutFailed": "无法开始购买。请检查 Stripe 配置或重试。",
"startTrialCta": "免费试用 {days} 天",
"trialFeature": "{days} 天免费试用(需绑定支付方式)",
"trialEndsOn": "您的免费试用将于 {date} 结束,之后将自动扣费。",
"trialEndsLabel": "试用结束"
},
"landing": {
"nav": {
@@ -3295,7 +3367,16 @@
"feature4": "专属支持",
"feature5": "现场入职"
},
"basicPrice": "免费"
"basicPrice": "免费",
"savePercent": "节省约 17%",
"proMonthly": "€9.90",
"proAnnualMonthly": "€8.25",
"businessMonthly": "€29.90",
"businessAnnualMonthly": "€24.92",
"enterprisePrice": "定制方案",
"trialBadge": "{days} 天免费试用",
"trialFeature": "{days} 天免费试用(需绑定支付方式)",
"trialCta": "免费试用 {days} 天"
},
"cta": {
"title": "别再丢掉最好的想法。",