Page MenuHomePhabricator

Provide UI indication you've reached the end of a Diff's comments
Closed, WontfixPublic

Description

Steps to reproduce:

  1. Open a CR with multiple notes, e.g. https://secure.phabricator.com/D8685?vs=on&id=21431&whitespace=ignore-all#toc
  2. Go to the last note
  3. Press "Next"

Expected behavior: Phabricator somehow indicates to me that I've finished reviewing all the notes

Actual behavior: Phabricator silently wraps around to the top.

I guess this is not a big deal if all the comments are real comments, but if there are a lot of lint comments, they can be a bit repetitive, and it's easy to accidentally end up back up top without realizing it.

Event Timeline

ezyang raised the priority of this task from to Needs Triage.
ezyang updated the task description. (Show Details)
ezyang added a project: Phabricator.
ezyang added a subscriber: ezyang.
chad claimed this task.

This feature works as I expect it. The behaviour is consistent with "Search & Find" interfaces on many applications like Chrome/Firefox and changing this default would likely generate a moderate level of outrage from other Phabricator users who expect it.

Most search & find interfaces give a visual cue when they wrap around, however. Would a patch along those lines be accepted?

Yeah, let's see where we end up.

chad renamed this task from "Next" link on code review comments should not wrap around to beginning to Provide UI indication you've reached the end of a Diff's comments.Oct 16 2014, 8:32 PM
chad removed chad as the assignee of this task.
chad triaged this task as Normal priority.
chad edited projects, added Differential, Design; removed Phabricator.
chad added a subscriber: chad.

@chad, do you have thoughts on where you want to go with this? I'm definitely WONTFIX on it -- e.g., neither Chrome nor Safari nor TextMate give a specific visual indicator when wrapping under "⌘G", so this feels consistent to me. I can't recall any application giving a specific wrap indication except nano, which just says [Search Wrapped].

My only thought was maybe change the text to say:

Next (back to top)

Or something along those lines. But perhaps with T1460 this is solved by a done indicator (UI color changes)

epriestley claimed this task.
  • Value seems very low.
  • Behavior is generally consistent with "Find Next" in many programs, including browsers.
  • It's a pain to compute "Next (Back to Top)" because inlines can become visible or invisible in response to a bunch of events (e.g., adding and removing comments, showing and hiding files, new files loading).
  • There may be only one inline, which would produce something goofy like "Prev (Wrap to Bottom) * Next (Back to Top)" and probably need to be special cased, further raising the complexity of the feature.
  • Use case isn't very compelling: there shouldn't ever be a lot of lint comments. If linters are raising nontrivial levels of false positives, delete them. Lint has powerful tools for excluding files, adjusting severities, etc., and particularly after .arclint these are relatively easy to configure.