Skip to content
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

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

harshmeetTS
Copy link
Collaborator

Summary

Added styleConfig type for custom style config

Changes

  • Added CustomizableChartFeature Enum
  • Added custom color pallete and other configs available in admin panel

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

  • Should be tested as part of current UTs
  • Manual testing done.

Copy link

github-actions bot commented Jul 21, 2024

File Coverage
All files 78%
src/index.ts 0%
src/main/custom-chart-context.ts 85%
src/main/post-message-event-bridge.ts 81%
src/main/util.ts 75%
src/react/use-custom-chart-context.tsx 83%
src/react/mocks/custom-chart-context-mock.ts 76%
src/utils/conditional-formatting/conditional-formatting.ts 70%

Minimum allowed coverage is 0%

Generated by 🐒 cobertura-action against 903c402

*/

export type CustomFontFaces = {
id?: string;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

change to guid

*/

export type CustomFontFaces = {
guid?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be optional?

};
chartColorPalettes?: Array<{ colors: Array<string> }>;
disableColorRotation?: boolean;
chartFeatureToFontGuid: Record<CustomizableChartFeature, string>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be optional?


/**
* Used for Custom color pallete and Custom font for charts defined in Style customisations
* inside thoughtspot admin section
Copy link
Collaborator

Choose a reason for hiding this comment

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

admin/developer section

@abey-thomas abey-thomas merged commit 02565f6 into main Jul 22, 2024
2 checks passed
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.

2 participants