feat: add componets chart and animatedCounter#332
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
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.
neSpecc
reviewed
Dec 17, 2025
7a24989 to
d0f116b
Compare
neSpecc
reviewed
Dec 18, 2025
neSpecc
reviewed
Dec 18, 2025
neSpecc
reviewed
Dec 21, 2025
neSpecc
reviewed
Dec 21, 2025
neSpecc
reviewed
Dec 21, 2025
neSpecc
approved these changes
Dec 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added components AnimatedCounter and Chart for CodeX UI

