@@ -17,7 +17,7 @@ export const Empty = () => (
1717 current_selection = { null }
1818 currently_open_file_path = "/path/to/file"
1919 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
20- is_chatbots_mode = { false }
20+ is_web_mode = { false }
2121 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
2222 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
2323 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
@@ -52,6 +52,8 @@ export const Empty = () => (
5252 on_tab_change = { ( ) => { } }
5353 on_new_tab = { ( ) => { } }
5454 on_tab_delete = { ( ) => { } }
55+ missing_configuration = { false }
56+ missing_preset = { false }
5557 />
5658)
5759
@@ -67,7 +69,7 @@ export const WithText = () => (
6769 current_selection = { null }
6870 currently_open_file_path = "/path/to/file"
6971 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
70- is_chatbots_mode = { false }
72+ is_web_mode = { false }
7173 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
7274 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
7375 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
@@ -102,6 +104,8 @@ export const WithText = () => (
102104 on_tab_change = { ( ) => { } }
103105 on_new_tab = { ( ) => { } }
104106 on_tab_delete = { ( ) => { } }
107+ missing_configuration = { false }
108+ missing_preset = { false }
105109 />
106110)
107111
@@ -117,7 +121,7 @@ export const LongText = () => (
117121 current_selection = { null }
118122 currently_open_file_path = "/path/to/file"
119123 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
120- is_chatbots_mode = { false }
124+ is_web_mode = { false }
121125 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
122126 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
123127 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
@@ -152,6 +156,8 @@ export const LongText = () => (
152156 on_tab_change = { ( ) => { } }
153157 on_new_tab = { ( ) => { } }
154158 on_tab_delete = { ( ) => { } }
159+ missing_configuration = { false }
160+ missing_preset = { false }
155161 />
156162)
157163
@@ -169,7 +175,7 @@ export const WithPlaceholderSavedContext = () => (
169175 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
170176 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
171177 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
172- is_chatbots_mode = { false }
178+ is_web_mode = { false }
173179 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
174180 context_file_paths = { [ ] }
175181 invocation_count = { 1 }
@@ -202,6 +208,8 @@ export const WithPlaceholderSavedContext = () => (
202208 on_tab_change = { ( ) => { } }
203209 on_new_tab = { ( ) => { } }
204210 on_tab_delete = { ( ) => { } }
211+ missing_configuration = { false }
212+ missing_preset = { false }
205213 />
206214)
207215
@@ -225,7 +233,7 @@ export const WithPlaceholderSelection = () => (
225233 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
226234 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
227235 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
228- is_chatbots_mode = { false }
236+ is_web_mode = { false }
229237 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
230238 context_file_paths = { [ ] }
231239 invocation_count = { 1 }
@@ -258,6 +266,8 @@ export const WithPlaceholderSelection = () => (
258266 on_tab_change = { ( ) => { } }
259267 on_new_tab = { ( ) => { } }
260268 on_tab_delete = { ( ) => { } }
269+ missing_configuration = { false }
270+ missing_preset = { false }
261271 />
262272)
263273
@@ -275,7 +285,7 @@ export const WithCommit = () => (
275285 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
276286 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
277287 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
278- is_chatbots_mode = { false }
288+ is_web_mode = { false }
279289 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
280290 context_file_paths = { [ ] }
281291 invocation_count = { 1 }
@@ -308,6 +318,8 @@ export const WithCommit = () => (
308318 on_tab_change = { ( ) => { } }
309319 on_new_tab = { ( ) => { } }
310320 on_tab_delete = { ( ) => { } }
321+ missing_configuration = { false }
322+ missing_preset = { false }
311323 />
312324)
313325
@@ -325,7 +337,7 @@ export const WithCommitWithQuotes = () => (
325337 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
326338 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
327339 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
328- is_chatbots_mode = { false }
340+ is_web_mode = { false }
329341 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
330342 context_file_paths = { [ ] }
331343 invocation_count = { 1 }
@@ -358,6 +370,8 @@ export const WithCommitWithQuotes = () => (
358370 on_tab_change = { ( ) => { } }
359371 on_new_tab = { ( ) => { } }
360372 on_tab_delete = { ( ) => { } }
373+ missing_configuration = { false }
374+ missing_preset = { false }
361375 />
362376)
363377export const WithContextAtCommit = ( ) => (
@@ -374,7 +388,7 @@ export const WithContextAtCommit = () => (
374388 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
375389 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
376390 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
377- is_chatbots_mode = { false }
391+ is_web_mode = { false }
378392 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
379393 context_file_paths = { [ ] }
380394 invocation_count = { 1 }
@@ -407,6 +421,8 @@ export const WithContextAtCommit = () => (
407421 on_tab_change = { ( ) => { } }
408422 on_new_tab = { ( ) => { } }
409423 on_tab_delete = { ( ) => { } }
424+ missing_configuration = { false }
425+ missing_preset = { false }
410426 />
411427)
412428
@@ -425,7 +441,7 @@ export const WithEditFormatSelector = () => {
425441 current_selection = { null }
426442 currently_open_file_path = "/path/to/file"
427443 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
428- is_chatbots_mode = { false }
444+ is_web_mode = { false }
429445 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
430446 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
431447 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
@@ -461,6 +477,8 @@ export const WithEditFormatSelector = () => {
461477 on_tab_change = { ( ) => { } }
462478 on_new_tab = { ( ) => { } }
463479 on_tab_delete = { ( ) => { } }
480+ missing_configuration = { false }
481+ missing_preset = { false }
464482 />
465483 )
466484}
@@ -477,7 +495,7 @@ export const WithFilePaths = () => (
477495 current_selection = { null }
478496 currently_open_file_path = "/path/to/file"
479497 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
480- is_chatbots_mode = { false }
498+ is_web_mode = { false }
481499 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
482500 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
483501 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
@@ -512,6 +530,8 @@ export const WithFilePaths = () => (
512530 on_tab_change = { ( ) => { } }
513531 on_new_tab = { ( ) => { } }
514532 on_tab_delete = { ( ) => { } }
533+ missing_configuration = { false }
534+ missing_preset = { false }
515535 />
516536)
517537
@@ -555,7 +575,7 @@ export const WithTabs = () => {
555575 current_selection = { null }
556576 currently_open_file_path = "/path/to/file"
557577 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
558- is_chatbots_mode = { false }
578+ is_web_mode = { false }
559579 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
560580 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
561581 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
@@ -590,6 +610,54 @@ export const WithTabs = () => {
590610 on_tab_change = { set_active_index }
591611 on_new_tab = { handle_new_tab }
592612 on_tab_delete = { handle_tab_delete }
613+ missing_configuration = { false }
614+ missing_preset = { false }
593615 />
594616 )
595617}
618+
619+ export const MissingPreset = ( ) => (
620+ < PromptField
621+ value = "I want to copy this even if there are no presets"
622+ chat_history = { [ ] }
623+ on_change = { ( value ) => console . log ( 'Changed:' , value ) }
624+ on_submit = { ( ) => console . log ( 'Submitted' ) }
625+ on_copy = { ( ) => console . log ( 'Copied' ) }
626+ is_connected = { true }
627+ prompt_type = "ask-about-context"
628+ current_selection = { null }
629+ currently_open_file_path = "/path/to/file"
630+ on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
631+ is_web_mode = { true }
632+ on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
633+ on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
634+ on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
635+ context_file_paths = { [ ] }
636+ on_curly_braces_click = { ( ) => { } }
637+ invocation_count = { 1 }
638+ on_invocation_count_change = { ( count ) =>
639+ console . log ( 'Invocation count changed:' , count )
640+ }
641+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
642+ prune_context_instructions_prefix = ""
643+ on_prune_context_instructions_prefix_change = { ( ) => { } }
644+ on_pasted_lines_click = { ( ) => { } }
645+ on_open_url = { ( ) => { } }
646+ on_open_website = { ( ) => { } }
647+ on_paste_image = { ( ) => { } }
648+ on_paste_pasted_text = { ( ) => { } }
649+ on_open_image = { ( ) => { } }
650+ on_open_pasted_text = { ( ) => { } }
651+ on_paste_url = { ( ) => { } }
652+ is_recording = { false }
653+ on_recording_started = { ( ) => { } }
654+ on_recording_finished = { ( ) => { } }
655+ tabs_count = { 1 }
656+ active_tab_index = { 0 }
657+ on_tab_change = { ( ) => { } }
658+ on_new_tab = { ( ) => { } }
659+ on_tab_delete = { ( ) => { } }
660+ missing_configuration = { false }
661+ missing_preset = { true }
662+ />
663+ )
0 commit comments