-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert ChartType
components to Mantine
#47745
Conversation
…r' into split-files-in-chart-type-sidebar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After playing around with this type, I've noticed that we don't use it, and it produces some very sketchy looking buttons. We're better off using the default filled
variant and specifying a color.
Codenotify: Notifying subscribers in CODENOTIFY files for diff d489654...fe78c1e.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Please have a look at a couple of minor comments
import { ChartTypeOption, type ChartTypeOptionProps } from "../ChartTypeOption"; | ||
|
||
export type ChartTypeListProps = { | ||
visualizationList: ChartTypeOptionProps["visualizationType"][]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: using just underlying types like CardDisplayType
here would be a bit more readable
}; | ||
|
||
describe("ChartTypeOption", () => { | ||
Object.entries(EXPECTED_VISUALIZATION_VALUES).forEach( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXPECTED_VISUALIZATION_VALUES
is an object where key is also in the value. Wdyt about making it an array, and then using it.each(EXPECTED_VISUALIZATION_VALUES)
? It would help to remove type casts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes!
…tabase into mantine/chart-type-migration
Converts the
ChartType
components to Mantine. This will help us with theming and customization within the Embedding SDK, and also just gives us a few more Mantine components to work with 😄