-
Notifications
You must be signed in to change notification settings - Fork 38
Comparing changes
Open a pull request
base repository: Shopify/theme-tools
base: a7de3d4e909f1cffa2763f8dca6a789566592aee
head repository: Shopify/theme-tools
compare: 8bceaa3421524ae660b0d207fa25bc4dfe42034c
Commits on Jan 23, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 9765bec - Browse repository at this point
Copy the full SHA 9765becView commit details
Commits on Jan 24, 2025
-
Add util function to read liquid doc definitions for a snippet Implement SnippetHoverProvider Connect SnippetHoverProvider with server Add changeset Provide default value for getLiquidDocDefinitionsForURI Rename SnippetHoverProvider -> RenderSnippetHoverProvider
Configuration menu - View commit details
-
Copy full SHA for 931dc9b - Browse repository at this point
Copy the full SHA 931dc9bView commit details -
Refactor - Simplify code by moving liquid doc visiting logic to its o…
…wn module ---- We didn't need to use the make pattern at least at this stage, so I'm removing the code in ThemeCheckCommon and placing it in its own module. We may need to revisit this when we are writing theme checks. However, for the purpose of hover, this is where the code should live.
Configuration menu - View commit details
-
Copy full SHA for fea457f - Browse repository at this point
Copy the full SHA fea457fView commit details -
Refactor Liquid documentation types and update references to improve …
…clarity - Renamed `GetLiquidDocDefinitionsForURI` to `GetSnippetDefinitionForURI` - Introduced `SnippetDefinition` type to replace `LiquidDocDefinition`, enhancing type specificity.
Configuration menu - View commit details
-
Copy full SHA for 83897eb - Browse repository at this point
Copy the full SHA 83897ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for c85a613 - Browse repository at this point
Copy the full SHA c85a613View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52bf118 - Browse repository at this point
Copy the full SHA 52bf118View commit details
Commits on Jan 27, 2025
-
[LiquidDoc] Add snippet hover support inside of {% render %} tag (#703)
## What are you adding in this PR? Shopify/developer-tools-team#496 **1) Hover support for Liquid snippets inside of a `{% render %}` tag. Users will now see:** - The snippet name as a header - A list of parameters with their types and descriptions (if documented) If there is no `{% doc %}` present in the snippet, we will just render the snippet name **2) Caching for fetching LiquidDoc definitions** ##### Example snippet documentation: ```liquid {% doc %} @param {String} title - The title of the product @param {Number} border-radius - The border radius in px {% enddoc %} ``` ##### When hovering over `product-card` in `{% render 'product-card' %}`, users will see: ```markdown ### product-card **Parameters:** - `title`: String - The title of the product - `border-radius`: Number - The border radius in px ``` Uploading Cursor - liquidDoc.ts — theme-tools.mp4… #### Hovering a snippet with docs  #### Hovering a snippet without liquiddoc  ## What's next? Any followup issues? - Consider adding validation for param types - Add support for return value documentation - Add support for example usage documentation ## What did you learn? This is my first time working with the hover API in VS code. Pretty cool to read up on! ## Before you deploy - [x] I included a minor bump `changeset` - [x] My feature is backward compatible
Configuration menu - View commit details
-
Copy full SHA for a42459e - Browse repository at this point
Copy the full SHA a42459eView commit details -
Configuration menu - View commit details
-
Copy full SHA for dd0cd4d - Browse repository at this point
Copy the full SHA dd0cd4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c76cae5 - Browse repository at this point
Copy the full SHA c76cae5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ccf7d7 - Browse repository at this point
Copy the full SHA 1ccf7d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02b8967 - Browse repository at this point
Copy the full SHA 02b8967View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f1ddbb - Browse repository at this point
Copy the full SHA 6f1ddbbView commit details -
[LiquidDoc] Prevent rendering of hover tooltip for snippets with no r…
…enderable content (#729) ## What are you adding in this PR? `{% render 'snippet' %}` Prevents rendering hover tooltip for snippets that: - do not exist - do not have renderable content. **Renderable content**: Currently, this means that it requires a `LiquidDoc` definition with `@param` annotations, though this will soon expand to the description and `@example` as well ## Before you deploy <!-- Delete the checklists you don't need --> <!-- Check changes --> - [ ] This PR includes a new checks or changes the configuration of a check - [ ] I included a minor bump `changeset` - [ ] It's in the `allChecks` array in `src/checks/index.ts` - [ ] I ran `yarn build` and committed the updated configuration files <!-- It might be that a check doesn't make sense in a theme-app-extension context --> <!-- When that happens, the check's config should be updated/overridden in the theme-app-extension config --> <!-- see packages/node/configs/theme-app-extension.yml --> - [ ] If applicable, I've updated the `theme-app-extension.yml` config <!-- Public API changes, new features --> - [ ] I included a minor bump `changeset` - [x] My feature is backward compatible <!-- Bug fixes --> - [x] I included a patch bump `changeset`
Configuration menu - View commit details
-
Copy full SHA for f28e72d - Browse repository at this point
Copy the full SHA f28e72dView commit details -
[LiquidDoc] Modify paramDescription to be null if empty (#737)
## What are you adding in this PR? Returns `null` in the `liquid-html-parser` if `paramDescription` value is `''`. Also added some test coverage in the language server for this case. - [paramDescription](https://github.com/Shopify/theme-tools/blob/main/packages/liquid-html-parser/grammar/liquid-html.ohm#L403) is always matched in the grammar. I experimented with changing that matching logic but ultimately felt it was simpler this logic in instead `stage-2`, though we could revisit this <!-- Bug fixes --> - [x] I included a patch bump `changeset`
Configuration menu - View commit details
-
Copy full SHA for fced038 - Browse repository at this point
Copy the full SHA fced038View commit details
Commits on Jan 28, 2025
-
Add duplicate settings ID detection for theme checker
Implements a new validation check to prevent duplicate setting IDs across theme configurations. This helps theme developers identify and fix duplicate IDs early in development, preventing potential conflicts and overrides. The implementation includes: - New JSONCheckDefinition for unique setting ID validation - Test coverage for valid and invalid theme configurations - Detection logic for finding duplicate IDs in settings schema See: Ticket: 49020903 Shopify/cli#4187
Configuration menu - View commit details
-
Copy full SHA for a505e42 - Browse repository at this point
Copy the full SHA a505e42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0575160 - Browse repository at this point
Copy the full SHA 0575160View commit details -
Configuration menu - View commit details
-
Copy full SHA for 913d538 - Browse repository at this point
Copy the full SHA 913d538View commit details -
[Theme Check] Add check for duplicate settings id's (#696)
Closes Shopify/developer-tools-team#263 Implements a new validation check to prevent duplicate setting IDs across theme configurations. This helps theme developers identify and fix duplicate IDs early in development, preventing potential conflicts and overrides. The implementation includes: - New JSONCheckDefinition for unique setting ID validation - Test coverage for valid and invalid theme configurations - Detection logic for finding duplicate IDs in settings schema See: Ticket: 49020903 Shopify/cli#4187 ## What are you adding in this PR? This PR adds a new theme check validator that detects duplicate setting IDs in theme configurations. The validator scans settings_schema.json files and reports an error when it finds multiple settings using the same ID value, preventing potential runtime conflicts. Key changes: - New UniqueSettingIds check that validates setting ID uniqueness - Integration with the existing theme checker infrastructure - Test coverage for both valid and invalid scenarios - Error reporting with precise location information ## What's next? Any followup issues? Potential follow-ups: - Consider extending the check to validate uniqueness across sections - Add documentation for theme developers about ID uniqueness requirements - Consider adding quick-fix suggestions for duplicate IDs ## What did you learn? Working with AST traversal for JSON validation showed that we need a consistent approach to handle nested property validation. The existing node type checks provided a good pattern to follow. ## Before you deploy <!-- Delete the checklists you don't need --> <!-- Check changes --> - [x] This PR includes a new checks or changes the configuration of a check - [x] I included a minor bump `changeset` - [x] It's in the `allChecks` array in `src/checks/index.ts` - [x] I ran `yarn build` and committed the updated configuration files
Configuration menu - View commit details
-
Copy full SHA for ed3c437 - Browse repository at this point
Copy the full SHA ed3c437View commit details -
Configuration menu - View commit details
-
Copy full SHA for 915ccf5 - Browse repository at this point
Copy the full SHA 915ccf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3300f9 - Browse repository at this point
Copy the full SHA c3300f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a2e7f70 - Browse repository at this point
Copy the full SHA a2e7f70View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8a7cc1 - Browse repository at this point
Copy the full SHA a8a7cc1View commit details
Commits on Jan 30, 2025
-
Merge pull request #731 from Shopify/changeset-release/main
Theme Tools Release — 2025-01-28
Configuration menu - View commit details
-
Copy full SHA for eec8b27 - Browse repository at this point
Copy the full SHA eec8b27View commit details -
Update repository URL definition to be case sensitive
Without this we'll fail to publish to NPM due to a provenance failure that looks like this: ``` error an error occurred while publishing @shopify/theme-language-server-browser: E422 422 Unprocessable Entity - PUT https://registry.npmjs.org/@shopify%2ftheme-language-server-browser - Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "git+https://github.com/shopify/theme-tools.git", expected to match "https://github.com/Shopify/theme-tools" from provenance ```
Configuration menu - View commit details
-
Copy full SHA for 841ca6d - Browse repository at this point
Copy the full SHA 841ca6dView commit details
Commits on Jan 31, 2025
-
Merge pull request #746 from Shopify/gg-fix-repository-url
Update repository URL definition to be case sensitive
Configuration menu - View commit details
-
Copy full SHA for d6286fb - Browse repository at this point
Copy the full SHA d6286fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9173015 - Browse repository at this point
Copy the full SHA 9173015View commit details -
Merge pull request #747 from Shopify/changeset-release/main
Theme Tools Release — 2025-01-31
Configuration menu - View commit details
-
Copy full SHA for 8bceaa3 - Browse repository at this point
Copy the full SHA 8bceaa3View commit details
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.