F
Filament5mo ago
dissto

[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!
0 Replies
No replies yetBe the first to reply to this messageJoin