File tree 5 files changed +27
-17
lines changed
resources/js/Pages/Collection
5 files changed +27
-17
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ public function handle(Source $source): array
46
46
47
47
$ foldersToCheck = explode (', ' , trim ($ source ->secrets ['email_box ' ]));
48
48
49
+ $ foldersToCheck = collect ($ foldersToCheck )->map (function ($ folder ) {
50
+ return str ($ folder )->lower ()->toString ();
51
+ })->toArray ();
52
+
49
53
$ secrets = $ source ->secrets ;
50
54
51
55
$ config = [
@@ -83,10 +87,14 @@ public function handle(Source $source): array
83
87
84
88
foreach ($ folders as $ folder ) {
85
89
$ full_name = data_get ($ folder , 'full_name ' );
90
+
86
91
Log::info ('Checking folder ' , [
87
92
'full_name ' => $ full_name ,
88
93
'folders_to_check ' => $ foldersToCheck ,
89
94
]);
95
+
96
+ $ full_name = str ($ full_name )->lower ()->toString ();
97
+
90
98
if (in_array ($ full_name , $ foldersToCheck )) {
91
99
$ messages = $ folder ->messages ()->all ()->get ();
92
100
logger ('[LaraChain] - Email Box Count ' , [
Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ public function handle(): void
77
77
], $ this ->prompt );
78
78
}
79
79
80
- put_fixture ('prompt_being_used_summary.txt ' , $ prompt , false );
81
-
82
80
/** @var CompletionResponse $results */
83
81
$ results = LlmDriverFacade::driver (
84
82
$ this ->document ->getDriver ()
Original file line number Diff line number Diff line change 1
1
<script setup>
2
- import {computed , ref } from ' vue' ;
2
+ import {computed , onMounted , ref } from ' vue' ;
3
3
import Tags from ' @/Components/Tags.vue' ;
4
4
import ShowDocument from ' @/Pages/Collection/Components/ShowDocument.vue' ;
5
5
import DocumentReset from ' @/Pages/Collection/Components/DocumentReset.vue' ;
6
6
import ActionDeleteDocuments from " @/Pages/Collection/Components/ActionDeleteDocuments.vue" ;
7
7
import ActionCreateFilter from " @/Pages/Collection/Components/ActionCreateFilter.vue" ;
8
8
import Filters from " @/Pages/Collection/Components/Filters.vue" ;
9
9
import ManageFilters from " @/Pages/Collection/Components/ManageFilters.vue" ;
10
+ import {router } from " @inertiajs/vue3" ;
11
+ import {useToast } from " vue-toastification" ;
12
+
13
+ const toast = useToast ();
10
14
11
15
const props = defineProps ({
12
16
collection: {
@@ -53,6 +57,19 @@ const emptyDocumentIds = () => {
53
57
console .log (" Resetting documents" );
54
58
selectedDocuments .value = new Set ()
55
59
}
60
+ onMounted (() => {
61
+ Echo .private (` collection.${ props .collection .id } ` )
62
+ .listen (' .status' , (e ) => {
63
+ console .log (e .status );
64
+ router .reload ({ only: [' documents' ] })
65
+ let message = e .message ;
66
+ if (message) {
67
+ if (message !== ' Processing Document' ) {
68
+ toast .info (message)
69
+ }
70
+ }
71
+ });
72
+ });
56
73
57
74
58
75
Original file line number Diff line number Diff line change @@ -69,19 +69,7 @@ const closeEditCollectionSlideOut = () => {
69
69
showEditCollection .value = false ;
70
70
};
71
71
72
- onMounted (() => {
73
- Echo .private (` collection.${ props .collection .data .id } ` )
74
- .listen (' .status' , (e ) => {
75
- console .log (e .status );
76
- router .reload ({ only: [' documents' ] })
77
- let message = e .message ;
78
- if (message) {
79
- if (message !== ' Processing Document' ) {
80
- toast .info (message)
81
- }
82
- }
83
- });
84
- });
72
+
85
73
86
74
const reset = () => {
87
75
// router.reload();
Original file line number Diff line number Diff line change 7
7
use App \Domains \Sources \SourceTypeEnum ;
8
8
use App \Models \Source ;
9
9
use Tests \TestCase ;
10
- use Webklex \PHPIMAP \ClientManager ;
11
10
use Webklex \PHPIMAP \Support \FolderCollection ;
12
11
13
12
class EmailClientTest extends TestCase
You can’t perform that action at this time.
0 commit comments