Skip to content

Commit 5e06303

Browse files
committed
add csv table view
1 parent 6a9ca4c commit 5e06303

4 files changed

Lines changed: 427 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export interface IRunOverviewTabCSVTablesCardProps {
2+
artifacts: Array<{ name: string; path: string; uri: string }>;
3+
isRunInfoLoading: boolean;
4+
}
5+
6+
export interface CSVData {
7+
name: string;
8+
uri: string;
9+
data: Array<Record<string, any>>;
10+
columns: string[];
11+
error?: string;
12+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
@use 'src/styles/abstracts' as *;
2+
3+
.RunOverviewTabCSVTablesCard {
4+
.IllustrationBlock {
5+
margin-bottom: 1.75rem;
6+
}
7+
8+
&__csvTable {
9+
margin-bottom: 2rem;
10+
11+
&:last-child {
12+
margin-bottom: 0;
13+
}
14+
15+
&__header {
16+
display: flex;
17+
justify-content: space-between;
18+
align-items: center;
19+
margin-bottom: 1rem;
20+
padding-bottom: 0.5rem;
21+
border-bottom: 1px solid $cuddle-50;
22+
23+
&__title {
24+
display: flex;
25+
align-items: center;
26+
gap: 0.5rem;
27+
}
28+
29+
&__actions {
30+
display: flex;
31+
gap: 0.5rem;
32+
}
33+
}
34+
35+
&__tableContainer {
36+
max-height: 400px;
37+
overflow: auto;
38+
border: 1px solid $cuddle-50;
39+
border-radius: $border-radius-sm;
40+
41+
.DataList {
42+
.IllustrationBlock {
43+
height: 200px;
44+
}
45+
}
46+
}
47+
48+
&__error {
49+
padding: 1rem;
50+
background-color: #fef2f2;
51+
border: 1px solid #fecaca;
52+
border-radius: $border-radius-sm;
53+
color: #dc2626;
54+
font-size: 0.875rem;
55+
}
56+
57+
&__loading {
58+
display: flex;
59+
justify-content: center;
60+
align-items: center;
61+
height: 200px;
62+
border: 1px solid $cuddle-50;
63+
border-radius: $border-radius-sm;
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)