khakers / modmail-viewer

An advanced web frontend for the modmail discord bot with built in Discord OAuth2 authentication, and support for browsing and searching current and historical logs. Directly replaces logviewer.
MIT License
10 stars 4 forks source link

Sessions log #69

Open paolojpa opened 1 year ago

paolojpa commented 1 year ago

I want to suggest as an addition a sessions log, where you can see directly in the dashboard who logged in/logged out.

khakers commented 1 year ago

a very WIP view of what audit logging may look like 127 0 0 1_audit_6487ac44bb1ece08fcec5518

paolojpa commented 1 year ago

Nice implemented, I think the event id and the source field could be omitted?

khakers commented 1 year ago

Nice implemented, I think the event id and the source field could be omitted?

Event ID has to be present for database reference reasons and it's how you view an individual entry through the web interface (https://127.0.0.1/audit/6485472b688d4919a3e558dc) so there's no real reason to omit it on the ui when it doesn't take up much space.

Source probably could be omitted, but I originally wanted a way to specify where an event originated i.e. modmail-viewer or the bot itself. very much not decided if it'll end up staying.

khakers commented 1 year ago

Now have a basic modmail implementation for pushing events mongodb database entry (from modmail) It's not going to be plug and play, but I'll have more information on that later once it's closer to being complete.

khakers commented 1 year ago

PR for tracking of modmail integration: https://github.com/raidensakura/modmail/pull/10

khakers commented 1 year ago

much closer to complete view of the audit log page (ignore unlocalized strings) 127 0 0 1_admin (2)

khakers commented 1 year ago

Should be merged into develop soon™️