Skip to content

chore: add Chart component - #16118

Merged
BrunoQuaresma merged 5 commits into
mainfrom
bq/add-charts
Jan 14, 2025
Merged

BrunoQuaresma merged 5 commits into
mainfrom
bq/add-charts

Conversation

@BrunoQuaresma

@BrunoQuaresma BrunoQuaresma commented Jan 13, 2025 •

Copy link
Copy Markdown
Contributor

Related to #15297 and based on this design.

@BrunoQuaresma BrunoQuaresma self-assigned this Jan 13, 2025
Comment thread site/src/components/Chart/Chart.tsx Outdated
: config[key as keyof typeof config];
}

export {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far the pattern for imported shadcn components is to export in place inside of having all exports at the end of the file

Comment thread site/src/components/Chart/Chart.tsx Outdated
data-chart={chartId}
ref={ref}
className={cn(
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the pattern we are using for Tailwind is to use multiline strings to format very long classnames. We are currently not using className sorting.

@jaaydenh jaaydenh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BrunoQuaresma
BrunoQuaresma merged commit 473fcc3 into main Jan 14, 2025
@BrunoQuaresma
BrunoQuaresma deleted the bq/add-charts branch January 14, 2025 12:04
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants