File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 49
49
run : composer show -D
50
50
51
51
- name : Execute tests
52
- run : vendor/bin/pest --ci --bail --compact --memory --coverage --parallel
52
+ run : vendor/bin/pest --ci --bail --compact --memory --coverage
Original file line number Diff line number Diff line change @@ -281,7 +281,10 @@ public function mapTableFilter(BaseFilter $filter): array
281
281
$ baseInfo ['usage ' ] = 'Please use the form schema to filter the data. ' ;
282
282
$ baseInfo ['type ' ] = 'form ' ;
283
283
$ baseInfo ['form ' ] = collect ($ filter ->getFormSchema ())
284
+ ->reject (fn (Component $ component ) => $ component instanceof Grid || $ component instanceof Fieldset)
284
285
->map (fn (Component $ component ) => $ this ->mapFormComponent ($ component ))
286
+ ->filter ()
287
+ ->values ()
285
288
->all ();
286
289
}
287
290
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ public function build(): PrismTool
32
32
try {
33
33
$ listPageClass = $ resource ::getPages ()['index ' ];
34
34
$ component = $ listPageClass ->getPage ();
35
+
36
+ /** @var InteractsWithTable $listPage */
35
37
$ listPage = new $ component ;
36
38
$ listPage ->bootedInteractsWithTable ();
37
39
$ table = $ listPage ->getTable ();
@@ -44,6 +46,8 @@ public function build(): PrismTool
44
46
$ listPage ->tableSearch = $ filters [$ column ->getName ()];
45
47
});
46
48
49
+ $ listPage ->resetTableFiltersForm ();
50
+
47
51
foreach ($ listPage ->getTable ()->getFilters () as $ filter ) {
48
52
if (method_exists ($ filter , 'isMultiple ' ) && $ filter ->isMultiple ()) {
49
53
$ listPage ->tableFilters [$ filter ->getName ()] = [
@@ -65,8 +69,6 @@ public function build(): PrismTool
65
69
}
66
70
}
67
71
68
- dump ($ listPage ->tableFilters , $ filters );
69
-
70
72
// TODO: Allow the tool to specify the number of results to return with a max
71
73
$ results = $ listPage ->getFilteredTableQuery ()->take (10 )->get ();
72
74
You can’t perform that action at this time.
0 commit comments