Claude commited on
Commit
e2cbbd9
·
1 Parent(s): 67f1922

Simplify AC3 prompt: generate ONE home page in 4 different visual versions

Browse files
Files changed (1) hide show
  1. agents/flutter_screen_generator.py +38 -39
agents/flutter_screen_generator.py CHANGED
@@ -608,53 +608,52 @@ JSON Plan:"""
608
  cards_list = card_suggestions.get(app_type, card_suggestions["generic"])
609
  cards_str = ", ".join(cards_list)
610
 
611
- prompt = f"""You are a UX/UI expert. Generate 4 different screen layout variants for a {app_type} mobile app.
 
612
 
613
- THEME INFO:
614
- - Name: {theme_summary['name']}
 
615
  - Style: {theme_summary['style']}
616
- - Primary Color: {theme_summary['primary']}
617
- - Secondary Color: {theme_summary['secondary']}
618
 
619
- AVAILABLE COMPONENTS:
 
 
 
 
 
620
 
621
- BACKGROUNDS (30 options):
622
  {bg_list}
623
 
624
- HEADERS:
625
- - minimal (title only, clean)
626
- - avatar_search (avatar + search bar, social)
627
- - tabs (horizontal tabs, navigation)
628
- - collapsible (expandable on scroll, dynamic)
629
- - stats_header (shows key metrics, data-focused)
630
-
631
- FOOTERS:
632
- - minimal_icons (icons only, no labels)
633
- - floating_fab (center FAB button, action-focused)
634
- - animated_pills (smooth animations, premium)
635
- - classic_expanded (icons + labels, traditional)
636
- - gesture_bar (iOS-style swipe, minimal)
637
-
638
- LAYOUT TYPES (choose 1 per variant - MUST be different for each variant):
639
- - grid_2x2: 2-column grid layout, perfect for metrics/stats/dashboards
640
- - vertical_list: Classic vertical scrollable list of cards (default)
641
- - hero_card: ONE large featured card at top + 2-3 smaller cards below
642
- - timeline: Vertical timeline with events/activities chronologically
643
- - featured_grid: ONE large featured item + grid of 4-6 smaller items below
644
-
645
- CARDS for {app_type} app (choose 3-6 per variant based on layout):
646
  {cards_str}
647
 
648
- Generate 4 DIFFERENT variants, each optimized for different use cases.
649
- Consider theme style + app type to make smart combinations.
650
-
651
- IMPORTANT RULES:
652
- 1. Use a DIFFERENT background for each variant (choose from 30 options above)
653
- 2. Use a DIFFERENT layout_type for each variant (grid_2x2, vertical_list, hero_card, timeline, featured_grid)
654
- 3. Vary the complexity: mix simple, medium, and complex backgrounds
655
- 4. Match background category to use case (gradients=clean, waves=dynamic, geometric=modern, organic=creative, patterns=structured, abstract=premium)
656
- 5. **SELECT 3-6 CARDS** from the list above based on layout_type (grid needs 4-6, hero needs 3-4, timeline needs 4-5)
657
- 6. **PERSONALIZE TEXT** content based on app_type (e.g., fitness="Workout Tracker", banking="Account Overview")
658
 
659
  Output ONLY valid JSON:
660
  {{
 
608
  cards_list = card_suggestions.get(app_type, card_suggestions["generic"])
609
  cards_str = ", ".join(cards_list)
610
 
611
+ prompt = f"""Genera UNA home page per l'app {app_type}.
612
+ Crea 4 VERSIONI DIVERSE della stessa home page, ognuna con uno stile visivo differente.
613
 
614
+ PALETTE COLORI:
615
+ - Primary: {theme_summary['primary']}
616
+ - Secondary: {theme_summary['secondary']}
617
  - Style: {theme_summary['style']}
 
 
618
 
619
+ TASK: Crea 4 versioni della home page dell'app {app_type}, ognuna con:
620
+ - Layout diverso (grid, lista, hero card, timeline)
621
+ - Background diverso (scegli tra i 30 disponibili sotto)
622
+ - Header diverso (minimal, stats, tabs, etc)
623
+ - Footer diverso (floating fab, animated pills, etc)
624
+ - Cards diverse (3-6 cards per versione)
625
 
626
+ BACKGROUNDS disponibili:
627
  {bg_list}
628
 
629
+ LAYOUTS disponibili:
630
+ - grid_2x2: Griglia 2 colonne per metriche/dashboard
631
+ - vertical_list: Lista verticale scrollabile classica
632
+ - hero_card: UNA card grande in alto + 2-3 card piccole sotto
633
+ - timeline: Timeline verticale per eventi cronologici
634
+ - featured_grid: UN elemento grande + griglia di 4-6 elementi piccoli
635
+
636
+ HEADERS disponibili:
637
+ - minimal: Solo titolo
638
+ - avatar_search: Avatar + barra ricerca
639
+ - tabs: Tab orizzontali
640
+ - stats_header: Mostra metriche chiave
641
+
642
+ FOOTERS disponibili:
643
+ - minimal_icons: Solo icone
644
+ - floating_fab: Bottone FAB centrale
645
+ - animated_pills: Animazioni smooth
646
+ - classic_expanded: Icone + etichette
647
+ - gesture_bar: Barra swipe iOS
648
+
649
+ CARDS per app {app_type}:
 
650
  {cards_str}
651
 
652
+ REGOLE:
653
+ 1. Ogni versione deve avere layout_type DIVERSO
654
+ 2. Ogni versione deve avere background DIVERSO
655
+ 3. Scegli 3-6 cards dalla lista sopra in base al layout
656
+ 4. Personalizza i testi per l'app {app_type}
 
 
 
 
 
657
 
658
  Output ONLY valid JSON:
659
  {{