Closed Bug 1950865 Opened 21 days ago Closed 15 days ago

Use LONG mode for Reps in JsonViewer

Categories

(DevTools :: JSON Viewer, enhancement)

enhancement

Tracking

(firefox138 fixed)

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(2 files)

At the moment, the JSON viewer uses TINY mode
https://searchfox.org/mozilla-release/rev/abd9894aa91438f876b3581e6e0c295bbc48f241/devtools/client/jsonview/components/JsonPanel.js#109,120,122,127-128

renderTree() {
...
  return TreeView({
...
    mode: MODE.TINY,
...
  });
}

We have plenty of room in the JSON viewer, let's use the LONG mode so we will be more consistent to what we have in the console (e.g. we'll have preview of items when tree node are collapsed)

This Reps is only displayed for JSON, where we can't have class instances,
so the curly brackets should be enough to indicate this is an object.
Also, we don't show a title for in ArrayRep, so we'll be consistent.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fec2e4fac7ed [devtools] Remove "Object" title in ObjectRep. r=devtools-reviewers,ochameau. https://hg.mozilla.org/integration/autoland/rev/70003c1a6b82 [devtools] Use LONG mode for Reps in JsonViewer. r=devtools-reviewers,ochameau
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: