Skip to content

Commit 4f11999

Browse files
authored
feat: init the insight page (#731)
* feat: add the insight page * fix(assistant): fix the build * feat: init the insight pager * feat: add the contributor * style: twaak the style for the insight page * feat: add the overview insight * chore: fix build
1 parent 7be644d commit 4f11999

File tree

23 files changed

+1513
-174
lines changed

23 files changed

+1513
-174
lines changed

assistant/package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
{
22
"name": "@petercatai/assistant",
3-
"version": "2.1.0-alpha.0",
3+
"version": "2.1.0-alpha.4",
44
"description": "PeterCat Assistant Application",
55
"repository": "https://github.com/petercat-ai/petercat.git",
66
"license": "MIT",
77
"sideEffects": [
88
"**/*.css"
99
],
1010
"exports": {
11-
".": {
12-
"import": "./dist/esm/index.js"
13-
},
14-
"./style": {
15-
"import": "./dist/esm/style/global.css"
16-
}
11+
".": "./dist/esm/index.js",
12+
"./style": "./dist/esm/style/global.css"
1713
},
1814
"module": "dist/esm/index.js",
1915
"browser": "dist/umd/assistant.min.js",
@@ -56,6 +52,8 @@
5652
]
5753
},
5854
"dependencies": {
55+
"antd": "^5.15.3",
56+
"@antv/g2": "^5.2.10",
5957
"@ant-design/icons": "^5.3.5",
6058
"@ant-design/x": "^1.0.0",
6159
"@babel/runtime": "^7.18.0",
@@ -101,8 +99,6 @@
10199
"stylelint": "^14.9.1"
102100
},
103101
"peerDependencies": {
104-
"@antv/g2": "^5.2.10",
105-
"antd": "^5.15.3",
106102
"react": ">=18.0.0 <19.0.0",
107103
"react-dom": ">=18.0.0 <19.0.0"
108104
},

assistant/src/AreaChart/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ const AreaChart: React.FC<AreaChartProps> = ({
113113

114114
if (hasTypeField(data)) {
115115
chartDefinition.encode('color', 'type');
116+
} else {
117+
chartDefinition.encode('color', 'x');
116118
}
117119

118120
chartDefinition.scale('color', {

assistant/src/SegmentedTabs/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const SegmentedTabs: React.FC<SegmentedTabsProps> = ({
3737
const getTabClass = (value: string) => {
3838
const isActive = active === value;
3939

40-
const base = 'flex-1 flex items-center justify-center cursor-pointer';
40+
const base =
41+
'flex-1 flex items-center justify-center cursor-pointer text-[14px]';
4142

4243
const normal = 'bg-white text-black border-none';
4344

assistant/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export { default as BoxChart } from './BoxChart';
55
export { default as ChartHeader } from './ChartHeader';
66
export { default as Chat } from './Chat';
77
export { default as GitInsight } from './GitInsight';
8+
export { default as GitInsightIcon } from './GitInsight/components/GitInsightIcon';
89
export { default as Heatmap } from './Heatmap';
910
export { default as useUser } from './hooks/useUser';
1011
export { default as LineChart } from './LineChart';

0 commit comments

Comments
 (0)