panphp / pan

A simple, lightweight, and privacy-focused product analytics php package
MIT License
1.08k stars 48 forks source link

UI view and configuration file #6

Closed msamgan closed 1 month ago

msamgan commented 1 month ago

image

I added a UI view for the same table, which is available in the terminal. Also, now we have the configuration available now.

Improved UI, inspired by @mrPunyapal

tbleckert commented 1 month ago

Would be nice with a guard here, similar to Horizon and other dashboards in the ecosystem.

Gate::define('viewPan', fn ($user) =>  $user->isAdmin());

This would maybe make pan.ui.path_middlewares and pan.ui.enabled obsolete. Great work either way, would love to see this implemented.

msamgan commented 1 month ago

Would be nice with a guard here, similar to Horizon and other dashboards in the ecosystem.

Gate::define('viewPan', fn ($user) =>  $user->isAdmin());

This would maybe make pan.ui.path_middlewares and pan.ui.enabled obsolete. Great work either way, would love to see this implemented.

Thanks for the input @tbleckert . Let's hear it from @nunomaduro and the core team, and will make adjustments according to that. Lets hear what they have to say.

msamgan commented 1 month ago

I saw the configuration update. closing this to update it once the configuration update is released.

MrPunyapal commented 1 month ago

You were able to make it draft 👀