Skip to content

Commit 22d7e50

Browse files
Nian LiuNian Liu
authored andcommitted
changes resolved
2 parents c5c5d2c + dcc04ea commit 22d7e50

File tree

11 files changed

+37
-129
lines changed

11 files changed

+37
-129
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,22 @@ React-Lucid is a React / GraphQL DevTool designed for helping developers debug t
3737
5. Have fun!
3838

3939
### GraphQL View
40+
In the graphql panel of our devtool you'll be able to see all the previous request that you have made after you have open our devtool. If you want to see the request that are made when your page is loaded make sure you reload your page after you have open our devtool.
41+
42+
## Show GIF display the req and response and how the JSON viewer works
43+
44+
You will have access to a request log on the left where you will all the previous request you've made, you can click on this logs to view previous responses. At the bottom of the panel you'll also have access to your app's schema.
45+
46+
## Panel GIF showing previous request
4047

4148
### Component Tree View
49+
In our component tree panel you will see a tree hierarchy of your application with options to filter out a few components fromm your tree.
50+
51+
## GIF showing the how to fliter tree
52+
53+
on the left of the panel you will see a box the shows the state and props of any component you hover over the tree and also what is different in your state when you make a setState.
54+
55+
## Panel GIF showing how the tree opens and GIF showing how the hover works and showing the diff panel
4256

4357
## Contributing
4458

build/webpack-bundle.js

Lines changed: 0 additions & 38 deletions
Large diffs are not rendered by default.

build/webpack-bundle.js.map

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/graphql.css

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#graphql-container {
22
width: 75%;
3-
background-color: rgba(214, 214, 214, 0.4);
4-
border: 1px solid rgba(0, 0, 0, 0.3);
5-
border-radius: 5px;
63
margin-left: 20px;
74
min-height: 600px;
85
}
@@ -13,37 +10,25 @@
1310
margin: 0px;
1411
}
1512

16-
#req-res{
17-
display: flex;
18-
}
19-
2013
#graphql-hr {
2114
margin: 10px 0px;
2215
}
2316

24-
#graphql {
25-
border-right: 1px solid black;
26-
width: 50%;
27-
padding: 10px;
28-
}
29-
3017
#graphql-res {
31-
width: 50%;
18+
background-color: rgba(214, 214, 214, 0.4);
19+
border: 1px solid rgba(0, 0, 0, 0.3);
20+
border-radius: 5px;
3221
padding: 10px;
22+
margin-bottom: 10px;
3323
}
3424

3525
#graphql-schema {
3626
overflow-y: scroll;
3727
max-height: 90%;
3828
padding: 10px;
39-
}
40-
41-
.graphql {
42-
padding: 5px;
43-
}
44-
45-
.graphql:not(:last-child) {
46-
border-bottom: 1px solid grey;
29+
background-color: rgba(214, 214, 214, 0.4);
30+
border: 1px solid rgba(0, 0, 0, 0.3);
31+
border-radius: 5px;
4732
}
4833

4934
.graphql-p {

public/log-container.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
border: 1px solid rgba(0, 0, 0, 0.3);
66
border-radius: 5px;
77
max-height: 600px;
8-
height: 600px;
8+
height: 650px;
99
}
1010

1111
#log-header{
@@ -23,6 +23,7 @@
2323
padding: 15px;
2424
background:rgba(255,255,255,0.5);
2525
margin: 8px 0px;
26+
cursor: pointer;
2627
}
2728

2829
.log-p{

src/components/GraphQLRequest.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/components/GraphQLResponse.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const GraphQLResponse = ({ logs, log }) => {
1717
name={null}
1818
iconStyle='triangle'
1919
indentWidth={1}
20+
collapsed={3}
2021
enableClipboard={false}
2122
displayDataTypes={false}
2223
displayObjectSize={false}

src/components/Log/Log.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { GraphqlCodeBlock } from 'graphql-syntax-highlighter-react';
44

55
const Log = props => {
66
return (
7-
<div className='log'>
8-
<button onClick={() => {props.logChange(props.logId)}}>view</button>
7+
<div className='log' onClick={() => { props.logChange(props.logId) }}>
98
<p className='log-p'>
109
<b>Request:</b> {props.logId}
1110
</p>

src/containers/GraphQLContainer.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ const GraphQLContainer = ({ logs, schema, log }) => {
99
<div id='graphql-container'>
1010
{logs.length !== 0 ? (
1111
<div>
12-
<div id='req-res'>
13-
<GraphQLRequest logs={logs} log ={log}/>
14-
<GraphQLResponse logs={logs} log ={log}/>
15-
</div>
16-
<hr />
12+
<GraphQLResponse logs={logs} log={log} />
1713
<GraphQLSchema schema={schema} />
1814
</div>
1915
) : (
20-
<h1>No requests have been made yet.</h1>
21-
)}
16+
<h1>No requests have been made yet.</h1>
17+
)}
2218
</div>
2319
);
2420
};

src/containers/StateContainer.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const StateContainer = ({ stateDiffs, clearLog }) => {
1616
Clear All
1717
</button>
1818
</div>
19+
<hr />
1920
{stateDiffs.map((el, i) => {
2021
return (
2122
<div className='stateDiff-div'>
@@ -28,7 +29,7 @@ const StateContainer = ({ stateDiffs, clearLog }) => {
2829
indentWidth={1}
2930
groupArraysAfterLength={20}
3031
enableClipboard={false}
31-
collapsed={2}
32+
collapsed={1}
3233
displayDataTypes={false}
3334
displayObjectSize={false}
3435
/>

0 commit comments

Comments
 (0)