Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11140

We should not automatically select the first file of the list when landing on the measure page

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4
    • Component/s: Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      When I land of the project measures page, the first file is automatically selected for me. This might be misleading because when switching from a measure to another we try to find back the previously selected file in the new list and scroll to it.

      So in the current situation when I select Coverage on new code, the first file in the list is auto-selected :

      Then when I switch to Overall coverage, the selected file is retained, and the page surprisingly auto-scrolls to it:

      And this is not expected at all because I didn't select any file...

      So what we should do is:

      • Select "nothing" when first landing on the measures page
      • Continue to try to scroll to the previous selection when the same file is in the list
      • But reset file selection to "nothing" if the previous selection is not found in the list

        Attachments

          Activity

            People

            Assignee:
            gregoire.aubert Gregoire Aubert
            Reporter:
            gregoire.aubert Gregoire Aubert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: