Skip to content

Commit 73d2303

Browse files
Merge pull request #1426 from digma-ai/feature/error-state
Add incident and agent error status support
1 parent 20231ae commit 73d2303

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+11113
-7669
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525

2626
- run: npm ci
2727

28-
- run: npm run build:prod:${{ inputs.platform }}
28+
- env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: npm run build:prod:${{ inputs.platform }}
2931

3032
- name: Get artifact name
3133
id: get-artifact-name

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ node_modules/
55
storybook-static/
66
.DS_Store
77
.env
8-
.eslintcache
8+
.eslintcache
9+
digmaCodeGen.ts
10+
swagger.json

.storybook/preview-head.html

Lines changed: 70 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
<style>
2-
@font-face {
3-
font-family: "JetBrains Mono";
4-
src: url("/assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
5-
font-weight: 500;
6-
font-style: normal;
7-
}
8-
92
@font-face {
103
font-family: "Alexandria";
114
src: url("/assets/fonts/Alexandria-Thin.ttf") format("truetype");
@@ -69,6 +62,76 @@
6962
font-style: normal;
7063
}
7164

65+
@font-face {
66+
font-family: "Alexandria";
67+
src: url("/assets/fonts/Alexandria-Thin.ttf") format("truetype");
68+
font-weight: 100;
69+
font-style: normal;
70+
}
71+
72+
@font-face {
73+
font-family: "Inter";
74+
src: url("/assets/fonts/Inter_18pt-ExtraLight.ttf") format("truetype");
75+
font-weight: 200;
76+
font-style: normal;
77+
}
78+
79+
@font-face {
80+
font-family: "Inter";
81+
src: url("/assets/fonts/Inter_18pt-Light.ttf") format("truetype");
82+
font-weight: 300;
83+
font-style: normal;
84+
}
85+
86+
@font-face {
87+
font-family: "Inter";
88+
src: url("/assets/fonts/Inter_18pt-Regular.ttf") format("truetype");
89+
font-weight: 400;
90+
font-style: normal;
91+
}
92+
93+
@font-face {
94+
font-family: "Inter";
95+
src: url("/assets/fonts/Inter_18pt-Medium.ttf") format("truetype");
96+
font-weight: 500;
97+
font-style: normal;
98+
}
99+
100+
@font-face {
101+
font-family: "Inter";
102+
src: url("/assets/fonts/Inter_18pt-SemiBold.ttf") format("truetype");
103+
font-weight: 600;
104+
font-style: normal;
105+
}
106+
107+
@font-face {
108+
font-family: "Inter";
109+
src: url("/assets/fonts/Inter_18pt-SemiBold.ttf") format("truetype");
110+
font-weight: 700;
111+
font-style: normal;
112+
}
113+
114+
@font-face {
115+
font-family: "Inter";
116+
src: url("/assets/fonts/Inter_18pt-Bold.ttf") format("truetype");
117+
font-weight: 800;
118+
font-style: normal;
119+
}
120+
121+
@font-face {
122+
font-family: "Inter";
123+
src: url("/assets/fonts/Inter_18pt-Black.ttf") format("truetype");
124+
font-weight: 900;
125+
font-style: normal;
126+
}
127+
128+
@font-face {
129+
font-family: "JetBrains Mono";
130+
src: url("/assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
131+
font-weight: 500;
132+
font-style: normal;
133+
}
134+
72135
#storybook-root {
73136
height: 100%;
74137
}

.stylelintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"rules": {
55
"font-family-no-missing-generic-family-keyword": [
66
true,
7-
{ "ignoreFontFamilies": ["JetBrains Mono"] }
7+
{ "ignoreFontFamilies": ["Alexandria", "Inter", "JetBrains Mono"] }
88
]
99
}
1010
}

.vscode/extensions.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
22
"recommendations": [
3-
"dbaeumer.vscode-eslint",
43
"davidanson.vscode-markdownlint",
4+
"dbaeumer.vscode-eslint",
5+
"docker.docker",
6+
"dotenv.dotenv-vscode",
57
"esbenp.prettier-vscode",
8+
"GitHub.copilot",
9+
"GitHub.copilot-chat",
610
"Orta.vscode-jest",
711
"streetsidesoftware.code-spell-checker",
8-
"stylelint.vscode-stylelint",
9-
"styled-components.vscode-styled-components"
12+
"styled-components.vscode-styled-components",
13+
"stylelint.vscode-stylelint"
1014
]
1115
}

