69
69
<div
70
70
class =" scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-transparent hover:scrollbar-thumb-gray-400 flex-1 overflow-y-auto"
71
71
>
72
- <div v-if =" filteredCoachingTemplates .length === 0" class =" p-3 text-center text-xs text-gray-600 dark:text-gray-400" >
72
+ <div v-if =" filteredTemplates .length === 0" class =" p-3 text-center text-xs text-gray-600 dark:text-gray-400" >
73
73
No templates found
74
74
</div >
75
75
<div
76
- v-for =" template in filteredCoachingTemplates "
76
+ v-for =" template in filteredTemplates "
77
77
:key =" template.id"
78
78
@click ="
79
79
selectTemplateFromDropdown(template);
251
251
@click.stop
252
252
/>
253
253
<div class =" max-h-36 overflow-y-auto" >
254
- <div v-if =" filteredCoachingTemplates .length === 0" class =" p-2 text-center text-xs text-gray-600 dark:text-gray-400" >
254
+ <div v-if =" filteredTemplates .length === 0" class =" p-2 text-center text-xs text-gray-600 dark:text-gray-400" >
255
255
No templates found
256
256
</div >
257
257
<button
258
- v-for =" template in filteredCoachingTemplates "
258
+ v-for =" template in filteredTemplates "
259
259
:key =" template.id"
260
260
@click.stop ="
261
261
selectTemplateFromDropdown(template);
@@ -902,19 +902,17 @@ const { isOverlayMode, isSupported: isOverlaySupported, toggleOverlayMode } = us
902
902
const hasApiKey = ref (false ); // Will be checked on mount
903
903
// const isDev = computed(() => import.meta.env.DEV)
904
904
905
- // Coaching templates filtered - expanded to include more relevant categories
906
- const coachingTemplates = computed (() => {
907
- // Include multiple relevant categories for broader template selection
908
- const relevantCategories = [' sales_coach' , ' customer_success' , ' executive' , ' support' , ' partnership' , ' technical' ];
909
- return templates .value .filter ((t ) => relevantCategories .includes (t .category ));
905
+ // All available templates (no category filtering)
906
+ const allTemplates = computed (() => {
907
+ return templates .value ;
910
908
});
911
909
912
910
// Filtered templates based on search
913
- const filteredCoachingTemplates = computed (() => {
914
- if (! templateSearchQuery .value ) return coachingTemplates .value ;
911
+ const filteredTemplates = computed (() => {
912
+ if (! templateSearchQuery .value ) return allTemplates .value ;
915
913
916
914
const query = templateSearchQuery .value .toLowerCase ();
917
- return coachingTemplates .value .filter ((t ) => t .name .toLowerCase ().includes (query ) || t .description ?.toLowerCase ().includes (query ));
915
+ return allTemplates .value .filter ((t ) => t .name .toLowerCase ().includes (query ) || t .description ?.toLowerCase ().includes (query ));
918
916
});
919
917
920
918
// New computed properties for intelligence dashboard
@@ -2512,10 +2510,8 @@ const fetchTemplates = async () => {
2512
2510
2513
2511
console .log (` ✅ Loaded ${templates .value .length } templates ` );
2514
2512
console .log (
2515
- ' Available coaching templates:' ,
2516
- templates .value
2517
- .filter ((t ) => [' sales_coach' , ' customer_success' , ' executive' , ' support' , ' partnership' , ' technical' ].includes (t .category ))
2518
- .map ((t ) => t .name ),
2513
+ ' Available templates:' ,
2514
+ templates .value .map ((t ) => t .name ),
2519
2515
);
2520
2516
2521
2517
// Load persisted template or select default
@@ -2530,9 +2526,8 @@ const fetchTemplates = async () => {
2530
2526
2531
2527
// Select default template if none selected
2532
2528
if (! selectedTemplate .value && templates .value .length > 0 ) {
2533
- // Try to find the Sales Discovery Call template as default, otherwise use first available coaching template
2534
- const defaultTemplate =
2535
- templates .value .find ((t ) => t .name === ' Sales Discovery Call' ) || coachingTemplates .value [0 ] || templates .value [0 ];
2529
+ // Try to find the Sales Discovery Call template as default, otherwise use first available template
2530
+ const defaultTemplate = templates .value .find ((t ) => t .name === ' Sales Discovery Call' ) || templates .value [0 ];
2536
2531
if (defaultTemplate ) {
2537
2532
selectedTemplate .value = defaultTemplate ;
2538
2533
console .log (' 📌 Selected default template:' , defaultTemplate .name );
0 commit comments