-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Finish styling #52
Comments
Currently action contents is highlighted because of a little bug. It's the same highlight that highlights the state changes. However I decided to release that as is, because it's actually better (to me) when the action is highlighted. After all it's the reason something changes. We can fix the bug, but then I think action section should have a lighter background so there's more accent on it. What do you think? |
I was also wondering if you'd like to consider using react-motion for some animations. For example a very subtle "add" animation could help distinguish just inserted actions. I wonder if @threepointone is interested in experimenting with something like this. |
My thoughts were that action was already priority by nature of being first. I changed the whitespace around the content sections so the next section ( Reminds me of that quote:
Right now all the backgrounds have at least one reason for existing:
An action content background says "look at me!", but provides no significant improvement in usability, imo. |
Fair. Would you like me to fix the bug then? |
+1 animations would be a nice touch. It's a little hard to tell you're at the bottom when a new item its appended. I keep scrolling the wrong direction. |
Idea: we can add “previous value” tooltip to changed primitive values on hover. |
I like it. |
Or what about like git style? Cross out the previous value, show in red. Show the new value next to it in green. Then you can do away with the extra background too. |
Interesting, we can try this. I'm busy with other stuff but I'm happy to see people contribute. (Tip: you already have access to |
I'll do a mockup of both this evening to get a better sense. On Wed, Aug 12, 2015 at 11:39 Dan Abramov notifications@github.com wrote:
|
I wanted to push react-motion into this myself, totally +1 |
you have all my attention :) started trawling through the source (so nicely written). I think TransitionSpring will work well with the actions log. for now, I made a quick PR with a css fadeIn, what do you think? #57 |
Hey, great work on the devtools, I noticed an issue, see comment. JSONObjectNode.prototype.getChildNodes = function getChildNodes() {
if (this.state.expanded && this.needsChildNodes) {
var obj = this.props.data;
var childNodes = [];
for (var k in obj) {
if (obj.hasOwnProperty(k)) {
var prevData = undefined;
// should be:
// if (typeof this.props.previousData !== 'undefined' && this.props.previousData !== null)
// or why not if (!this.props.previousData)?
if (typeof this.props.previousData !== 'undefined') {
prevData = this.props.previousData[k];
}
var node = _grabNode2['default'](k, obj[k], prevData, this.props.theme);
if (node !== false) {
childNodes.push(node);
}
}
}
this.needsChildNodes = false;
this.renderedChildren = childNodes;
}
return this.renderedChildren;
}; |
hi @bkniffler i think you are looking at the babel compiled code rather than the source, the line in question is https://github.com/gaearon/redux-devtools/blob/master/src/react/JSONTree/JSONObjectNode.js#L61 the reason it checks for undefined compared to |
interesting, thanks for this. will look into it |
@dzannotti @bkniffler I have the same error so i thought i would point it out here. It seems like the condition should be
Otherwise it will break if you default an object to null and fill it in later with properties |
@josebalius @bkniffler You might want to create an new issue for that. This thread is really about styling and usability. |
Closing for inactivity, most of these have been done, and the rest is welcome as PRs. |
A checklist for tracking/finishing styling.
The text was updated successfully, but these errors were encountered: