-
Notifications
You must be signed in to change notification settings - Fork 4
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
SCAL-192741 added enum to support custom style config and color pallete #44
Conversation
Minimum allowed coverage is Generated by 🐒 cobertura-action against 903c402 |
src/types/common.types.ts
Outdated
*/ | ||
|
||
export type CustomFontFaces = { | ||
id?: string; |
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.
change to guid
src/types/common.types.ts
Outdated
*/ | ||
|
||
export type CustomFontFaces = { | ||
guid?: string; |
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.
should this be optional?
src/types/common.types.ts
Outdated
}; | ||
chartColorPalettes?: Array<{ colors: Array<string> }>; | ||
disableColorRotation?: boolean; | ||
chartFeatureToFontGuid: Record<CustomizableChartFeature, string>; |
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.
should this be optional?
src/types/common.types.ts
Outdated
|
||
/** | ||
* Used for Custom color pallete and Custom font for charts defined in Style customisations | ||
* inside thoughtspot admin section |
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.
admin/developer section
Summary
Added styleConfig type for custom style config
Changes
Why It Is Needed
Currently we are not passing app level style config for charts to ts-chart-sdk. Supported changes will be done in ts-chart-app to pass the correct values based on type specified for styleConfig
Testing