Skip to content

Commit d7de855

Browse files
authored
Merge branch 'main' into rename-route-interface
2 parents 4a64b44 + 6e382e1 commit d7de855

File tree

9 files changed

+37
-18
lines changed

9 files changed

+37
-18
lines changed

projects/components/src/button/button.component.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@
117117
}
118118
}
119119

120-
.text {
120+
.text,
121+
.plain-text {
121122
&.primary {
122123
@include button-style(inherit, inherit, $blue-5, $blue-4);
123124
}
@@ -147,7 +148,7 @@
147148
height: 40px;
148149
border-radius: 8px;
149150

150-
&:not(.icon-only) {
151+
&:not(.icon-only, .plain-text) {
151152
padding: 0 20px;
152153
}
153154

@@ -161,7 +162,7 @@
161162
height: 36px;
162163
border-radius: 6px;
163164

164-
&:not(.icon-only) {
165+
&:not(.icon-only, .plain-text) {
165166
padding: 0 16px;
166167
}
167168

@@ -175,7 +176,7 @@
175176
height: 32px;
176177
border-radius: 6px;
177178

178-
&:not(.icon-only) {
179+
&:not(.icon-only, .plain-text) {
179180
padding: 0 16px;
180181
}
181182

@@ -189,7 +190,7 @@
189190
height: 24px;
190191
border-radius: 4px;
191192

192-
&:not(.icon-only) {
193+
&:not(.icon-only, .plain-text) {
193194
padding: 0 12px;
194195
}
195196

@@ -203,7 +204,7 @@
203204
height: 18px;
204205
border-radius: 4px;
205206

206-
&:not(.icon-only) {
207+
&:not(.icon-only, .plain-text) {
207208
padding: 0 12px;
208209
}
209210

projects/components/src/button/button.component.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ describe('Button Component', () => {
146146
});
147147
expect(spectator.query('.button')).toHaveClass('button secondary small text');
148148

149+
// Text
150+
spectator.setInput({
151+
display: ButtonStyle.PlainText
152+
});
153+
expect(spectator.query('.button')).toHaveClass('button secondary small plain-text');
154+
149155
// Solid
150156
spectator.setInput({
151157
display: ButtonStyle.Solid

projects/components/src/button/button.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ export const enum ButtonSize {
1818

1919
export const enum ButtonStyle {
2020
// These values are used as css classes
21-
// Background Color | Background Hover Color | Text Hover Color | Border Color
22-
Solid = 'solid', // Yes Yes No No
23-
Outlined = 'outlined', // No Yes No No
24-
Bordered = 'bordered', // No Yes No Yes
25-
Text = 'text' // No No Yes No
21+
// Background Color | Background Hover Color | Text Hover Color | Border Color | Padding
22+
Solid = 'solid', // Yes Yes No No Yes
23+
Outlined = 'outlined', // No Yes No No Yes
24+
Bordered = 'bordered', // No Yes No Yes Yes
25+
Text = 'text', // No No Yes No Yes
26+
PlainText = 'plain-text' // No No Yes No No
2627
}

projects/components/src/sequence/renderer/sequence-bar-renderer.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export class SequenceBarRendererService {
230230
? scaledEnd - this.markerWidth - 2
231231
: marker.markerTime
232232
});
233-
markerTime = scaledNormalizedMarkers[index].markerTime;
233+
markerTime = marker.markerTime;
234234
} else {
235235
scaledNormalizedMarkers[index] = {
236236
...scaledNormalizedMarkers[index],

projects/distributed-tracing/src/shared/components/log-events/log-events-table.component.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class LogEventsTableComponent implements OnChanges {
120120
title: 'Timestamp',
121121
display: CoreTableCellRendererType.RelativeTimestamp,
122122
visible: true,
123-
width: '150px',
123+
width: '120px',
124124
sortable: false,
125125
filterable: false
126126
},
@@ -136,7 +136,15 @@ export class LogEventsTableComponent implements OnChanges {
136136
title: 'Span',
137137
display: WaterfallTableCellType.SpanName,
138138
visible: true,
139-
width: '30%',
139+
width: '20%',
140+
sortable: false,
141+
filterable: false
142+
},
143+
{
144+
id: 'spanId',
145+
title: 'Span Id',
146+
visible: true,
147+
width: '15%',
140148
sortable: false,
141149
filterable: false
142150
}

projects/distributed-tracing/src/shared/dashboard/widgets/waterfall/waterfall/waterfall-chart.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class WaterfallChartComponent implements OnChanges {
202202

203203
let markerData: MarkerTooltipData = {
204204
relativeTimes: [],
205-
summary: spanWaterfallData.logEvents[0].summary
205+
summary: spanWaterfallData.logEvents.find(logEvent => logEvent.timestamp === marker.timestamps[0])?.summary ?? ''
206206
};
207207
spanWaterfallData.logEvents.forEach((logEvent: LogEvent) => {
208208
if (marker.timestamps.includes(logEvent.timestamp)) {

projects/distributed-tracing/src/shared/dashboard/widgets/waterfall/waterfall/waterfall-chart.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export interface WaterfallChartState {
4141

4242
export interface LogEvent {
4343
spanStartTime?: number;
44+
spanId: string;
4445
attributes: Dictionary<unknown>;
4546
timestamp: string;
4647
summary: string;

projects/distributed-tracing/src/shared/services/log-events/log-events.service.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ describe('Log Events Service', () => {
6565
{
6666
timestamp: 'time',
6767
attributes: {},
68-
summary: 'summary'
68+
summary: 'summary',
69+
spanId: 'test-id'
6970
}
7071
]
7172
};
@@ -74,7 +75,8 @@ describe('Log Events Service', () => {
7475
timestamp: 'time',
7576
attributes: {},
7677
summary: 'summary',
77-
spanStartTime: 1608151401295
78+
spanStartTime: 1608151401295,
79+
spanId: 'test-id'
7880
}
7981
];
8082
expect(spectator.service.getLogEventsWithSpanStartTime(logEvents, 1608151401295)).toMatchObject(

projects/distributed-tracing/src/shared/services/log-events/log-events.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
export class LogEventsService {
1818
private readonly specificationBuilder: SpecificationBuilder = new SpecificationBuilder();
1919
private readonly dateCoercer: DateCoercer = new DateCoercer();
20-
private readonly logEventProperties: string[] = ['attributes', 'timestamp', 'summary'];
20+
private readonly logEventProperties: string[] = ['attributes', 'timestamp', 'summary', 'spanId'];
2121
private readonly spanPropertiesForTrace: string[] = ['startTime', 'serviceName', 'displaySpanName', 'protocolName'];
2222
private readonly spanPropertiesForApiTrace: string[] = [
2323
'startTime',

0 commit comments

Comments
 (0)