This task is about helping people understand the following:
- Currently [i], one Reply tool can be open at a time on a given page.
- Said another way: people are only able to draft one comment at a time using the Reply tool on a given page.
- To reply to another comment on a given page using the Reply tool, the Reply tool cannot be open anywhere else on the page.
Current situation
In usability testing (T246191), people reported the following issues:
- It can be difficult to use the Reply tool to respond to a comment while trying to view content elsewhere on the page. In these cases, it's likely you are not able to simultaneously see: i) the comment(s) you are wanting to view to inform the response you are writing and ii) the text input area where you are drafting said response. [ii] [iii]
- After clicking a "Reply" link, it can be confusing/unexpected/unclear why you are unable to use the Reply tool to respond to a different comment on that same page. [ii] [iii]
Approaches
A living list...
- Approach 1: All [ reply ] links remain clickable, regardless of whether the Reply tool is open elsewhere on the page.
- If someone were to click a [ reply ] link (call it, "Reply link 2") after already opening the Reply tool (call it, "Reply tool 1") elsewhere on the page without having already starting a comment, silently discard "Reply tool 1" and open "Reply tool 2."
- If someone were to click a [ reply ] link (call it, "Reply link 2") after already opening the Reply tool (call it, "Reply tool 1") elsewhere on the page with already having started a comment, show a dialog informing them that should they continue the comment they started drafting in "Reply tool 1" will be discarded.
- Approach 2: change the [ reply ] link message when the tool is open elsewhere on the page.
- For this message to be successful, people would need to see it and understand the following (copied from above):
- One Reply tool can be open at a time on a given page.
- To reply to another comment on a given page using the Reply tool, the Reply tool cannot be open anywhere else on the page.
- Note: if this approach were to be taken, we'd need to figure out how to prevent the page from changing shape because of differences in text wrapping.
- For this message to be successful, people would need to see it and understand the following (copied from above):
- Approach 3: resolve T252558 and allow people to compose multiple comments using the Reply tool in parallel.
- In this scenario, were someone to draft two comments (Comment 1 and Comment 2) and then post Comment 1, the entire page would be reloaded, Comment 2 would be restored and a hint would be shown informing the user as much.
Open questions
- What would be involved with implementing T218663 which could resolve the issues in this ticket.
- This ticket does NOT depend on T218663. See T257176#6285119 for reasons why.
- What would be involved with implementing T252558 which could resolve the issues in this ticket.
- The patches to implement the behavior T252558 is asking for have been written. Code review and thorough testing still need to be done. See: T257176#6298110
Done
- An approach is decided
- All open questions are resolved
i. This constraint will be removed once T218663 is implemented
ii. @TheDJ: https://w.wiki/SYs
iiii. @Dvorapa: https://w.wiki/SYt