@@ -1494,7 +1494,7 @@ Your goal: deliver precise, production-grade patches with the smallest necessary
14941494 const parts = [ ] ;
14951495 // === AI Model Template Logic ===
14961496 if ( S . model === 'gpt' ) {
1497- parts . push ( '# 🤖 PROJECT CONTEXT FOR GPT-4\n' ) ;
1497+ parts . push ( '# <span class="material-symbols-outlined">smart_toy</span> PROJECT CONTEXT FOR GPT-4\n' ) ;
14981498 parts . push ( '=' . repeat ( 80 ) + '\n\n' ) ;
14991499
15001500 parts . push ( '## 📋 METADATA\n' ) ;
@@ -1683,7 +1683,7 @@ Your goal: deliver precise, production-grade patches with the smallest necessary
16831683
16841684 // Add model-specific headers for download
16851685 if ( S . model === 'gpt' ) {
1686- parts . push ( '# 🤖 PROJECT CONTEXT FOR GPT-4\n' ) ;
1686+ parts . push ( '# <span class="material-symbols-outlined">smart_toy</span> PROJECT CONTEXT FOR GPT-4\n' ) ;
16871687 parts . push ( '=' . repeat ( 80 ) + '\n\n' ) ;
16881688
16891689 parts . push ( '## 📋 METADATA\n' ) ;
@@ -1976,14 +1976,40 @@ Your goal: deliver precise, production-grade patches with the smallest necessary
19761976 S . model = D . model . value ;
19771977 const templates = {
19781978 gpt : '📝 GPT-4: Markdown format with clear code blocks and instructions' ,
1979- claude : '🤖 Claude: XML-structured context with semantic tags for better understanding' ,
1979+ claude : 'Claude: XML-structured context with semantic tags for better understanding' ,
19801980 gemini : '✨ Gemini: Hybrid format with metadata and organized sections'
19811981 } ;
1982+ // highlight corresponding logo if present
1983+ try {
1984+ const logos = document . querySelectorAll ( '.model-logo' ) ;
1985+ logos . forEach ( l => l . classList . toggle ( 'selected' , l . dataset . model === S . model ) ) ;
1986+ } catch ( e ) { /* ignore */ }
19821987 console . log ( `%c${ templates [ S . model ] } ` , 'color:#10b981;font-weight:bold' ) ;
19831988 toast ( `Template: ${ S . model . toUpperCase ( ) } ` , 'info' ) ;
19841989 } ) ;
1990+
1991+ // helper exposed to window so inline markup can use it
1992+ window . selectModel = m => {
1993+ if ( ! D . model ) return ;
1994+ D . model . value = m ;
1995+ D . model . dispatchEvent ( new Event ( 'change' ) ) ;
1996+ } ;
19851997 }
19861998
1999+ // wire model-logo clicks and initial highlight (if the inline images are present)
2000+ try {
2001+ const logos = document . querySelectorAll ( '.model-logo' ) ;
2002+ logos . forEach ( img => {
2003+ img . addEventListener ( 'click' , ( ) => {
2004+ const m = img . dataset . model ;
2005+ if ( m && window . selectModel ) window . selectModel ( m ) ;
2006+ } ) ;
2007+ } ) ;
2008+ // initial highlight based on select value or state
2009+ const initial = D . model ? D . model . value : S . model ;
2010+ logos . forEach ( l => l . classList . toggle ( 'selected' , l . dataset . model === initial ) ) ;
2011+ } catch ( e ) { /* ignore if DOM not ready */ }
2012+
19872013 // Drag and Drop functionality on main content area
19882014 const dragDropZone = $ ( 'dragDropZone' ) ;
19892015 const dragDropOverlay = $ ( 'dragDropOverlay' ) ;
0 commit comments