Closed Bug 1614028 Opened 6 years ago Closed 11 months ago

Redesign the Sources>Directory Root UI

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(firefox139 fixed)

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: fvsch, Assigned: hbenl)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

When using the "Set directory root" feature in the context menu in Sources, the resulting UI is not super obvious. Some issues:

  1. It's not obvious how to go back to the general view. (Currently we can click the whole "header" row to go back. It has a tooltip on hover: "Remove directory root".)
  2. We're losing visual information on what kind of element was selected as the root: a domain, an extension, a folder?
  3. When we select a folder which has a generic name ("js", "dist", "components"), we lose domain and path information.
  4. Visual polish: the icon size and spacing could be more consistent with other Debugger UI.
Attached image mockup-1.png

A mock-up I did a few months ago:

  • Rather than "Home > [selected]" which implies a parent-child relationship, use a common "Title and back button" navigation pattern.
  • On hover on the back button, we should keep the "Remove directory root" tooltip.
  • On hover on the title, we could show the full URL to the selected root (e.g. https://example.com/selected/folder/)

Source: Figma doc

Question: to help with ambiguous root names (e.g. "dist", "js"), should we show more information? We could use the full URL, clipped on the left:

| ⬅︎ | https://www.gatsbyjs.org/blog   |

for a longer URL:

| ⬅︎ | …17-09-13-why-is-gatsby-so-fast |

Pros:

  • Show relevant information quicker
  • More information for short directory names

Cons:

  • Noisier
  • URLs not ideal for extensions
Blocks: dbg-frontend
Priority: -- → P3
Severity: normal → S3
See Also: → 1893072
Assignee: nobody → hbenl
Status: NEW → ASSIGNED
  • use the back icon instead of the home icon and a different separator
  • show the directory root's full URL and thread name in the tooltip
Pushed by hbenl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e86f6f08cbc1 [devtools] Redesign the directory root UI. r=devtools-reviewers,nchevobbe

Backed out for causing dt failures on browser_dbg-project-root.js, browser_parsable_css.js

Backout link

Push with failures

Failure log / Failure log 2

Flags: needinfo?(hbenl)
Pushed by hbenl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7451144df2ea [devtools] Redesign the directory root UI. r=devtools-reviewers,nchevobbe
Flags: needinfo?(hbenl)
Flags: needinfo?(hbenl)
Pushed by hbenl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/082f956a13e5 [devtools] Redesign the directory root UI. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: