Skip to content

Commit f79c022

Browse files
committed
wip: lint fixes
1 parent 2c54e70 commit f79c022

File tree

6 files changed

+30
-22
lines changed

6 files changed

+30
-22
lines changed

src/components/Graph/GravityGraph.scss

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
.ydb-gravity-graph {
22
&__block {
3-
background: none;
4-
border: none;
53
cursor: auto;
4+
5+
border: none;
6+
background: none;
67
}
78

89
&__block-content {
910
width: 100%;
1011
padding: 8px 12px;
11-
background: var(--g-color-base-float);
12-
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
13-
border: 1px solid var(--g-color-line-generic);
14-
font-size: var(--g-text-body-short-font-size);
12+
1513
font-family: var(--g-font-family);
14+
font-size: var(--g-text-body-short-font-size);
1615
line-height: var(--g-text-body-short-line-height);
1716

17+
border: 1px solid var(--g-color-line-generic);
18+
background: var(--g-color-base-float);
19+
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
20+
1821
&[aria-haspopup='dialog'] {
1922
cursor: pointer;
2023
}
@@ -24,20 +27,23 @@
2427
position: absolute;
2528
top: 4px;
2629
right: 4px;
27-
color: var(--g-color-text-secondary);
30+
2831
font-size: 10px;
2932
line-height: 1;
33+
34+
color: var(--g-color-text-secondary);
3035
}
3136

3237
&__block-content.query {
33-
border-radius: 50%;
3438
height: 100%;
39+
40+
border-radius: 50%;
3541
}
3642

3743
&__block-content.result {
3844
display: flex;
39-
align-items: center;
4045
justify-content: center;
46+
align-items: center;
4147
}
4248

4349
&__block-content.stage {
@@ -48,18 +54,20 @@
4854
display: flex;
4955
align-items: center;
5056
gap: 4px;
57+
58+
color: var(--g-color-text-info-heavy);
59+
border: 1px solid var(--g-color-line-info);
5160
border-radius: 6px;
52-
box-shadow: none;
5361
background: var(--g-color-base-info-light);
54-
border: 1px solid var(--g-color-line-info);
55-
color: var(--g-color-text-info-heavy);
62+
box-shadow: none;
5663
}
5764

5865
&__tooltip-content {
59-
padding: 0 8px 8px;
6066
width: 300px;
61-
font-size: var(--g-text-body-short-font-size);
67+
padding: 0 8px 8px;
68+
6269
font-family: var(--g-font-family);
70+
font-size: var(--g-text-body-short-font-size);
6371
line-height: var(--g-text-body-short-line-height);
6472
}
6573

@@ -71,10 +79,12 @@
7179
display: grid;
7280
grid-template-columns: 100px auto;
7381
gap: 8px;
82+
7483
margin: 4px 0 0;
7584

7685
span {
7786
overflow: hidden;
87+
7888
text-overflow: ellipsis;
7989
}
8090
span:nth-child(1) {
@@ -91,6 +101,7 @@
91101

92102
&__tooltip-stat-group + &__tooltip-stat-group {
93103
padding-top: 8px;
104+
94105
border-top: 1px dotted var(--g-color-line-generic);
95106
}
96107

@@ -100,9 +111,10 @@
100111

101112
&__zoom-controls {
102113
position: absolute;
114+
z-index: 999;
103115
top: 8px;
104116
right: 50px;
105-
z-index: 999;
117+
106118
display: flex;
107119
gap: 2px;
108120
}

src/components/Graph/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface Link {
2121
to: string;
2222
}
2323
export interface Data<TData = any> {
24-
links: Link[];
24+
links?: Link[];
2525
nodes: GraphNode<TData>[];
2626
}
2727
export interface Metric {

src/containers/Tenant/Query/QueryResult/QueryResultViewer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ export function QueryResultViewer({
272272
if (!preparedPlan?.nodes?.length) {
273273
return renderStubMessage();
274274
}
275-
console.log(preparedPlan);
276275

277276
return <Graph theme={theme} explain={preparedPlan} />;
278277
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
.ydb-query-explain-graph {
22
&__canvas-container {
3+
position: relative;
4+
35
overflow-y: auto;
46

57
width: 100%;
68
height: 100%;
7-
position: relative;
89
}
910
}

src/containers/Tenant/Query/QueryResult/components/Graph/Graph.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ function isValidGraphData(data: Partial<Data>): data is Data {
2323
}
2424

2525
export function Graph({explain = {}, theme}: GraphProps) {
26-
console.log('explain', explain);
27-
2826
const {links, nodes} = explain;
2927

3028
const data = React.useMemo(() => ({links, nodes}), [links, nodes]);

src/store/reducers/query/prepareQueryData.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export function prepareQueryData(
1010
const result = parseQueryAPIResponse(response);
1111
const {plan: rawPlan, stats} = result;
1212

13-
1413
const {simplifiedPlan, ...planData} = preparePlanData(rawPlan, stats);
15-
console.log('prepareQueryData', rawPlan, planData);
1614
return {
1715
...result,
1816
preparedPlan: Object.keys(planData).length > 0 ? planData : undefined,

0 commit comments

Comments
 (0)