Skip to content

Move charts into @dub/ui/charts#1793

Merged
steven-tey merged 6 commits intomainfrom
dub-ui-charts
Dec 12, 2024
Merged

Move charts into @dub/ui/charts#1793
steven-tey merged 6 commits intomainfrom
dub-ui-charts

Conversation

@TWilson023
Copy link
Contributor

@TWilson023 TWilson023 commented Dec 12, 2024

Moves TimeSeriesChart, FunnelChart, and related components into @dub/ui/charts.

This requires updating tsup.config.ts and package.json with separate entry points for @dub/ui and @dub/ui/charts. Because this breaks all of the places we currently have @dub/ui/src/... (which are mostly icon imports), I also added a new entry point for @dub/ui/icons, and ideally we'll remove the icons from the root @dub/ui in the future.

This PR also adds defaultTooltipIndex to TimeSeriesChart and defaultTooltipStepId to FunnelChart so we can choose to display default tooltips when nothing is hovered, which may be useful for the marketing site.

@vercel
Copy link
Contributor

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dub ✅ Ready (Inspect) Visit Preview Dec 12, 2024 4:48pm

@socket-security
Copy link

socket-security bot commented Dec 12, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/d3-array@3.2.1 None 0 51.4 kB types

View full report↗︎

@steven-tey steven-tey added this pull request to the merge queue Dec 12, 2024
@steven-tey steven-tey removed this pull request from the merge queue due to a manual request Dec 12, 2024
@steven-tey steven-tey merged commit a0b2132 into main Dec 12, 2024
4 checks passed
@steven-tey steven-tey deleted the dub-ui-charts branch December 12, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants