Skip to content

Conversation

@quangtuanitmo18
Copy link
Contributor

added components AnimatedCounter and Chart for CodeX UI
image
image

@vercel
Copy link

vercel bot commented Dec 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
codex-ui Ready Ready Preview, Comment Dec 23, 2025 6:33pm

Copy link

Copilot AI left a 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.

@quangtuanitmo18 quangtuanitmo18 merged commit 0ae353e into main Dec 29, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants