-
Notifications
You must be signed in to change notification settings - Fork 680
Report a crate with a form #9496
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
Conversation
e692dcb to
753dd97
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9496 +/- ##
==========================================
+ Coverage 89.10% 89.13% +0.02%
==========================================
Files 286 285 -1
Lines 29039 29026 -13
==========================================
- Hits 25876 25872 -4
+ Misses 3163 3154 -9 ☔ View full report in Codecov by Sentry. |
A report form will display in a dialog when the report button is clicked. Users must select reasons and provide detail information (required when the "other" reason is chosen) before submitting.
39f6111 to
f67bb18
Compare
f67bb18 to
0c6a1ae
Compare
|
sweet, thank you! I was about to start on something similar :D looks mostly good to me, but I'm wondering about the decision to use a dialog. I think I would've used a fullscreen route like |
Actually, a route would also work and probably fits better with crates.io's design since we don't currently rely on modals UI. However, I also think this relatively simple operation would work with a dialog, which has the benefit of not interrupting the current workflow and avoids navigating to another location. However, some users might have trouble with a dialog on certain browsers(?). Ultimately, I think both are valid options, and I don't have a strong preference, I'm also Ok report in a new page if it's more suitable 😉 . |
|
I'm also unsure what caused the UI difference in the README rendering test (I don't know how to set up local README rendering 🙈 ). This issue might also be resolved with a new page implementation. |
I was mostly worried about the UX on mobile. it's possible to make dialogs work decently on mobile devices, but from my experience it's quite hard, which is why I tend to avoid dialogs if possible :D the report button was somewhat inspired by the one on npmjs.com. there it links to something like https://www.npmjs.com/support?inquire=security&security-inquire=abuse-or-spam, which is also a full-page contact form.
it seems that we have some sort of race condition between our Percy snapshots and the mermaid diagram rendering, though I've only noticed it on the playwright test suite so far. we might need another instruction to wait for the diagram to finish rendering before we take the snapshot. |
Fair enough!
Yeah, this is a great one that we can learn from.
Oh, that's interesting. I haven't encountered this issue before. Thanks for the information. |
I'm undecided on this one. What do you think? It's probably easiest to start with the former and incrementally evolve it into the latter? We also still have #7081 open, which could be solved by either having another dedicated "Report User" page, or make it an option on the general report page. |
Then I lean toward a more general contact support page, starting with simple options (like a single option "Report a crate or user") and gradually expanding them later. Do we already have a list of the support services we offer? (We might need feedback from others who handle support.) |
not really. we could take a look at the support requests that we've received and handled in the past, but we would probably need some sort of generic option anyway. the most common request is from author who would like to have their crates deleted for various reasons, but that should be covered by the crate deletion RFC implementation "soon". |
|
@Turbo87 I have experimented full-page fashion, and most flows follow npm. I'll try to open a PR later sometime. The designs and wording need further refinement in that PR. |
|
superseded by #9529 |
|
☔ The latest upstream changes (presumably #9529) made this pull request unmergeable. Please resolve the merge conflicts. |


A report form will display in a dialog when the report button is clicked.
Users must select reasons and provide detail information (required when the "other" reason is chosen) before submitting.
Closes #9478
Screenshots: