signoz
signoz copied to clipboard
refactor: initial setup for uplot bar chart
Summary
Related Issues / PR's
Screenshots
NA
Affected Areas and Manually Tested Areas
Summary by CodeRabbit
-
New Features
- Introduced a new Bar Chart functionality, including a customizable
BarIcon
andUplotBar
components for rendering simple bar charts. - Added support for a new panel type
BAR
across various components and utilities, enhancing the dashboard's visualization capabilities. - Implemented a new plugin for creating stacked or grouped bar charts within the uPlot library, with customizable options for bar width, spacing, orientation, and styling.
- Introduced a new Bar Chart functionality, including a customizable
-
Enhancements
- Enhanced the
GridPanelSwitch
component to support the newBAR
panel type with specific data and options. - Improved the
WidgetGraphContainer
logic to dynamically set the graph type based on user selection, supporting the transition between different panel types.
- Enhanced the
-
Documentation
- Added comments and documentation within new and modified files to explain the purpose and usage of the new bar chart functionality and components.
[!WARNING]
Rate Limit Exceeded
@Rajat-Dabade has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 33 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the
@coderabbitai review
command as a PR comment. Alternatively, push new commits to this PR.We recommend that you space out your commits to avoid hitting the rate limit.
How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information.
Commits
Files that changed from the base of the PR and between f02c23167b1ea35a1c8cf2dd292c6f2a03406b72 and 0e25d89a29c555df6040a61cdb5ff7e41b763941.
Walkthrough
The update introduces a new bar chart component and integrates it across the frontend, enhancing data visualization capabilities. It includes the creation of BarIcon
and UplotBar
components, adjustments to support the new BAR
panel type in various configurations, and updates to ensure compatibility and integration within the dashboard and widget systems. This comprehensive change allows for more dynamic and flexible data presentations, catering to users' evolving needs for visual analytics.
Changes
File Path | Change Summary |
---|---|
.../assets/Dashboard/BarIcon.tsx |
Introduced BarIcon component for a bar chart icon. |
.../components/UplotBar/UplotBar.tsx , .../components/UplotBar/index.ts |
Added UplotBar component and export setup. |
.../constants/panelTypes.ts , .../container/GridCardLayout/GridCard/FullView/contants.ts , .../container/NewDashboard/ComponentsSlider/constants.ts , .../container/NewWidget/RightContainer/constants.ts |
Included new BAR panel type and updated configurations. |
.../container/.../GridCard/FullView/index.tsx , .../container/.../GridCard/index.tsx , .../container/GridPanelSwitch/index.tsx , .../container/NewDashboard/ComponentsSlider/menuItems.ts , .../container/NewWidget/.../WidgetGraph/WidgetGraphContainer.tsx , .../container/NewWidget/.../WidgetGraph/WidgetGraphs.tsx , .../container/NewWidget/.../WidgetGraph/index.tsx |
Enhanced components to support and utilize the BAR panel type. |
.../container/FormAlertRules/... , .../container/ListAlertRules/ListAlert.tsx , .../container/QueryBuilder/QueryBuilder.tsx , .../hooks/queryBuilder/useCreateAlerts.tsx |
Adapted alert rules and query builder to handle BAR panel type. |
.../lib/uPlotLib/... |
Updated uPlot library utilities and tests to support bar chart visualizations. |
🐇🎉
In a land of code and binary streams,
A rabbit hopped, chasing its dreams.
With bars and charts, it paved the way,
For data stories to brightly sway.
So here's to changes, both big and small,
May they help us visualize, one and all.
🌟📊
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
-
I pushed a fix in commit <commit_id>.
-
Generate unit-tests for this file.
-
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitai
in a new review comment at the desired location with your query. Examples:-
@coderabbitai generate unit tests for this file.
-
@coderabbitai modularize this function.
-
- PR comments: Tag
@coderabbitai
in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:-
@coderabbitai generate interesting stats about this repository from git and render them as a table.
-
@coderabbitai show all the console.log statements in this repository.
-
@coderabbitai read src/utils.ts and generate unit tests.
-
@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
-
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (invoked as PR comments)
-
@coderabbitai pause
to pause the reviews on a PR. -
@coderabbitai resume
to resume the paused reviews. -
@coderabbitai review
to trigger a review. This is useful when automatic reviews are disabled for the repository. -
@coderabbitai resolve
resolve all the CodeRabbit review comments. -
@coderabbitai help
to get help.
Additionally, you can add @coderabbitai ignore
anywhere in the PR description to prevent this PR from being reviewed.
CodeRabbit Configration File (.coderabbit.yaml
)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yaml
file to the root of your repository. - The JSON schema for the configuration file is available here.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json
CodeRabbit Discord Community
Join our Discord Community to get help, request features, and share feedback.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>
@Rajat-Dabade: The left and the right bars look to be incomplete.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>