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

Allow charts font override in SDK #42855

Merged
merged 3 commits into from
May 20, 2024
Merged

Allow charts font override in SDK #42855

merged 3 commits into from
May 20, 2024

Conversation

deniskaber
Copy link
Contributor

Closes #42341

Description

This makes selected font applied to charts and tooltips in Embedding SDK

How to verify

Describe the steps to verify that the changes are working as expected.

  1. Use customer-zero demo app
  2. Set font to be not Lato (e.g. Oswald)
  3. Check that charts and tooltips in InteractiveQuestion and StaticQuestion use selected font

Demo

Upload a demo video or before/after screenshots if sensible or remove the section

Checklist

  • Tests have been added/updated to cover changes in this PR

@deniskaber deniskaber self-assigned this May 17, 2024
@deniskaber deniskaber added embedding-sdk-build Triggers embedding SDK package build no-backport Do not backport this PR to any branch labels May 17, 2024
@deniskaber deniskaber requested a review from a team May 17, 2024 19:24
Copy link

replay-io bot commented May 17, 2024

Status Complete ↗︎
Commit f6c5882
Results
⚠️ 4 Flaky
2521 Passed

Copy link
Contributor

@heypoom heypoom left a comment

Choose a reason for hiding this comment

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

Code-wise looks good to me! I haven't tested this locally though, will do this later today 👍🏻

If anyone else is reviewing this PR, feel free to help us to run locally as well 🙏🏻

@heypoom heypoom requested a review from a team May 20, 2024 09:12
@deniskaber
Copy link
Contributor Author

Code-wise looks good to me! I haven't tested this locally though, will do this later today 👍🏻

If anyone else is reviewing this PR, feel free to help us to run locally as well 🙏🏻

I checked it with local setup. Found one small issue when font is not defined in the client app config, fixed. Merging now

@deniskaber deniskaber enabled auto-merge (squash) May 20, 2024 14:53
@deniskaber deniskaber merged commit 0278b8d into master May 20, 2024
109 checks passed
@deniskaber deniskaber deleted the 42341-chart-fonts branch May 20, 2024 16:57
deniskaber added a commit that referenced this pull request May 22, 2024
* Allow charts font override in SDK

* Fix default not configured font

(cherry picked from commit 0278b8d)
deniskaber added a commit that referenced this pull request May 22, 2024
* Restore default styles for subtle button (#42854)

* fix(sdk): Use theme font in charts and tooltips (#42855)

* Allow charts font override in SDK

* Fix default not configured font

(cherry picked from commit 0278b8d)

* fix(sdk): Various fixes for InteractiveQuestion theming (#42932)

* Fixes for InteractiveQuestion theming

* Update readme

* Fix for unset filter theme color

* Fix unit tests

* Fix unit tests

(cherry picked from commit a3c3193)

# Conflicts:
#	enterprise/frontend/src/embedding-sdk/lib/theme/embedding-color-palette.ts
#	enterprise/frontend/src/embedding-sdk/lib/theme/get-embedding-theme.ts
#	frontend/src/metabase/ui/utils/colors.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedding-sdk-build Triggers embedding SDK package build no-backport Do not backport this PR to any branch .Team/Embedding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow overriding font in SDK
2 participants