.vscode/mcp.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"servers": {
3+
"ESLint": {
4+
"type": "stdio",
5+
"command": "npx",
6+
"args": ["@eslint/mcp@latest"]
7+
}
8+
}
9+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"editor.defaultFormatter": "esbenp.prettier-vscode",
2626
"editor.formatOnSave": true,
27+
"github.copilot.enable": {
28+
"*": true,
29+
"dotenv": false
30+
},
2731
"jest.runMode": "on-demand",
2832
"stylelint.validate": ["typescript"],
2933
"typescript.preferences.preferTypeOnlyAutoImports": true

assets/index.web.ejs

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,69 @@
6767
font-weight: 900;
6868
font-style: normal;
6969
}
70+
71+
@font-face {
72+
font-family: "Inter";
73+
src: url("/assets/fonts/Inter_18pt-ExtraLight.ttf") format("truetype");
74+
font-weight: 200;
75+
font-style: normal;
76+
}
77+
78+
@font-face {
79+
font-family: "Inter";
80+
src: url("/assets/fonts/Inter_18pt-Light.ttf") format("truetype");
81+
font-weight: 300;
82+
font-style: normal;
83+
}
84+
85+
@font-face {
86+
font-family: "Inter";
87+
src: url("/assets/fonts/Inter_18pt-Regular.ttf") format("truetype");
88+
font-weight: 400;
89+
font-style: normal;
90+
}
91+
92+
@font-face {
93+
font-family: "Inter";
94+
src: url("/assets/fonts/Inter_18pt-Medium.ttf") format("truetype");
95+
font-weight: 500;
96+
font-style: normal;
97+
}
98+
99+
@font-face {
100+
font-family: "Inter";
101+
src: url("/assets/fonts/Inter_18pt-SemiBold.ttf") format("truetype");
102+
font-weight: 600;
103+
font-style: normal;
104+
}
105+
106+
@font-face {
107+
font-family: "Inter";
108+
src: url("/assets/fonts/Inter_18pt-SemiBold.ttf") format("truetype");
109+
font-weight: 700;
110+
font-style: normal;
111+
}
112+
113+
@font-face {
114+
font-family: "Inter";
115+
src: url("/assets/fonts/Inter_18pt-Bold.ttf") format("truetype");
116+
font-weight: 800;
117+
font-style: normal;
118+
}
119+
120+
@font-face {
121+
font-family: "Inter";
122+
src: url("/assets/fonts/Inter_18pt-Black.ttf") format("truetype");
123+
font-weight: 900;
124+
font-style: normal;
125+
}
126+
127+
@font-face {
128+
font-family: "JetBrains Mono";
129+
src: url("/assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
130+
font-weight: 500;
131+
font-style: normal;
132+
}
70133
</style>
71134
</head>
72135
<body>

eslint.config.mjs renamed to eslint.config.mts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
import eslint from "@eslint/js";
2-
import eslintConfigPrettier from "eslint-config-prettier";
2+
import eslintConfigPrettier from "eslint-config-prettier/flat";
3+
import jestPlugin from "eslint-plugin-jest";
34
import reactPlugin from "eslint-plugin-react";
45
import reactHooksPlugin from "eslint-plugin-react-hooks";
56
import storybookPlugin from "eslint-plugin-storybook";
67
import tseslint from "typescript-eslint";
78

89
export default tseslint.config(
910
{
10-
ignores: ["!.storybook", "dist/", "jaeger-ui/", "storybook-static/"]
11+
ignores: [
12+
"!.storybook",
13+
"dist/",
14+
"jaeger-ui/",
15+
"storybook-static/",
16+
"digmaCodeGen.ts"
17+
]
1118
},
1219
eslint.configs.recommended,
1320
tseslint.configs.recommendedTypeChecked,
@@ -42,6 +49,13 @@ export default tseslint.config(
4249
...reactHooksPlugin.configs["recommended-latest"]
4350
},
4451
storybookPlugin.configs["flat/recommended"],
52+
{
53+
files: ["**/*.test.ts"],
54+
plugins: { jest: jestPlugin },
55+
languageOptions: {
56+
globals: jestPlugin.environments.globals.globals
57+
}
58+
},
4559
eslintConfigPrettier,
4660
// Custom rules
4761
{

jest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ const jestConfig: JestConfigWithTsJest = {
99
"!src/**/*.d.ts"
1010
],
1111
testEnvironment: "jsdom",
12+
testEnvironmentOptions: {
13+
globalsCleanup: "on"
14+
},
1215
transform: {
1316
...createDefaultPreset().transform
1417
}

0 commit comments

Comments
 (0)