Skip to content

Conversation

@shoplando
Copy link
Contributor

@shoplando shoplando commented Oct 9, 2025

What are you adding in this PR?

Solves #826
Updated theme check to support doc tag inside of snippet tag. This change allows the doc tag to be used within inline snippets, in addition to the previously supported snippet and block contexts.

This PR also makes the theme check more rigorous by ensuring the doc tag is either:

  • at the top level of a snippet/block file, OR
  • a direct child of the snippet tag

The error message has been updated to reflect this new support, and tests have been added to verify that doc tags inside inline snippets don't trigger errors.

What's next? Any followup issues?

Update the theme check docs

Before you deploy

  • This PR includes a new checks or changes the configuration of a check
  • I included a minor bump changeset
  • I've made a PR to update the shopify.dev theme check docs if applicable.

Copy link
Contributor Author

shoplando commented Oct 9, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@shoplando shoplando marked this pull request as ready for review October 9, 2025 15:59
@shoplando shoplando requested a review from a team as a code owner October 9, 2025 15:59
@shoplando shoplando force-pushed the add-doc-tag-snippet-support branch 2 times, most recently from 2b6b68c to 984c187 Compare October 9, 2025 18:32
@shoplando shoplando force-pushed the update-undefined-object-for-inline-snippets branch 2 times, most recently from 59d92da to 6189068 Compare October 14, 2025 13:53
@shoplando shoplando force-pushed the add-doc-tag-snippet-support branch from 984c187 to 80f1e20 Compare October 14, 2025 14:03
Copy link
Contributor

@aswamy aswamy left a comment

Choose a reason for hiding this comment

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

Small comment. Nice stuff!

Copy link
Contributor

@dejmedus dejmedus left a comment

Choose a reason for hiding this comment

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

🎩 went well !

Image Image

@shoplando shoplando force-pushed the add-doc-tag-snippet-support branch 4 times, most recently from 24dbcf0 to 6465a20 Compare October 16, 2025 17:53
@shoplando shoplando force-pushed the update-undefined-object-for-inline-snippets branch 2 times, most recently from a2a2a95 to d859b07 Compare October 16, 2025 18:42
@shoplando shoplando force-pushed the add-doc-tag-snippet-support branch from 6465a20 to 0263556 Compare October 16, 2025 18:42
@shoplando shoplando force-pushed the add-doc-tag-snippet-support branch from 0263556 to 9366de6 Compare October 21, 2025 20:24
@shoplando shoplando force-pushed the update-undefined-object-for-inline-snippets branch from d859b07 to fa207a1 Compare October 21, 2025 20:24
@shoplando shoplando force-pushed the add-doc-tag-snippet-support branch from 9366de6 to b4049b2 Compare October 22, 2025 16:34
@shoplando shoplando force-pushed the update-undefined-object-for-inline-snippets branch from fa207a1 to 3274d57 Compare October 22, 2025 16:34
@shoplando shoplando added the #gsd: 48097 Inline Snippets label Oct 29, 2025 — with Graphite App
@shoplando shoplando marked this pull request as draft November 6, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd: 48097 Inline Snippets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants