@@ -365,6 +365,20 @@ export const Home: React.FC<Props> = (props) => {
365365 on_stuck_change = { edit_context_on_stuck_change }
366366 >
367367 < Group >
368+ < ApiToolConfigurationSection
369+ configurations = { props . edit_context_configs }
370+ set_configurations = { props . set_edit_context_configs }
371+ tool_name = "EDIT_CONTEXT"
372+ can_have_default = { false }
373+ on_add = { ( params ) =>
374+ props . on_add_config ( 'EDIT_CONTEXT' , params ?. insertion_index )
375+ }
376+ on_reorder = { ( reordered ) =>
377+ props . on_reorder_configs ( 'EDIT_CONTEXT' , reordered )
378+ }
379+ on_edit = { ( id ) => props . on_edit_config ( 'EDIT_CONTEXT' , id ) }
380+ on_delete = { ( id ) => props . on_delete_config ( 'EDIT_CONTEXT' , id ) }
381+ />
368382 < Item
369383 title = "System Instructions"
370384 description = "Tone and style instructions for the model."
@@ -380,20 +394,6 @@ export const Home: React.FC<Props> = (props) => {
380394 />
381395 }
382396 />
383- < ApiToolConfigurationSection
384- configurations = { props . edit_context_configs }
385- set_configurations = { props . set_edit_context_configs }
386- tool_name = "EDIT_CONTEXT"
387- can_have_default = { false }
388- on_add = { ( params ) =>
389- props . on_add_config ( 'EDIT_CONTEXT' , params ?. insertion_index )
390- }
391- on_reorder = { ( reordered ) =>
392- props . on_reorder_configs ( 'EDIT_CONTEXT' , reordered )
393- }
394- on_edit = { ( id ) => props . on_edit_config ( 'EDIT_CONTEXT' , id ) }
395- on_delete = { ( id ) => props . on_delete_config ( 'EDIT_CONTEXT' , id ) }
396- />
397397 </ Group >
398398 </ Section >
399399 < Section
@@ -404,16 +404,6 @@ export const Home: React.FC<Props> = (props) => {
404404 on_stuck_change = { intelligent_update_on_stuck_change }
405405 >
406406 < Group >
407- < Item
408- title = "Fix All Automatically"
409- description = "Run the tool on all failed to apply files immediately."
410- slot_right = {
411- < Toggler
412- is_on = { props . fix_all_automatically }
413- on_toggle = { props . on_fix_all_automatically_change }
414- />
415- }
416- />
417407 < ApiToolConfigurationSection
418408 configurations = { props . intelligent_update_configs }
419409 set_configurations = { props . set_intelligent_update_configs }
@@ -439,6 +429,16 @@ export const Home: React.FC<Props> = (props) => {
439429 props . on_unset_default_config ( 'INTELLIGENT_UPDATE' )
440430 }
441431 />
432+ < Item
433+ title = "Fix All Automatically"
434+ description = "Run the tool on all failed to apply files immediately."
435+ slot_right = {
436+ < Toggler
437+ is_on = { props . fix_all_automatically }
438+ on_toggle = { props . on_fix_all_automatically_change }
439+ />
440+ }
441+ />
442442 </ Group >
443443 </ Section >
444444 < Section
@@ -503,6 +503,26 @@ export const Home: React.FC<Props> = (props) => {
503503 on_stuck_change = { commit_messages_on_stuck_change }
504504 >
505505 < Group >
506+ < ApiToolConfigurationSection
507+ configurations = { props . commit_messages_configs }
508+ set_configurations = { props . set_commit_messages_configs }
509+ tool_name = "COMMIT_MESSAGES"
510+ can_have_default = { true }
511+ on_add = { ( params ) =>
512+ props . on_add_config ( 'COMMIT_MESSAGES' , params ?. insertion_index )
513+ }
514+ on_reorder = { ( reordered ) =>
515+ props . on_reorder_configs ( 'COMMIT_MESSAGES' , reordered )
516+ }
517+ on_edit = { ( id ) => props . on_edit_config ( 'COMMIT_MESSAGES' , id ) }
518+ on_delete = { ( id ) => props . on_delete_config ( 'COMMIT_MESSAGES' , id ) }
519+ on_set_default = { ( id ) =>
520+ props . on_set_default_config ( 'COMMIT_MESSAGES' , id )
521+ }
522+ on_unset_default = { ( ) =>
523+ props . on_unset_default_config ( 'COMMIT_MESSAGES' )
524+ }
525+ />
506526 < Item
507527 title = "Instructions"
508528 description = "Describe style and conventions (e.g. Conventional Commits, gitmoji) for the generated commit message."
@@ -529,26 +549,6 @@ export const Home: React.FC<Props> = (props) => {
529549 />
530550 }
531551 />
532- < ApiToolConfigurationSection
533- configurations = { props . commit_messages_configs }
534- set_configurations = { props . set_commit_messages_configs }
535- tool_name = "COMMIT_MESSAGES"
536- can_have_default = { true }
537- on_add = { ( params ) =>
538- props . on_add_config ( 'COMMIT_MESSAGES' , params ?. insertion_index )
539- }
540- on_reorder = { ( reordered ) =>
541- props . on_reorder_configs ( 'COMMIT_MESSAGES' , reordered )
542- }
543- on_edit = { ( id ) => props . on_edit_config ( 'COMMIT_MESSAGES' , id ) }
544- on_delete = { ( id ) => props . on_delete_config ( 'COMMIT_MESSAGES' , id ) }
545- on_set_default = { ( id ) =>
546- props . on_set_default_config ( 'COMMIT_MESSAGES' , id )
547- }
548- on_unset_default = { ( ) =>
549- props . on_unset_default_config ( 'COMMIT_MESSAGES' )
550- }
551- />
552552 </ Group >
553553 </ Section >
554554 </ Layout >
0 commit comments