-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add componets chart and animatedCounter #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds two new UI components to the CodeX UI library: an AnimatedCounter component for smooth number transitions and a Chart component for rendering interactive line charts with tooltips. The implementation follows the existing component structure patterns in the codebase with proper TypeScript typing and Vue 3 composition API.
Key Changes
- Added AnimatedCounter component with slide animation effects for value changes
- Added Chart component with support for multiple lines, interactive tooltips, smooth Bezier curves, and configurable detalization (minutes/hours/days)
- Integrated both components into the development playground with demo pages
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 16 comments.
Show a summary per file
| File | Description |
|---|---|
| @codexteam/ui/src/vue/index.ts | Exports the new chart and counter components |
| @codexteam/ui/src/vue/components/counter/index.ts | Counter component barrel export |
| @codexteam/ui/src/vue/components/counter/Counter.vue | AnimatedCounter implementation with slide animations |
| @codexteam/ui/src/vue/components/chart/index.ts | Chart component barrel export with types and colors |
| @codexteam/ui/src/vue/components/chart/ChartLine.vue | Individual chart line rendering with smooth Bezier curves |
| @codexteam/ui/src/vue/components/chart/Chart.vue | Main chart component with tooltip and interaction logic |
| @codexteam/ui/src/vue/components/chart/Chart.types.ts | TypeScript type definitions for chart data structures |
| @codexteam/ui/src/vue/components/chart/Chart.colors.ts | Color configuration for chart lines (Red and LightGrey) |
| @codexteam/ui/dev/routes.ts | Adds routes for Counter and Chart demo pages |
| @codexteam/ui/dev/pages/components/Counter.vue | Demo page showing AnimatedCounter with increment/decrement controls |
| @codexteam/ui/dev/pages/components/Chart.vue | Demo page showing single and multiple line chart examples |
| @codexteam/ui/dev/Playground.vue | Navigation entries for the new component demo pages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7a24989 to
d0f116b
Compare
added components AnimatedCounter and Chart for CodeX UI

