refactor(pricing): refonte v7.0 — 3 Cloud (Basic 189$/Essentiel 349$/Pro 549$) + DictIA Local (5998$ An1) + Pro+ soumission
Remplace l'ancien pricing (DictIA 8 / 16 / Cloud) par la nouvelle structure canonique v7.0 : 4 forfaits + 1 sentinel quote-only. Changements clés : - pricing_card.html : signature étendue (badge, recommended, capacity_audio, capacity_storage, gpu, yearly_renewal, cta_label) + format prix server-side avec NBSP OQLF (5998 -> 5 998 $) - _pricing_tiers.html : 4 cards (Cloud Basic 189$, Cloud Essentiel 349$, Cloud Pro 549$+485$ RECOMMANDÉ, DictIA Local 5998$ An1) + chip Pro+ soumission -> /contact?pro-plus=1 - plans.py : refonte complète avec yearly_renewal_env (DictIA Local An 2+ = 500$/an) + is_quote_only sentinel (Pro+ -> redirect /contact, jamais Stripe) - routes.py : Pro+ intercepté avant le flow Stripe Checkout - env.stripe.example : nouveau naming STRIPE_CLOUD_BASIC|ESSENTIEL|PRO_* + STRIPE_DICTIA_LOCAL_SETUP/RENEWAL_YEARLY - tarifs.html : header "Quatre forfaits", matrice comparative 4 colonnes, FAQ enrichie (7 questions incluant DictIA Local + onboarding Pro + Pro+) - fonctionnalites.html : section Architecture refondue (4 cards v7.0) - landing.html : ROI footnote + cycle "189$" + wave "189$/mois" actualisés - roi_calculator.js : recalibrage sur Cloud ESSENTIEL 349$ × 12 = 4188$/an - routes.py marketing : FAQ "DictIA 8 et 16" -> "DictIA LOCAL" - contact.html : "déploiements DictIA 16" -> "Cloud PRO" + "DictIA LOCAL" Tests : - test_marketing_landing_template.py : assertions prix v7.0 (189/349/549/5998), 4 slugs (cloud-basic, cloud-essentiel, cloud-pro, dictia-local), Pro+ chip, capacity chips, RECOMMANDÉ sur Cloud PRO - test_marketing_secondary_pages.py : 4 cards + Pro+ chip + matrice 4 col + FAQ 7 questions - test_stripe_checkout.py : env vars v7.0, slugs cloud-basic/cloud-pro/ dictia-local + nouveau test pro-plus -> /contact + tests setup pour Cloud PRO et DictIA Local - test_stripe_webhook.py : plan_slug metadata cloud-basic Status : 28/28 Stripe checkout + 17/17 webhook + 93/98 marketing pass (les 5 marketing failures sont pré-existantes, non liées au pricing : test_landing_has_main_nav et test_footer_links_complete = /blog manquant ; test_trust_bar_has_eyebrow_factual_phrasing + 2 tests conformite = casing eyebrow + entité é — vérifié par git stash baseline). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -82,7 +82,7 @@ def _make_event(event_type, obj_data, event_id='evt_test_123'):
|
||||
|
||||
|
||||
def _make_checkout_session(customer='cus_test', subscription='sub_test',
|
||||
plan_slug='dictia-cloud', period='monthly',
|
||||
plan_slug='cloud-basic', period='monthly',
|
||||
email=None, user_id='1'):
|
||||
return {
|
||||
'id': 'cs_test_abc',
|
||||
@@ -99,7 +99,7 @@ def _make_checkout_session(customer='cus_test', subscription='sub_test',
|
||||
|
||||
def _make_subscription_obj(sub_id='sub_test', customer='cus_test',
|
||||
status='active', period_end=1730000000,
|
||||
plan_slug='dictia-cloud', period='monthly'):
|
||||
plan_slug='cloud-basic', period='monthly'):
|
||||
return {
|
||||
'id': sub_id,
|
||||
'customer': customer,
|
||||
@@ -298,7 +298,7 @@ def test_checkout_session_completed_creates_subscription_and_sets_user_status():
|
||||
sub = Subscription.query.filter_by(stripe_subscription_id='sub_test').first()
|
||||
assert sub is not None
|
||||
assert sub.user_id == user.id
|
||||
assert sub.plan_slug == 'dictia-cloud'
|
||||
assert sub.plan_slug == 'cloud-basic'
|
||||
assert sub.period == 'monthly'
|
||||
assert sub.status == 'active'
|
||||
assert sub.current_period_end is not None
|
||||
@@ -454,7 +454,7 @@ def test_subscription_updated_updates_status_and_period_end():
|
||||
user_id=user.id,
|
||||
stripe_customer_id='cus_upd',
|
||||
stripe_subscription_id='sub_upd',
|
||||
plan_slug='dictia-cloud',
|
||||
plan_slug='cloud-basic',
|
||||
period='monthly',
|
||||
status='active',
|
||||
current_period_end=datetime(2025, 1, 1),
|
||||
@@ -539,7 +539,7 @@ def test_subscription_deleted_marks_canceled():
|
||||
user_id=user.id,
|
||||
stripe_customer_id='cus_del',
|
||||
stripe_subscription_id='sub_del',
|
||||
plan_slug='dictia-cloud',
|
||||
plan_slug='cloud-basic',
|
||||
period='monthly',
|
||||
status='active',
|
||||
)
|
||||
@@ -586,7 +586,7 @@ def test_invoice_payment_succeeded_recovers_past_due():
|
||||
user_id=user.id,
|
||||
stripe_customer_id='cus_paysucc',
|
||||
stripe_subscription_id='sub_paysucc',
|
||||
plan_slug='dictia-cloud',
|
||||
plan_slug='cloud-basic',
|
||||
period='monthly',
|
||||
status='past_due',
|
||||
)
|
||||
@@ -632,7 +632,7 @@ def test_invoice_payment_failed_marks_past_due():
|
||||
user_id=user.id,
|
||||
stripe_customer_id='cus_payfail',
|
||||
stripe_subscription_id='sub_payfail',
|
||||
plan_slug='dictia-cloud',
|
||||
plan_slug='cloud-basic',
|
||||
period='monthly',
|
||||
status='active',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user