-
Notifications
You must be signed in to change notification settings - Fork 35
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
Refactor completion widget #2388
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2388 +/- ##
==========================================
- Coverage 23.48% 23.38% -0.11%
==========================================
Files 651 649 -2
Lines 22583 22514 -69
Branches 6938 6902 -36
==========================================
- Hits 5304 5264 -40
+ Misses 14455 14425 -30
- Partials 2824 2825 +1 ☔ View full report in Codecov by Sentry. |
3482e68
to
a496453
Compare
9c13b60
to
a555025
Compare
Im pretty sure that when a logged in user opens a task when the link is formatted like https://maproulette.org/challenge/${challengeId}/task/${taskId}, the task is automatically locked. I had a discussion with @mvexel, and if i remember correctly, we concluded that the cancel editing button had no effect on the editors and only served to revert the widget state back to the editor selecting view. If a user ever wanted to open multiple editors, or believed that canceling editing had an effect other than changing the widgets state, that could lead to confusion. Now to answer your inspect task question on the marker popups, i think you are right, it's not related to this pr, but i do think that adding back that functionality would be useful. Also, since a task is automatically locked when opening a task in the link format described above, we might want to reevaluate any instances of that format to see if the user should be directed to the inspect view of a task instead.
The new dropdown was added to resolve this ticket: #920, It always shows all the editors and allows users to open editors they wouldn't usually be able to in a cooperative or tag fix challenge. I like the new button idea you are suggesting, if its something that we would want to move forwards with, do you have any opinions on how/if we should implement the above feature request. |
Thanks for the detailed explanations. Re: "locking" a task, I had assumed that there was some functionality tied to this action on the backend to help prevent multiple users from working on the same task at the same time. I think Tasking Manager has something like this and I may have misunderstood the intent of the MR feature through that lens. Re: the dropdowns, I need to read the feature request you linked and play around with that user flow to understand the situation better. I hadn't realized that the two dropdowns might sometimes show different lists of editors (I forgot that challenge authors can specify which editors should be used, and that tag fix challenges don't actually require use of any editor). I'll reply here if I have any ideas about how to support that with a single dropdown. |
Pardon me if I misremember or misrepresented originally -- there is definitely value in being able to actively unlock a task to abandon work on it. This is perhaps sort of similar to skipping, but it doesn't add a state change to the task and doesn't move on to the next one. @jake-low locking a task does prevent others from working on it afaik. It should, for sure. Opening a task in multiple editors definitely has value and we should move forward with this but I agree the two dropdowns are too confusing. I like the idea of having a 'picker dropdown' as well. |
e1e920a
to
0082c21
Compare
The design of the picker looks good to me at this point. I'm not 100% sure about the pattern of having both selection items and clickable links in the same dropdown, but the link icons help differentiate them (idea: a checkmark next to the currently selected editor would help make it more clear that the top section is a selection list). I also think it might be nice to wrap the buttons (both the UserEditorSelector and the other task completion buttons) in a flex container so that if there's extra space they can grow a bit bigger. Anyway, the current state of this PR is an improvement over what we have today and we can iterate more on it in the future. I'm still not completely clear on whether this PR removes a user's ability to explicitly unlock a task they're working on - it seems to from my testing but that might be user error on my part. |
I spoke with Collin about this concern and I don't really see a risk here. Locking isn't tied to this widget or to opening an editor, it's only tied to landing on the task inspection page. There should be no change. |
23186ea
to
ec9012a
Compare
0f0ac55
to
285d4cd
Compare
285d4cd
to
a6bcba0
Compare
Implemented to allow multiple editors to be opened per task without having to click the "cancel editing" button. Buttons now also have a set width so that they can now be inline if the width of the widget is wide enough allowing for more customization option for a users widget layout.
This was also added to resolve: #920.

Users will now be able to open unsupported editors for cooperative and tag fix challenges in the edge case user workflow where that is desired.