Skip to content

Commit f18b6ad

Browse files
authored
[feat][trace] add observation components (#158)
* feat(trace): add observation components * feat(trace): add observation i18n
1 parent 9ddf0af commit f18b6ad

88 files changed

Lines changed: 2554 additions & 749 deletions

File tree

Some content is hidden

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

common/config/subspaces/default/pnpm-lock.yaml

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

frontend/apps/cozeloop/tailwind.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ export default createTailwindcssConfig({
1818
'@cozeloop/trace-list',
1919
'@cozeloop/observation-component-adapter',
2020
'@cozeloop/tag-pages',
21+
'@cozeloop/observation-component',
22+
'@cozeloop/tag-components',
2123
],
2224
}) as TailwindConfig;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright (c) 2025 coze-dev Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
const { defineConfig } = require('@coze-arch/stylelint-config');
4+
5+
module.exports = defineConfig({
6+
extends: [],
7+
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# @cozeloop/observation-component-adapter
2+
3+
> Project template for react component with storybook.
4+
5+
## Features
6+
7+
- [x] eslint & ts
8+
- [x] esm bundle
9+
- [x] umd bundle
10+
- [x] storybook
11+
12+
## Commands
13+
14+
- init: `rush update`
15+
- dev: `npm run dev`
16+
- build: `npm run build`
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"operationSettings": [
3+
{
4+
"operationName": "test:cov",
5+
"outputFolderNames": ["coverage"]
6+
},
7+
{
8+
"operationName": "ts-check",
9+
"outputFolderNames": ["dist"]
10+
}
11+
]
12+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright (c) 2025 coze-dev Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
const { defineConfig } = require('@coze-arch/eslint-config');
4+
5+
module.exports = defineConfig({
6+
packageRoot: __dirname,
7+
preset: 'web',
8+
rules: {},
9+
});
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "@cozeloop/observation-component-adapter",
3+
"version": "0.0.1",
4+
"description": "trace detail packages, add extra base on the base observation component",
5+
"license": "Apache-2.0",
6+
"author": "liuwei.felix@bytedance.com",
7+
"maintainers": [],
8+
"main": "src/index.tsx",
9+
"scripts": {
10+
"build": "exit 0",
11+
"dev": "storybook dev -p 6006",
12+
"lint": "eslint ./ --cache",
13+
"test": "vitest --run --passWithNoTests",
14+
"test:cov": "npm run test -- --coverage"
15+
},
16+
"dependencies": {
17+
"@coze-arch/coze-design": "0.0.6-alpha.346d77",
18+
"@cozeloop/api-schema": "workspace:*",
19+
"@cozeloop/biz-hooks-adapter": "workspace:*",
20+
"@cozeloop/components": "workspace:*",
21+
"@cozeloop/observation-component": "workspace:*",
22+
"@cozeloop/tag-components": "workspace:*",
23+
"ahooks": "^3.7.8",
24+
"classnames": "^2.3.2",
25+
"dayjs": "^1.11.7",
26+
"lodash-es": "^4.17.21"
27+
},
28+
"devDependencies": {
29+
"@coze-arch/bot-typings": "workspace:*",
30+
"@coze-arch/eslint-config": "workspace:*",
31+
"@coze-arch/stylelint-config": "workspace:*",
32+
"@coze-arch/ts-config": "workspace:*",
33+
"@coze-arch/vitest-config": "workspace:*",
34+
"@storybook/addon-essentials": "^7.6.7",
35+
"@storybook/addon-interactions": "^7.6.7",
36+
"@storybook/addon-links": "^7.6.7",
37+
"@storybook/addon-onboarding": "^1.0.10",
38+
"@storybook/blocks": "^7.6.7",
39+
"@storybook/react": "^7.6.7",
40+
"@storybook/react-vite": "^7.6.7",
41+
"@storybook/test": "^7.6.7",
42+
"@testing-library/jest-dom": "^6.1.5",
43+
"@testing-library/react": "^14.1.2",
44+
"@testing-library/react-hooks": "^8.0.1",
45+
"@types/react": "18.2.37",
46+
"@types/react-dom": "18.2.15",
47+
"@vitest/coverage-v8": "~3.0.5",
48+
"react": "~18.2.0",
49+
"react-dom": "~18.2.0",
50+
"storybook": "^7.6.7",
51+
"stylelint": "^15.11.0",
52+
"vite-plugin-svgr": "~3.3.0",
53+
"vitest": "~3.0.5"
54+
},
55+
"peerDependencies": {
56+
"react": ">=18.2.0",
57+
"react-dom": ">=18.2.0"
58+
}
59+
}
60+

0 commit comments

Comments
 (0)