Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
404 stars 122 forks source link

[Bug]: Inconsistent JSON Formatting #3719

Open ceri-waterscreative opened 4 months ago

ceri-waterscreative commented 4 months ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

Theme

Expected behavior

The format of .json templates to be consistent throughout systems.

Actual behavior

Verbose output

N/A

Reproduction steps

  1. Download the Theme from the Shopify Admin (using the "download theme file" button).

  2. Drop the contents over your locally setup Theme and See the File differences.

  3. Setup a Theme using the GitHub Integration and customize a these templates using the "Customize" action.

  4. Using the CLI run "shopify theme dev --theme-editor-sync" against that Repository and branch, you'll get notified that files between your local copy and the theme dev copy are different, choose to keep local. The templates will now get downloaded regardless, but without the JSON being escape.

In both scenarios you're left with changes to your .json templates, whereas ideally it should be consistent between all three systems.

Operating System

Windows 11

Shopify CLI version (check your project's package.json if you're not sure)

3.58.2

Shell

Git Bash

Node version (run node -v if you're not sure)

18.12.1

What language and version are you using in your application?

N/A

ceri-waterscreative commented 4 months ago

Just a further comment on this, where the JSON had been unescaped in the templates - it worked fine in theme Customizer but not on the front-end when putting the theme live.

github-actions[bot] commented 3 months ago

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

ceri-waterscreative commented 3 months ago

Bump

github-actions[bot] commented 1 month ago

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.