fix(marketing): restaurer visibilité 12 fonctions dans 'Comment ça marche'

L'abstraction en 4 catégories (commit 8a7650f) cachait les 13 modes
derrière des regroupements ; l'utilisateur ne VOYAIT plus les 6 boutons
features originaux et percevait que des fonctions avaient disparu.

Refonte v2 :
- Bottom tab bar : 6 boutons FEATURES originaux 1-6 (Trans/Diari/Lang/Exp/Users/Part) — visibles, cliquables
- Right panel : grid 3×4 = 12 boutons FEATURES 1-12 (IA mode 0 reste accessible via Brain card)
- Mobile pills : 12 features scrollables horizontalement
- Auto-cycle : 1→12 skip 0, 1100ms each (~13s cycle complet)
- Manual click : isManual 4500ms reset puis reprend auto
- SUPPRESSION : CATEGORIES array + activeCategory state + handleCategorySelect + sub-mode dots indicator
- AJOUT : featureGridLabel() pour labels compacts (Recording/Recherche IA/Résumés/Intégrations/Audit trail/Conformité)

Préservé : phone shell statique, palette brand stricte b1/b2/b3, IA Mistral
card inchangée, 13 templates de modes (0-12) intacts, eyebrow brand-navy noir,
WCAG aria-labels + aria-pressed, prefers-reduced-motion guard.

Test adapté : assert featureGridLabel + 12 fonctions + labels grid.
This commit is contained in:
Allison
2026-04-29 13:17:09 -04:00
parent 8a7650f9fa
commit a14bcb9a1a
2 changed files with 78 additions and 140 deletions

View File

@@ -192,12 +192,13 @@ def test_fonctionnalites_how_it_works_reactor_section():
assert 'handleManualSelect' in body, "Missing manual select handler"
assert '1100' in body, "Missing 1100ms sub-mode cycle interval (refonte 2026-04-29)"
assert '4500' in body, "Missing 4500ms manual reset timer"
# Refonte 2026-04-29 : 4 catégories × 12 sous-modes
assert 'CATEGORIES' in body, "Missing CATEGORIES array (refonte 4 catégories)"
assert 'activeCategory' in body, "Missing activeCategory state"
assert 'handleCategorySelect' in body, "Missing category click handler"
for cat_title in ['Capture', 'Transformation IA', 'Distribution', 'Gouvernance']:
assert cat_title in body, f"Missing category : {cat_title}"
# Refonte 2026-04-29 (v2) : 12 fonctions visibles directement (1-12), IA mode 0 via Brain card.
# Bottom tab bar = 6 boutons originaux (Trans/Diari/Lang/Exp/Users/Part) ; right panel grid = 12 features.
assert 'featureGridLabel' in body, "Missing featureGridLabel (right grid 12 buttons)"
assert '12 fonctions' in body, "Missing '12 fonctions' badge in right panel header"
# Labels compacts grid right panel
for grid_label in ['Recording', 'Recherche IA', 'Résumés', 'Intégrations', 'Audit trail', 'Conformité']:
assert grid_label in body, f"Missing right grid label : {grid_label}"
# Nouveaux modes 7-12
assert 'recModeData' in body, "Missing Mode 7 (Recording live)"
assert 'searchModeData' in body, "Missing Mode 8 (Recherche sémantique)"
@@ -273,9 +274,9 @@ def test_fonctionnalites_how_it_works_reactor_section():
assert 'dictia-bg-orbs' in body, "Missing floating orbs"
assert 'dictia-connecting-line' in body, "Missing connecting line phone↔IA"
# Stats row in section header (refonte 2026-04-29 : 4 catégories · 6 modules)
# Stats row in section header (refonte v2 2026-04-29 : 12 fonctions visibles)
assert 'modules' in body, "Missing stats row 'modules'"
assert 'catégories' in body, "Missing stats row 'catégories' (refonte)"
assert 'fonctions' in body, "Missing stats row 'fonctions' (refonte v2)"
assert 'cloud' in body, "Missing stats row 'cloud'"
assert 'Voir une démo' in body, "Missing demo CTA link"