Skip to content

Commit 0368759

Browse files
committed
Merge branch 'list-view-changes' of github.com:hypertrace/hypertrace-ui into list-view-changes
2 parents d867131 + 82d4dff commit 0368759

File tree

12 files changed

+1431
-1430
lines changed

12 files changed

+1431
-1430
lines changed

package-lock.json

Lines changed: 1375 additions & 1423 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@types/d3-hierarchy": "^2.0.2",
4444
"@types/d3-transition": "1.1.5",
4545
"apollo-angular": "^2.6.0",
46-
"core-js": "^3.19.1",
46+
"core-js": "^3.19.3",
4747
"d3-array": "^2.12.0",
4848
"d3-axis": "^2.1.0",
4949
"d3-brush": "^1.1.6",
@@ -76,7 +76,7 @@
7676
"@angular/compiler-cli": "~12.2.1",
7777
"@angular/language-service": "~12.2.1",
7878
"@commitlint/cli": "^15.0.0",
79-
"@commitlint/config-conventional": "^14.1.0",
79+
"@commitlint/config-conventional": "^15.0.0",
8080
"@compodoc/compodoc": "^1.1.15",
8181
"@ngneat/spectator": "^8.3.1",
8282
"@types/d3-array": "^2.9.0",
@@ -101,7 +101,7 @@
101101
"cz-conventional-changelog": "^3.3.0",
102102
"husky": "^7.0.4",
103103
"jest": "^26.6.3",
104-
"jest-config": "^27.4.0",
104+
"jest-config": "^27.4.3",
105105
"jest-html-reporter": "^3.4.1",
106106
"jest-junit": "^13.0.0",
107107
"jest-preset-angular": "^8.4.0",

projects/components/src/table/table.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ import { TableColumnConfigExtended, TableService } from './table.service';
153153
selectable: this.supportsRowSelection()
154154
}"
155155
class="data-row"
156-
[style.height]="this.rowHeight"
156+
[style.minHeight]="this.rowHeight"
157157
></cdk-row>
158158
159159
<!-- Expandable Detail Rows -->

projects/dashboards/src/public-api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ export * from './widgets/interactive-data-widget-renderer';
1919
export * from './widgets/header/widget-header.model';
2020
export * from './widgets/container/container-widget.model';
2121
export * from './widgets/link/link-widget.model';
22+
export * from './widgets/text/text-widget-types';
2223

2324
export * from './dashboard.module';

projects/dashboards/src/widgets/text/text-widget-renderer.component.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
.text-widget {
55
@include ellipsis-overflow();
66

7-
.primary-text {
7+
.title {
88
@include header-3();
99
}
1010

11+
.section-title {
12+
@include subtitle-1($gray-7);
13+
text-transform: capitalize;
14+
}
15+
1116
.secondary-text {
1217
@include body-small($gray-4);
1318
padding-left: 4px;

projects/dashboards/src/widgets/text/text-widget-renderer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { TextWidgetModel } from './text-widget.model';
1111
changeDetection: ChangeDetectionStrategy.OnPush,
1212
template: `
1313
<div class="text-widget">
14-
<span class="primary-text">{{ this.model.text }}</span>
14+
<span class="primary-text" [ngClass]="this.model.primaryTextStyle">{{ this.model.text }}</span>
1515
<span class="secondary-text">{{ this.model.secondaryText }}</span>
1616
</div>
1717
`
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const enum PrimaryTextStyle {
2+
Title = 'title',
3+
SectionTitle = 'section-title'
4+
}

projects/dashboards/src/widgets/text/text-widget.model.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Model, ModelProperty, STRING_PROPERTY } from '@hypertrace/hyperdash';
2+
import { EnumPropertyTypeInstance, ENUM_TYPE } from '../../properties/enums/enum-property-type';
3+
import { PrimaryTextStyle } from './text-widget-types';
24

35
@Model({
46
type: 'text-widget'
@@ -17,4 +19,15 @@ export class TextWidgetModel {
1719
required: false
1820
})
1921
public secondaryText?: string;
22+
23+
@ModelProperty({
24+
key: 'primary-text-style',
25+
required: false,
26+
// tslint:disable-next-line: no-object-literal-type-assertion
27+
type: {
28+
key: ENUM_TYPE.type,
29+
values: [PrimaryTextStyle.Title, PrimaryTextStyle.SectionTitle]
30+
} as EnumPropertyTypeInstance
31+
})
32+
public primaryTextStyle?: string = PrimaryTextStyle.Title;
2033
}

projects/observability/src/public-api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ export * from './shared/services/entity-breadcrumb/entity-breadcrumb.resolver';
9797
// Span Detail
9898
export { SpanData } from './shared/components/span-detail/span-data';
9999
export { SpanTitle } from './shared/components/span-detail/span-title';
100+
export { SpanDetailTab } from './shared/components/span-detail/span-detail-tab';
101+
100102
export * from './shared/components/span-detail/span-detail.component';
101103
export * from './shared/components/span-detail/span-detail.module';
102104
export { SpanDetailLayoutStyle } from './shared/components/span-detail/span-detail-layout-style';

projects/observability/src/shared/components/span-detail/span-detail.component.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ import { SpanDetailTab } from './span-detail-tab';
2424
<ng-content></ng-content>
2525
</div>
2626
27-
<ht-tab-group class="tabs-group" [activeTabLabel]="this.activeTabLabel">
27+
<ht-tab-group
28+
class="tabs-group"
29+
[activeTabLabel]="this.activeTabLabel"
30+
(activeTabLabelChange)="this.onActiveTabLabelChange($event)"
31+
>
2832
<ht-tab label="${SpanDetailTab.Request}" *ngIf="this.showRequestTab">
2933
<ht-span-request-detail
3034
class="request"
@@ -69,6 +73,9 @@ export class SpanDetailComponent implements OnChanges {
6973
@Input()
7074
public activeTabLabel?: SpanDetailTab;
7175

76+
@Output()
77+
private readonly activeTabLabelChange: EventEmitter<SpanDetailTab> = new EventEmitter<SpanDetailTab>();
78+
7279
@Output()
7380
public readonly closed: EventEmitter<void> = new EventEmitter<void>();
7481

@@ -93,4 +100,9 @@ export class SpanDetailComponent implements OnChanges {
93100
this.totalLogEvents = (this.spanData?.logEvents ?? []).length;
94101
}
95102
}
103+
104+
public onActiveTabLabelChange(tabLabel: SpanDetailTab): void {
105+
this.activeTabLabel = tabLabel;
106+
this.activeTabLabelChange.emit(tabLabel);
107+
}
96108
}

0 commit comments

Comments
 (0)