-
Notifications
You must be signed in to change notification settings - Fork 47k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DevTools] Support for adding props | Improved state/props value editing #16700
Merged
bvaughn
merged 15 commits into
facebook:master
from
hristo-kanchev:feature/add-edit-entries
Sep 10, 2019
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c963476
Extracted sanitizeForParse
hristo-kanchev 4470a5b
Added canAddEntries flag to InspectedElementTree
hristo-kanchev e37c1fa
Added EditableKey component.
hristo-kanchev 3361146
Added support to add an additional entry.
hristo-kanchev 9661a48
Added support to add more complex data structures in the EditableValu…
hristo-kanchev c61c8f7
Fixed flow error.
hristo-kanchev 36c4905
Removed unneeded fragment.
hristo-kanchev a30cfa4
Renamed EditableKey -> EditableName
hristo-kanchev 5789472
Removed unneeded dependency
hristo-kanchev 20280fb
Removed problematic props to state hook.
hristo-kanchev c53c79a
Prettified changes.
hristo-kanchev a5cc62b
Removed unused import.
hristo-kanchev d4c415a
Fixed shouldStringify check.
hristo-kanchev 389010a
Removed testing props from EditableProps.
hristo-kanchev 0373472
Made some inline tweaks
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 6 additions & 12 deletions
18
packages/react-devtools-shared/src/devtools/views/Components/EditableName.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
.Input { | ||
width: 100px; | ||
background: none; | ||
border: 1px solid transparent; | ||
color: var(--color-attribute-name); | ||
border-radius: 0.125rem; | ||
font-family: var(--font-family-monospace); | ||
font-size: var(--font-size-monospace-normal); | ||
flex: 0 1 auto; | ||
padding: 1px; | ||
box-shadow: 0px 1px 3px transparent; | ||
} | ||
|
||
.Input:focus { | ||
color: var(--color-attribute-editable-value); | ||
background-color: var(--color-button-background-focus); | ||
outline: none; | ||
} | ||
color: var(--color-text); | ||
box-shadow: 0px 1px 3px var(--color-shadow); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 it would be good to have this placeholder for non
undefined
values. What do you think @bvaughn ?