Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: radix image report #477

Open
wants to merge 1 commit into
base: feat/radix-image-upload
Choose a base branch
from

Conversation

kriskbx
Copy link
Member

@kriskbx kriskbx commented Jan 8, 2025

This adds the report feature back, rebuilt with radix. I decided to go with a popover menu instead of an extra dialog to improve the overall user-experience. This means the report is not accessible via it's own URL anymore, as it is rather an action inside of the image fullscreen view instead of its own page. I doubt that there are any deep-links, but just in case, there's a (hacky) redirect in place. One interesting thing happens, when reporting an image: it will instantly be flagged as needs-moderation and thus is not visible in Wheelmap anymore. That's why, there is quite some edge-case code in the report-popover when closing the success-message. I also cleaned up a lot of old photo-related stuff that seemed to be not in use anymore.

before testing locally

You might need to run npm ci as it based on the file-upload branch which introduced new dependencies.

@kriskbx kriskbx requested review from opyh and Mayaryin January 8, 2025 16:27
@kriskbx kriskbx force-pushed the feat/radix-image-report branch from f2c203a to c09438e Compare January 9, 2025 08:54
Copy link

@Mayaryin Mayaryin left a comment

Choose a reason for hiding this comment

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

Looks very good to me and works on Chrome! Great work :)

Choose a reason for hiding this comment

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

In my opinion, this component could be merged with SuccessScreen.tsx into one reusable component like "MessageScreen" or so, which would make it easer to apply changes in layout later. But this is not a blocker :)

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.

2 participants