Mark Chaney
Mark Chaney
FFilament
Created by Kaaiman on 6/26/2024 in #❓┊help
Doughnut chart lines
Yep, we disabled them as well. Makes no sense to have them on pie and donut charts
8 replies
FFilament
Created by Shaung Bhone on 6/7/2024 in #❓┊help
Pesting form builder with upload file
did you get this working? I think version 3.2.83 breaks single file uploads as it converts them all to an array regardless. My production code works and nothing changed but now the tests fail and its because of https://github.com/filamentphp/filament/commit/888701082d4ccc371d194041bbe53c4f4b9b00f1#diff-eab80cbdc04e95db87de932c13eb10bc20b8734a930ff88999fa3777e784971bR46
13 replies
FFilament
Created by Mark Chaney on 6/4/2024 in #❓┊help
Database Notifications on Vapor
looks like i had to statically set
'default' => 'null',
'default' => 'null',
in broadcasting.php to force it not to use broadcasting. really weird.
3 replies
FFilament
Created by MZX on 5/24/2024 in #❓┊help
Automatically set input field through the input of another field?
You would use afterStateUpdated() with $state and $set(‘price’) to do it. Why are you using an enum for packages? Isn’t the package resource a table of packages with names and associated prices?
7 replies
FFilament
Created by Pritbor on 5/9/2024 in #❓┊help
How to use CreateAction while creating record
did you try overriding the the form using ->form() on it?
5 replies
FFilament
Created by Mark Chaney on 1/31/2024 in #❓┊help
Tips for testing Wizard Steps?
right, but a key part of wizard validation would be testing at each step. Could be able to get to step 2 until step 1 validates
12 replies
FFilament
Created by Mark Chaney on 1/31/2024 in #❓┊help
Tips for testing Wizard Steps?
I think you ahve to simply ->call('next') or something like that
12 replies
FFilament
Created by Mark Chaney on 5/3/2024 in #❓┊help
Custom ValidationMessages for minDate/maxDate
No description
4 replies
FFilament
Created by Mark Chaney on 5/3/2024 in #❓┊help
Custom ValidationMessages for minDate/maxDate
actually i think this is now working. hmm, i need to double check. i Know my macro version is at least working for a different requirement set. Need to double check this global one
4 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
got it all working now with some comments and simplified a little
Livewire::test(RftaResource\RelationManagers\ComparableUnitsRelationManager::class, [
'pageClass' => RftaResource\Pages\ViewRfta::class,
'ownerRecord' => $rfta,
])
->assertCanSeeTableRecords(collect([$comparable]))
// Mount the ViewAction modal for the specified comparable unit record
->mountTableAction(ViewAction::class, record: $comparable->id)
// Assert that the $action is present in the ViewAction modal
->assertSee($action)
// Mount the $action within the ViewAction modal
->call('mountTableAction', $action)
->setTableActionData([
'note' => $note,
])
->assertTableActionDataSet([
'note' => $note,
])
// Call the mounted table $action and handle any confirmation modals
->callMountedTableAction()
// Assert that there are no errors during the table action execution
->assertHasNoTableActionErrors();
Livewire::test(RftaResource\RelationManagers\ComparableUnitsRelationManager::class, [
'pageClass' => RftaResource\Pages\ViewRfta::class,
'ownerRecord' => $rfta,
])
->assertCanSeeTableRecords(collect([$comparable]))
// Mount the ViewAction modal for the specified comparable unit record
->mountTableAction(ViewAction::class, record: $comparable->id)
// Assert that the $action is present in the ViewAction modal
->assertSee($action)
// Mount the $action within the ViewAction modal
->call('mountTableAction', $action)
->setTableActionData([
'note' => $note,
])
->assertTableActionDataSet([
'note' => $note,
])
// Call the mounted table $action and handle any confirmation modals
->callMountedTableAction()
// Assert that there are no errors during the table action execution
->assertHasNoTableActionErrors();
21 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
that looks to be the only difference
21 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
so it looks like the issue was really more with me doing
->mountTableAction('approveAction')
->mountTableAction('approveAction')
originally, which while was fine if i wanted to call just that action, but didnt allow the follow up ->callMountedTableAction() to handle the confirmation? Thus i had to do
->call('mountTableAction', 'approveAction', $comparable->id)
->call('mountTableAction', 'approveAction', $comparable->id)
instead before it?
21 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
btw, thanks for jumping in and helping me with test issues. i really appreciate it
21 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
sorry, just trying to wrap my head around it all so i can solve future issues. The inconsistency is what throws me a bit with some of this
21 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
why is the approve action not a table action if it is indeed a table action class?
21 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
right, but where are you targeting the confirmation
21 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
that seems to work, thanks! so why this way of doing it?
21 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
No, they are completely overriden with modalFooterActions()
21 replies
FFilament
Created by Mark Chaney on 4/19/2024 in #❓┊help
Testing and requiresConfirmation
@Leandro Ferreira it does and processes great if i do not have requiresConfirmation() on that action, but as soon as I add it back, it doesnt complete
21 replies
FFilament
Created by Mark Chaney on 4/8/2024 in #❓┊help
DatePicker First of the Month only
not sure where you keep getting two dates from. Its simply going to be a the 1st of any month of an year. single field. End result would be storing 04/01/2024 or 12/01/2030, etc
11 replies