-
Notifications
You must be signed in to change notification settings - Fork 13
Configure window reps title #73
Configure window reps title #73
Conversation
cc @nchevobbe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this commit (d91aeaa) shouldn't be part of this PR ?
Sure, doesn't prevent us from discussing though :) |
6ae4fd8
to
ec69508
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks good, thanks for the fix :)
ec69508
to
83ea3e6
Compare
Thanks for the feedback @nchevobbe ! |
(actually I'll wait for you to merge your big PR, and I'll rebase on top of it) |
it's merged now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test seems good :)
Would you mind adding some test to make sure we don't pass the title
props to children when we don't need, fro grip and grip-array ?
0e370a5
to
69384d8
Compare
69384d8
to
06f354c
Compare
I added some simple tests in the existing test file for grip, grip-array and grip-map. I also added support for custom titles for grip array and grip maps, otherwise the tests were a little weird (we were defining a custom title that wasn't visible anywhere in the output) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great 👍
This is an attempt at fixing #47
Instead of introducing the debugger.html specific isGlobal check, I wanted to reuse the "title" property already used in a few reps.
This made me realise that we had a bug with grip and grip-array reps which were copying their title prop to their children. The first commit fixes that (as well as updating a test that relied on the bug).
The second commit adds the title prop to the window rep, as well as a TINY render mode. This means that now window objects will be rendered as Window (or their customized title) when they are rendered in TINY mode.
Comparing with the old console, this is a behaviour change, as the old console always displayed
Window -> url
it seems. I think this is an acceptable change though (and Chrome only displaysWindow
for instance).I'll wait for your feedback before adding tests dedicated to that.