Repository navigation
38 remove or unapprove single post and other fixes - #52
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
can report posts
fix user profile page
can remove posts from feed
Closes #38