Skip to content

38 remove or unapprove single post and other fixes - #52

Merged
topsinoty merged 8 commits into
mainfrom
38-remove-or-unapprove-single-post
Oct 17, 2026
Merged

topsinoty merged 8 commits into
mainfrom
38-remove-or-unapprove-single-post

Conversation

@topsinoty

Copy link
Copy Markdown
Contributor

Summary

can report posts
fix user profile page
can remove posts from feed

Closes #38

…rt one

A task can be kept off the feed when it is created or edited. Admins can remove a single post from the feed, keeping its points, and undo it, or unapprove it, which rejects the proof and reverses its points once in the ledger. Signed-in users can report a post with a reason; admins are notified and see reports in a Reported tab on the review page. Photos of posts off the feed are only shown to their owner and admins.

Closes #38
Task titles get a base width, so the labels wrap below instead of squeezing the title to one letter. The profile column no longer grows to fit a long history title, which made the page wider than the screen.
Leaving the cooldown field stored its raw text, so a valid value like 7d failed on submit. A bare 0 now means no cooldown.
On an own task's review card, Edit task opens the title, details and category next to the points. They are saved with the approval in one transaction; the pixel's answer and photos stay as sent.
The task page showed "Done" after any approved proof, so a repeatable task listed as open could not be submitted again. It now uses the same availability as the task list: once the cooldown ends, the proof form is back.
…re hidden

Likes and comments are refused on posts that are off the feed, except from admins. Photos are checked with one small query again instead of loading the whole proof. Admins also see posts from tasks kept off the feed, marked with why. Reported posts show Reported instead of the report option. The seed now has a removed post, an unapproved proof, reports and a task kept off the feed.
Posts off the feed render as dark cards with a line saying why only admins see them. The post menu is a popover, so it closes on Escape or a tap outside. The Reported card keeps its actions in one light row with Unapprove as red text, and the review tabs use shorter names so Reported fits on a phone.
From the post menu on a recognition, admins can edit its text, badges and links, remove it from the feed and undo that, or take its points back. Taking back reverses the points once in the ledger, drops its badges and takes it off the feed for everyone. Points cannot be edited; take the recognition back and publish a new one. Hidden or taken-back recognitions refuse likes and comments from non-admins. Tasks done on the leaderboard now counts only proofs that are still approved, so an unapproved proof no longer counts.
@topsinoty
topsinoty merged commit 54a1877 into main Oct 17, 2026
1 check passed
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.

Let admins remove or unapprove a single post

1 participant