Skip to content

Conversation

@olorin99
Copy link
Contributor

Adds modlog for Mbin and lemmy (Piefed doesn't have API support yet).
Modlog is available from community menu for Mbin and from both community and user menus for Lemmy.
Also have a instance level modlog under the 'About' page in settings. We should probably add an instance page with instance info (admins, rules, etc) where this would be better placed but for now I figured under About made most sense.

Still needs a lot of testing but some feedback would be good. Should I include the deleted post/comment in the UI since you sort of expect to see unpleasant stuff in the modlog or should I obscure them.

Screenshot from 2025-12-22 23-00-46

@olorin99 olorin99 marked this pull request as draft December 22, 2025 13:12
@jwr1
Copy link
Member

jwr1 commented Dec 24, 2025

Sure, I'm a bit busy this week, but I'll take a look when I get a chance! At first glance, since the mod log is quite a dense view in general, maybe we'd want to ditch the cards and just use dividers between items (or at least see what it looks like).

@olorin99
Copy link
Contributor Author

Removed the cards and added some dividers. I reckon this does look better.
Screenshot from 2025-12-27 23-54-15

Change layout of modlog items
- Remove card.
- Add dividers between sections.
@jwr1
Copy link
Member

jwr1 commented Dec 28, 2025

Yeah, it does seem like we'd need to remove the dividers that are within each report, though. It took me a minute while looking at the screenshot, because it looked like the sections with "Content:" were a whole separate report. Besides that I think it looks pretty good, and I like the color coded flairs that are used for the different mod log types.

Fix lemmy ban type enum.
Fix modlog filter icon.
Fix navigate to mod added/removed.
@olorin99
Copy link
Contributor Author

Think I've gotten everything. Mbin has less functionality as some things aren't returned in the API response. Mod added/removed and post pinned/unpinned won't link to the corresponding item as the user and post aren't available in the response. I think everything else should work though.

@olorin99 olorin99 marked this pull request as ready for review December 31, 2025 14:47
@olorin99 olorin99 requested a review from jwr1 December 31, 2025 14:47
Copy link
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Would you be able to create an issue on https://github.com/MbinOrg/mbin/ listing everything that's missing from the modlog API?

I did notice the row for posts that has the user/community is able to overflow:

@olorin99
Copy link
Contributor Author

olorin99 commented Jan 3, 2026

Made an issue here.

The user/community info should wrap now when there's not enough space.
Screenshot from 2026-01-03 22-07-41

It's the same widget thats used for posts and comments so the user/community will wrap there too.
Screenshot from 2026-01-03 22-06-49

@jwr1
Copy link
Member

jwr1 commented Jan 3, 2026

Made an issue here.

Thank you!

The user/community info should wrap now when there's not enough space.

I could be remembering wrong, but I believe previously the content info widget should have truncated the community and user names to prevent overflowing, so I thought we could just do the same here. I could work on that though, unless you want to.

@olorin99
Copy link
Contributor Author

olorin99 commented Jan 4, 2026

That would be better. I looked through the diff of #304 with the post layout change and couldn't see where the user/community names would be truncated and can't think of any other PRs where it might have changed but if you have an idea of how to do it then that would be great.

@jwr1
Copy link
Member

jwr1 commented Jan 4, 2026

It took a while, but I found the commit where I made it so the names would get truncated: 36c9860

It seems like the changes have been undone at some point between then and now (probably when ContentItem was reworked), as the published version of the app has the names overflowing.

Switch from manual padding of content info items to using row spacing.
@olorin99
Copy link
Contributor Author

olorin99 commented Jan 5, 2026

Awesome thanks. Was just missing correct placement of Expanded and Flexible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants