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

feat!: Added nameTextStyle #132

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

vanlooverenkoen
Copy link
Contributor

Description

Add support for name text styles to make sure your background & text color still readable

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

Copy link
Contributor

@btrautmann btrautmann left a comment

Choose a reason for hiding this comment

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

let's add a test

also, I'll re-generate goldens via CI before merge rather than having you do it locally to ensure we don't see breakages on CI.

@vanlooverenkoen
Copy link
Contributor Author

Test added ✅

Copy link
Collaborator

@jeroen-meijer jeroen-meijer left a comment

Choose a reason for hiding this comment

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

Couple comments, I'll leave most of the review process to @btrautmann since he has more context.

If you ask me, LGTM.

Copy link
Collaborator

Choose a reason for hiding this comment

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

General question: why is this PR considered breaking? Seems like all that's being done is add an optional property 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

required this.nameTextStyle,

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, this tracks, as if you were using the constructor directly you'd break when updating. It begs the question whether we should've made that constructor public or whether all properties should be optional since all our defaults will likely be const anyway. Either way, I don't think that's something we need to solve as part of this PR.

@btrautmann
Copy link
Contributor

@vanlooverenkoen can you actually revert the change you made to the golden image? It's failing on CI because of a very minor difference between the image being generated on (what I assume is) macOS (your host machine) and CI. If you revert it, it will fail locally for you but pass on CI which is correct/desired (well, not "desired" but the platform-rendering-difference is out of our control).

@jeroen-meijer
Copy link
Collaborator

(well, not "desired" but the platform-rendering-difference is out of our control).

Funny, that's the whole reason we made Alchemist 😆

@vanlooverenkoen
Copy link
Contributor Author

@btrautmann I have reverted the golden tests

Copy link
Contributor

@btrautmann btrautmann left a comment

Choose a reason for hiding this comment

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

domain lgtm
platform lgtm

@btrautmann btrautmann merged commit 4bc0fc5 into Betterment:main Oct 9, 2024
8 checks passed
@vanlooverenkoen vanlooverenkoen deleted the feat/theming-name branch November 14, 2024 15:03
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.

4 participants