@@ -283,6 +283,29 @@ export const MainView: React.FC<Props> = (props) => {
283283 />
284284 )
285285
286+ const prompt_attachments = (
287+ < PromptAttachments
288+ token_count = { props . selected_files_token_count }
289+ files_count = { props . selected_files . length }
290+ theme = {
291+ props . target == TARGET . WEB
292+ ? props . web_prompt_type == 'edit-files'
293+ ? 'blue'
294+ : 'purple'
295+ : props . api_prompt_type == 'edit-files'
296+ ? 'blue'
297+ : 'purple'
298+ }
299+ is_alt_pressed = { is_alt_pressed }
300+ on_agentic_search = { props . on_agentic_search }
301+ translations = { {
302+ attaching_file : t ( 'selected-files.attaching-file' ) ,
303+ attaching_files : t ( 'selected-files.attaching-files' ) ,
304+ agentic_search : t ( 'selected-files.agentic-search' )
305+ } }
306+ />
307+ )
308+
286309 const prompt_section = (
287310 < >
288311 < UiSpacer height = { is_landscape ? 6 : 2 } />
@@ -471,37 +494,70 @@ export const MainView: React.FC<Props> = (props) => {
471494 ] }
472495 />
473496 ) : (
474- < PromptAttachments
475- token_count = { props . selected_files_token_count }
476- files_count = { props . selected_files . length }
477- theme = {
478- props . target == TARGET . WEB
479- ? props . web_prompt_type == 'edit-files'
480- ? 'blue'
481- : 'purple'
482- : props . api_prompt_type == 'edit-files'
483- ? 'blue'
484- : 'purple'
485- }
486- is_alt_pressed = { is_alt_pressed }
487- on_agentic_search = { props . on_agentic_search }
488- translations = { {
489- attaching_file : t ( 'selected-files.attaching-file' ) ,
490- attaching_files : t ( 'selected-files.attaching-files' ) ,
491- agentic_search : t ( 'selected-files.agentic-search' )
492- } }
493- />
497+ prompt_attachments
494498 ) }
495499
496500 { is_landscape && < UiSpacer height = { 6 } /> }
497501 </ >
498502 )
499503
504+ const configurations_placeholder_above = (
505+ < >
506+ { props . target == TARGET . WEB && ! browser_connection . is_closed && (
507+ < >
508+ < UiStatusBar
509+ icon = "codicon-debug-disconnect"
510+ label = ""
511+ actions = { [
512+ {
513+ id : 'install' ,
514+ icon : 'codicon-add' ,
515+ label : '' ,
516+ title : '' ,
517+ on_click : ( ) => { }
518+ }
519+ ] }
520+ />
521+ < UiSpacer height = { 6 } />
522+ </ >
523+ ) }
524+ { props . target == TARGET . API && is_api_warning_visible && (
525+ < >
526+ < UiStatusBar
527+ icon = "codicon-warning"
528+ label = ""
529+ actions = { [
530+ {
531+ id : 'settings' ,
532+ icon : 'codicon-gear' ,
533+ label : '' ,
534+ title : '' ,
535+ on_click : ( ) => { }
536+ }
537+ ] }
538+ />
539+ < UiSpacer height = { 6 } />
540+ </ >
541+ ) }
542+ </ >
543+ )
544+
545+ const configurations_placeholder_below = (
546+ < >
547+ { props . target == TARGET . WEB && ! browser_connection . is_closed && (
548+ < div style = { { visibility : 'hidden' , pointerEvents : 'none' } } >
549+ { prompt_attachments }
550+ </ div >
551+ ) }
552+ </ >
553+ )
554+
500555 const configurations_section = (
501556 < >
502557 { props . target == TARGET . WEB && (
503558 < UiConfigurations
504559 configurations = { web_configurations }
560+ empty_landscape_placeholder_above = { configurations_placeholder_above }
505561 is_dimmed = { is_context_empty || ! props . is_connected }
506562 on_create = { ( params ) => {
507563 props . on_create_web_configuration ( params )
@@ -553,6 +609,8 @@ export const MainView: React.FC<Props> = (props) => {
553609 on_delete = { props . on_delete_api_configuration }
554610 selected_configuration_id = { props . selected_api_configuration_id }
555611 on_create = { props . on_create_api_configuration }
612+ empty_landscape_placeholder_above = { configurations_placeholder_above }
613+ empty_landscape_placeholder_below = { configurations_placeholder_below }
556614 translations = { {
557615 empty : t ( 'configurations.empty' ) ,
558616 add_new : t ( 'action.add-new' ) ,
0 commit comments