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

Remove unused image-banner section setting translation #2482

Conversation

vfonic
Copy link
Contributor

@vfonic vfonic commented Apr 1, 2023

PR Summary:

I removed "adapt_height_first_image" setting translations from image-banner section as it is not used anymore.
It remained here after this PR and seems like it never got removed by the translation platform:
https://github.com/Shopify/dawn/pull/2148/files#r1043139341

Why are these changes introduced?

I was manually upgrading theme from 8.0.1 to 9.0.0. This is always a painful experience. I noticed that there's this new setting value that appeared in my templates/index.json and I removed it since it's not used and it took my time to figure out where this setting came from. Having this setting completely removed, it might save time for other developers in the future how are also manually upgrading their themes.

What approach did you take?

Other considerations

Decision log

# Decision Alternatives Rationale Downsides
1

Visual impact on existing themes

Testing steps/scenarios

  • Step 1

Demo links

Checklist

@@ -1047,7 +1047,7 @@
"margin_top": {
"label": "Top margin"
},
"header__9": {
"header__9": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be great if this PR got merged in so that we don't have this kinds of changes anymore: Add prettier config to support format-on-save #2323

@@ -37,7 +37,6 @@
"settings": {
"image_overlay_opacity": 40,
"image_height": "large",
"adapt_height_first_image": false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the line that made me go down the rabbit hole.

@vfonic
Copy link
Contributor Author

vfonic commented Apr 1, 2023

Please have a look @kmeleta @LucasLacerdaUX

@melissaperreault melissaperreault mentioned this pull request Apr 3, 2023
8 tasks
Copy link
Contributor

@LucasLacerdaUX LucasLacerdaUX left a comment

Choose a reason for hiding this comment

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

Looks good to me. I'll try to check why translation platform never removed this key 👀

Thanks for the contribution, @vfonic! :D

@ludoboludo
Copy link
Contributor

Looks like it's just because we never removed the english translation string so nothing was triggered on the translation platform side of things.

@ludoboludo ludoboludo merged commit 1e29b3d into Shopify:main Apr 7, 2023
@vfonic vfonic deleted the remove-unused-image-banner-setting-translation branch April 7, 2023 19:24
phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
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