Skip to content

Commit

Permalink
Runned yarn prettier
Browse files Browse the repository at this point in the history
Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
  • Loading branch information
GLVSKiriti committed Jul 14, 2023
1 parent 04520d0 commit 1eb2f56
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,7 @@ limitations under the License.
.Ddg--SidePanel--decorationBtn.is-selected:focus {
border: none;
margin: 4px;
box-shadow: inset 0 0 5px 2px #00b4ff, 0px 0px 5px 3px #006c99;
box-shadow:
inset 0 0 5px 2px #00b4ff,
0px 0px 5px 3px #006c99;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type TCommonProps = {
hintSide: string;
// onClick: (evt: React.MouseEvent<any>) => void;
onClick?: (evt: React.MouseEvent<any>) => void;
criticalPath: criticalPathSection[]
criticalPath: criticalPathSection[];
viewEnd: number;
viewStart: number;
getViewedBounds: ViewedBoundsFunctionType;
Expand Down Expand Up @@ -61,7 +61,7 @@ function toPercent(value: number) {
}

function toPercentInDecimal(value: number) {
return `${(value * 100)}%`;
return `${value * 100}%`;
}

function SpanBar(props: TInnerProps) {
Expand Down Expand Up @@ -136,23 +136,22 @@ function SpanBar(props: TInnerProps) {
}}
/>
)}
{criticalPath.map((each,index)=>{
{criticalPath.map((each, index) => {
const critcalPathViewBounds = getViewedBounds(each.section_start, each.section_end);
const criticalPathViewStart = critcalPathViewBounds.start;
const criticalPathViewEnd = critcalPathViewBounds.end;
return (
<div
key={index}
className="SpanBar--cp"
style={{
background: "black",
left: toPercentInDecimal(criticalPathViewStart),
width: toPercentInDecimal(criticalPathViewEnd-criticalPathViewStart)
}}
/>
)
key={index}
className="SpanBar--cp"
style={{
background: 'black',
left: toPercentInDecimal(criticalPathViewStart),
width: toPercentInDecimal(criticalPathViewEnd - criticalPathViewStart),
}}
/>
);
})}

</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import './SpanBarRow.css';
type SpanBarRowProps = {
className?: string;
color: string;
criticalPath: criticalPathSection[]
criticalPath: criticalPathSection[];
columnDivision: number;
isChildrenExpanded: boolean;
isDetailExpanded: boolean;
Expand Down Expand Up @@ -203,7 +203,7 @@ export default class SpanBarRow extends React.PureComponent<SpanBarRowProps> {
>
<Ticks numTicks={numTicks} />
<SpanBar
criticalPath = {criticalPath}
criticalPath={criticalPath}
rpc={rpc}
viewStart={viewStart}
viewEnd={viewEnd}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,14 @@ export class VirtualizedTraceViewImpl extends React.Component<VirtualizedTraceVi
findMatchesIDs,
spanNameColumnWidth,
trace,
criticalPath
criticalPath,
} = this.props;
// to avert flow error
if (!trace) {
return null;
}

const criticalPathSections = criticalPath.filter((each)=>each.spanId===spanID);
const criticalPathSections = criticalPath.filter(each => each.spanId === spanID);
const color = colorGenerator.getColorByKey(serviceName);
const isCollapsed = childrenHiddenIDs.has(spanID);
const isDetailExpanded = detailStates.has(spanID);
Expand Down
2 changes: 1 addition & 1 deletion packages/jaeger-ui/src/components/TracePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export class TracePageImpl extends React.PureComponent<TProps, TState> {
scrollToFirstVisibleSpan={this._scrollManager.scrollToFirstVisibleSpan}
findMatchesIDs={spanFindMatches}
trace={data}
criticalPath = {criticalPath}
criticalPath={criticalPath}
updateNextViewRangeTime={this.updateNextViewRangeTime}
updateViewRangeTime={this.updateViewRangeTime}
viewRange={viewRange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ limitations under the License.
animation: LoadingIndicator--colorAnim 1s infinite alternate;
font-size: 36px;
/* outline / stroke the loading indicator */
text-shadow: -0.5px 0 rgba(0, 128, 128, 0.6), 0 0.5px rgba(0, 128, 128, 0.6), 0.5px 0 rgba(0, 128, 128, 0.6),
text-shadow:
-0.5px 0 rgba(0, 128, 128, 0.6),
0 0.5px rgba(0, 128, 128, 0.6),
0.5px 0 rgba(0, 128, 128, 0.6),
0 -0.5px rgba(0, 128, 128, 0.6);
}

Expand Down
4 changes: 3 additions & 1 deletion packages/jaeger-ui/src/components/common/VirtSelect.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ limitations under the License.

.VirtSelect.is-focused:not(.is-open) > .Select-control {
border-color: #199;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(17, 153, 153, 0.1);
box-shadow:
inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 0 3px rgba(17, 153, 153, 0.1);
}

.VirtSelect.is-disabled > .Select-control {
Expand Down
14 changes: 7 additions & 7 deletions packages/jaeger-ui/src/model/link-patterns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ export const processedLinks: ProcessedLinkPattern[] = (getConfigValue('linkPatte
.map(processLinkPattern)
.filter(Boolean);

export const getTraceLinks: (trace: Trace | undefined) => TLinksRV = memoize(10)(
(trace: Trace | undefined) => {
const result: TLinksRV = [];
if (!trace) return result;
return computeTraceLink(processedLinks, trace);
}
);
export const getTraceLinks: (trace: Trace | undefined) => TLinksRV = memoize(10)((
trace: Trace | undefined
) => {
const result: TLinksRV = [];
if (!trace) return result;
return computeTraceLink(processedLinks, trace);
});

export default createGetLinks(processedLinks, new WeakMap());
4 changes: 2 additions & 2 deletions packages/jaeger-ui/src/types/metrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ export type FetchedAllServiceMetricsResponse = [
PromiseFulfilledResult<MetricsAPIServiceResponseData<'service_latencies', 0.75>> | PromiseRejectedResult,
PromiseFulfilledResult<MetricsAPIServiceResponseData<'service_latencies'>> | PromiseRejectedResult,
PromiseFulfilledResult<MetricsAPIServiceResponseData<'service_call_rate'>> | PromiseRejectedResult,
PromiseFulfilledResult<MetricsAPIServiceResponseData<'service_error_rate'>> | PromiseRejectedResult
PromiseFulfilledResult<MetricsAPIServiceResponseData<'service_error_rate'>> | PromiseRejectedResult,
];

export type FetchAggregatedServiceMetricsResponse = [
PromiseFulfilledResult<MetricsAPIOpsResponseData<'service_operation_latencies'>> | PromiseRejectedResult,
PromiseFulfilledResult<MetricsAPIOpsResponseData<'service_operation_call_rate'>> | PromiseRejectedResult,
PromiseFulfilledResult<MetricsAPIOpsResponseData<'service_operation_error_rate'>> | PromiseRejectedResult
PromiseFulfilledResult<MetricsAPIOpsResponseData<'service_operation_error_rate'>> | PromiseRejectedResult,
];

0 comments on commit 1eb2f56

Please sign in to comment.