dissto
dissto
FFilament
Created by dissto on 1/20/2024 in #❓┊help
[UX] How to convey a limit for a resource?
How would you convey a limit (for creating a record) to a resource? Once the limit is reached you are no longer allowed to create a new record via a Resource. For example lets assume I have a ProductResource with an underlying Product model. I want to impose a 500 record limit. What would be a good UX to do that? I have considered the folllwing options: - disabling the create button in the ListProducts - (I can no longer use a tooltip or the action itself for that matter) - creating a new "dummy" action that will be only visible once that limit was reached, the action can be null and i could show a form with a placeholder - (essentially that would open a modal informing the user that a limit was reached; bonus I could use a tooltip on that "dummy" action) - intercept the regular create action - (bad because the user has already entered all the data before the ->before() was even hit) - dont show the action at all - (bad for obvious reasons) Im curious as this appears to be a common problem but I couldn't really find a proper "laravel"/"filament" way for it. Cheers!
2 replies
FFilament
Created by dissto on 8/29/2023 in #❓┊help
Adding Icons to Relation Manager Tabs
No description
6 replies
FFilament
Created by dissto on 8/2/2023 in #❓┊help
Global search image preview
Is there currently a built-in way to show an image in the global search results? Or pass a custom view somehow? I can't find anything in the docs for that (but that doesnt mean anything 😁)
2 replies