Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: init the insight page #731

Merged
merged 7 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions assistant/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
{
"name": "@petercatai/assistant",
"version": "2.1.0-alpha.0",
"version": "2.1.0-alpha.4",
"description": "PeterCat Assistant Application",
"repository": "https://github.com/petercat-ai/petercat.git",
"license": "MIT",
"sideEffects": [
"**/*.css"
],
"exports": {
".": {
"import": "./dist/esm/index.js"
},
"./style": {
"import": "./dist/esm/style/global.css"
}
".": "./dist/esm/index.js",
"./style": "./dist/esm/style/global.css"
},
"module": "dist/esm/index.js",
"browser": "dist/umd/assistant.min.js",
Expand Down Expand Up @@ -56,6 +52,8 @@
]
},
"dependencies": {
"antd": "^5.15.3",
"@antv/g2": "^5.2.10",
"@ant-design/icons": "^5.3.5",
"@ant-design/x": "^1.0.0",
"@babel/runtime": "^7.18.0",
Expand Down Expand Up @@ -101,8 +99,6 @@
"stylelint": "^14.9.1"
},
"peerDependencies": {
"@antv/g2": "^5.2.10",
"antd": "^5.15.3",
"react": ">=18.0.0 <19.0.0",
"react-dom": ">=18.0.0 <19.0.0"
},
Expand Down
2 changes: 2 additions & 0 deletions assistant/src/AreaChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ const AreaChart: React.FC<AreaChartProps> = ({

if (hasTypeField(data)) {
chartDefinition.encode('color', 'type');
} else {
chartDefinition.encode('color', 'x');
}

chartDefinition.scale('color', {
Expand Down
3 changes: 2 additions & 1 deletion assistant/src/SegmentedTabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const SegmentedTabs: React.FC<SegmentedTabsProps> = ({
const getTabClass = (value: string) => {
const isActive = active === value;

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

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

Expand Down
1 change: 1 addition & 0 deletions assistant/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export { default as BoxChart } from './BoxChart';
export { default as ChartHeader } from './ChartHeader';
export { default as Chat } from './Chat';
export { default as GitInsight } from './GitInsight';
export { default as GitInsightIcon } from './GitInsight/components/GitInsightIcon';
export { default as Heatmap } from './Heatmap';
export { default as useUser } from './hooks/useUser';
export { default as LineChart } from './LineChart';
Expand Down
Loading
Loading