Remi Hindriks
Remi Hindriks
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
@Haydra In my case it turned out the records were eager loading a ton of extra data. Which made the memory fill up. None was needed in my table or export. so i solved it by adding withoutGlobalScopes() to my table query
26 replies
FFilament
Created by Remi Hindriks on 10/11/2024 in #❓┊help
afterStateUpdated not firing when removing from multiple FileUpload
i worked around it using
document.addEventListener('FilePond:removefile', (e) => {
$wire.updateImagePreviews();
});
document.addEventListener('FilePond:removefile', (e) => {
$wire.updateImagePreviews();
});
but shouldnt this work out of the box?
3 replies
FFilament
Created by Remi Hindriks on 8/6/2024 in #❓┊help
isLimited combined with getTableRecordActionUsing breaks
@Dennis Koch certainly: a User hasMany InstructorLevel created a custom Livewire table component like you always would add
protected function getTableRecordActionUsing(): ?Closure
{
return fn (): string => 'view';
}
protected function getTableRecordActionUsing(): ?Closure
{
return fn (): string => 'view';
}
TextColumn::make('instructorLevels')
->label(__('Instructor level'))
->color('warning')
->getStateUsing(function (Customer $record) {
$levels = $record
->levels()
->orderByDesc('level')
->get()
->unique('discipline_id');

return $levels->map(fn ($item) => $item->discipline->name . '-' . ($item->level));
})
->badge()
->expandableLimitedList()
->limitList(2)
->listWithLineBreaks()
->distinctList(),
TextColumn::make('instructorLevels')
->label(__('Instructor level'))
->color('warning')
->getStateUsing(function (Customer $record) {
$levels = $record
->levels()
->orderByDesc('level')
->get()
->unique('discipline_id');

return $levels->map(fn ($item) => $item->discipline->name . '-' . ($item->level));
})
->badge()
->expandableLimitedList()
->limitList(2)
->listWithLineBreaks()
->distinctList(),
Console gives error, "show more" isnt shown. When you inspect the code, you find the button to toggle isLimited is outside the x-data scope where islimited is defined. a button element is added around the <ul> element that triggers the view action. Which closes before the show-more-button
5 replies
FFilament
Created by Remi Hindriks on 7/19/2024 in #❓┊help
multiselect creates groups after selecting first item
For future searchers: My issue was my array:
[
['Schoonhoven' => 'Schoonhoven'],
['Schoonloo' => 'Schoonloo'],
...
]
[
['Schoonhoven' => 'Schoonhoven'],
['Schoonloo' => 'Schoonloo'],
...
]
It shouldnt be multi level, the correct array was:
[
'Schoonhoven' => 'Schoonhoven',
'Schoonloo' => 'Schoonloo',
...
]
[
'Schoonhoven' => 'Schoonhoven',
'Schoonloo' => 'Schoonloo',
...
]
3 replies
FFilament
Created by Samus_Aran on 6/16/2024 in #❓┊help
Form with Textarea on custom widget causing JS errors
for future ref: in my case i fixed it in the panelbuilder because i forgot to add
"post-autoload-dump": [
"@php artisan filament:upgrade"
],
"post-autoload-dump": [
"@php artisan filament:upgrade"
],
78 replies
FFilament
Created by Samus_Aran on 6/16/2024 in #❓┊help
Form with Textarea on custom widget causing JS errors
How would this work in the panel builder?
78 replies
FFilament
Created by Samus_Aran on 6/16/2024 in #❓┊help
Form with Textarea on custom widget causing JS errors
running in to the same issue in the adminpanel.
ReferenceError: height is not defined
at [Alpine] { height }
ReferenceError: height is not defined
at [Alpine] { height }
on the Textarea field.
78 replies
FFilament
Created by Remi Hindriks on 7/8/2024 in #❓┊help
ExpandableList isLimited not defined Tables Package
<div>
<h6>
{{ __('Students in this group') }}
</h6>
<div class="filament-table-overview">
<div class="bg-wave-foam p-4 rounded-lg">
{{ $this->table }}
</div>
</div>
</div>
<div>
<h6>
{{ __('Students in this group') }}
</h6>
<div class="filament-table-overview">
<div class="bg-wave-foam p-4 rounded-lg">
{{ $this->table }}
</div>
</div>
</div>
what could break alpine in this?
7 replies
FFilament
Created by Remi Hindriks on 7/8/2024 in #❓┊help
ExpandableList isLimited not defined Tables Package
yes, and the latest (3.2)
7 replies
FFilament
Created by camya on 5/22/2024 in #❓┊help
Form in Livewire: Disable Submit-Button, while a file uploads?
did you ever solve this?
9 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
of what exactly?
26 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
Alright, tried again, application froze, but Telescope didnt register a request
26 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
I just did, as soon as i hit the bulk action button, the application froze, Telescope included 😄
26 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
No description
26 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
No, they both should be able to handle this i believe
26 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
When i show 50 records, and click "select all record" and then do the bulk action, it freezes. Im not showing all records on the table, if thats what you thought sorry. This is what im doing. Showing 50 records, the table has 400 in total, select 1 page, click "select all records", click the bulk actions -> application freezes
26 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
Yes, i know. So are you saying that a bulk action on more records is impossible using filament?
26 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
the 400 records example was with the debugbar turned off. With it turned on it was even less.
26 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
Like i said, the exporter isnt even being reached. This isnt an exporter issue, its a bulk action issue. The exporter was an example. If i make a custom Action that just updates a column, or sends and email for each record, the same issue occures
26 replies
FFilament
Created by Remi Hindriks on 4/30/2024 in #❓┊help
Bulk Actions Large Datasets
Im using the Filament Exporter, but the action isnt even being reached. It feels like the action first tries to get all the selected records in memory, and then execute the action. But the getting the models in memory part is where it freezes. Any bulk action with this amount of records freezes
26 replies