Skip to content

Commit 175ddc8

Browse files
committed
feat: Add Chart Visualization component and integrate with SQL tab
- Introduced ChartVisualization component for rendering various chart types (bar, line, pie, area) based on query results. - Implemented CustomChartTooltip for enhanced tooltip display in charts. - Updated SQLTab to include tabs for displaying results in table and chart formats. - Enhanced DuckUITable with export functionality for JSON, Excel, and Parquet formats. - Added utility functions for number formatting and label shortening in charts. - Updated package.json dependencies and added resolutions for compatibility. - Refactored FileImporter component for cleaner file selection UI. - Improved state management in DuckStore for handling chart configurations.
1 parent e26b3d1 commit 175ddc8

File tree

14 files changed

+1124
-109
lines changed

14 files changed

+1124
-109
lines changed

.github/workflows/2-docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
build:
2020
runs-on: ubuntu-latest
2121
if: |
22-
(!contains(github.event.head_commit.message, 'docker-false') && !contains(github.event.head_commit.message, 'release-only') && !contains(github.event.head_commit.message, 'docs-only')) ||
22+
(!contains(github.event.head_commit.message, 'docker-false') && !contains(github.event.head_commit.message, 'docs-only')) ||
2323
contains(github.event.head_commit.message, 'docker-only')
2424
permissions:
2525
contents: read

.github/workflows/3-deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
deploy:
1212
runs-on: ubuntu-latest
1313
if: |
14-
(!contains(github.event.head_commit.message, 'no-docs') && !contains(github.event.head_commit.message, 'release-only') && !contains(github.event.head_commit.message, 'docker-only')) ||
14+
(!contains(github.event.head_commit.message, 'no-docs') && !contains(github.event.head_commit.message, 'docker-only')) ||
1515
contains(github.event.head_commit.message, 'docs-only')
1616
permissions:
1717
contents: write

LICENSE.md

Lines changed: 67 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,67 @@
1-
MIT License
2-
3-
Copyright (c) 2025 Caio Ricciuti Duck-UI Iberodata.es
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
# License
2+
3+
## DUCK UI - Apache License 2.0
4+
5+
Copyright 2025 Caio Ricciuti
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
## What does this mean?
20+
21+
The Apache License 2.0 is a permissive open source license that provides users with extensive freedom to use, modify, and distribute the software, while also offering robust legal protection through its patent grant and clear contribution terms.
22+
23+
### You are free to:
24+
25+
- ✅ Use the software commercially
26+
- ✅ Modify the software
27+
- ✅ Distribute the software
28+
- ✅ Use the software for private use
29+
- ✅ Sublicense the software
30+
- ✅ Use patents claims of contributors to the code
31+
32+
### Under the following conditions:
33+
34+
- ℹ️ Include the original copyright notice
35+
- ℹ️ Include a copy of the license
36+
- ℹ️ State significant changes made to the software
37+
- ℹ️ Include the NOTICE file (if present) with attribution notes
38+
39+
### With the understanding that:
40+
41+
- ⚠️ The software is provided "as is", without warranty of any kind
42+
- ⚠️ The authors cannot be held liable for damages
43+
- ⚠️ Trademark use is not granted except as required for describing the origin of the work
44+
45+
## Key Benefits of Apache 2.0
46+
47+
### Patent Protection
48+
Unlike simpler licenses like MIT, Apache 2.0 includes an express patent grant from contributors to users. This means that if a contributor has patents that cover their contribution, they automatically grant you a license to use those patents.
49+
50+
### Clear Contribution Terms
51+
The license explicitly states that any contributions are assumed to be under the same Apache 2.0 license unless otherwise specified, providing clarity for collaborative development.
52+
53+
### Compatibility
54+
Apache 2.0 is compatible with many other open source licenses and is widely accepted in both open source and commercial contexts.
55+
56+
## Third-Party Licenses
57+
58+
CH-UI is built on top of several open-source projects. We'd like to acknowledge and give credit to these projects:
59+
60+
- [ClickHouse](https://github.com/ClickHouse/ClickHouse) - Apache 2.0 License
61+
- [React](https://github.com/facebook/react) - MIT License
62+
- [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) - MIT License
63+
- [Zustand](https://github.com/pmndrs/zustand) - MIT License
64+
- [Monaco Editor](https://github.com/microsoft/monaco-editor) - MIT License
65+
- [Lucide Icons](https://github.com/lucide-icons/lucide) - ISC License
66+
67+
For the full text of these licenses, please visit the respective project repositories.

0 commit comments

Comments
 (0)