@@ -162,7 +162,7 @@ export const MainView: React.FC<Props> = (props) => {
162162 ( props . target == TARGET . WEB && props . web_prompt_type == 'edit-files' ) ||
163163 ( props . target == TARGET . API && props . api_prompt_type == 'edit-files' )
164164
165- const context_is_empty_warning =
165+ const is_context_empty =
166166 show_edit_format_selector && props . selected_files . length == 0
167167
168168 const handle_input_change = ( value : string ) => {
@@ -353,7 +353,7 @@ export const MainView: React.FC<Props> = (props) => {
353353 props . target == TARGET . WEB &&
354354 ( ! props . is_connected || ! props . web_configurations . length )
355355 }
356- is_action_disabled = { context_is_empty_warning }
356+ is_action_disabled = { is_context_empty }
357357 value = { props . instructions }
358358 chat_history = { props . chat_history }
359359 on_change = { handle_input_change }
@@ -392,7 +392,7 @@ export const MainView: React.FC<Props> = (props) => {
392392 target = { props . target }
393393 on_target_change = { ( target ) => props . on_target_change ( target ) }
394394 active_border_color = {
395- context_is_empty_warning
395+ is_context_empty
396396 ? 'yellow'
397397 : props . target == TARGET . WEB
398398 ? props . web_prompt_type == 'edit-files'
@@ -453,7 +453,7 @@ export const MainView: React.FC<Props> = (props) => {
453453 />
454454 </ div >
455455
456- { context_is_empty_warning ? (
456+ { is_context_empty ? (
457457 < UiStatusBar
458458 placement = "bottom"
459459 theme = "warning"
@@ -501,7 +501,7 @@ export const MainView: React.FC<Props> = (props) => {
501501 { props . target == TARGET . WEB && (
502502 < UiConfigurations
503503 configurations = { web_configurations }
504- disable_invocation = { context_is_empty_warning || ! props . is_connected }
504+ is_dimmed = { is_context_empty || ! props . is_connected }
505505 on_create = { ( params ) => {
506506 props . on_create_web_configuration ( params )
507507 } }
@@ -542,9 +542,7 @@ export const MainView: React.FC<Props> = (props) => {
542542 { props . target == TARGET . API && (
543543 < UiConfigurations
544544 configurations = { api_configurations_ui }
545- disable_invocation = {
546- context_is_empty_warning || ! props . api_configurations . length
547- }
545+ is_dimmed = { is_context_empty || ! props . api_configurations . length }
548546 on_configuration_click = { props . on_api_configuration_click }
549547 on_reorder = { ( reordered ) =>
550548 props . on_api_configurations_reorder ( reordered )
0 commit comments