pxlrbt / filament-activity-log

Spatie activity log integration into Filament
MIT License
126 stars 24 forks source link

Navigation: Table/Record page action to access activities page #15

Closed nikspyratos closed 11 months ago

nikspyratos commented 11 months ago

👋 Heyo. Neat package!

I've followed the installation instructions and I've noticed there is no direct way to navigate to a given user/model's activities other than directly going to /{record}/activities. Am I missing something, or would it be good to have actions to access activities from the List and View pages?

I can have a crack at it over the weekend, but wanted to highlight it for now.

pxlrbt commented 11 months ago

Not sure why you need an Action for that? It's basically

Action::make('activities')->url(YourResource::getUrl('activities'))
nikspyratos commented 11 months ago

Yeah, that's basically what I was going to do. Probably didn't word my issue correctly - I'm saying that this should probably be included or have a quick instruction to add.

pxlrbt commented 11 months ago

Not sure whether you have access to the resource from within an action? So it's probably not possible to build this upfront. I'll add it to the docs, to make it easier for people, even if it should be clear from Filament docs.

nikspyratos commented 11 months ago

All good, IMO every little bit of info helps 👍