-
Notifications
You must be signed in to change notification settings - Fork 3
Preview/shopify theme #63
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
base: main
Are you sure you want to change the base?
Changes from all commits
0955e19
7c5ef19
fcd68e0
483cfb5
1c8b8be
9c9cf95
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
reviews: | ||
path_filters: ["**/*","*.*"] | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Explicitly enable all checks (by default, all are enabled) | ||
checks: | ||
all: true |
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,8 @@ | ||||||||||||||||||
/* CSS with deliberate issues */ | ||||||||||||||||||
body { | ||||||||||||||||||
font-family: Arial sans-serif /* Missing comma between fonts and no semicolon */ | ||||||||||||||||||
color: #333 | ||||||||||||||||||
} | ||||||||||||||||||
Comment on lines
+2
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix CSS syntax errors in body selector. The body selector has multiple syntax issues that will prevent proper styling:
Apply this diff to fix the syntax: body {
- font-family: Arial sans-serif /* Missing comma between fonts and no semicolon */
- color: #333
+ font-family: Arial, sans-serif;
+ color: #333;
} 📝 Committable suggestion
Suggested change
🧰 Tools🪛 Biome (1.9.4)[error] 4-4: Unexpected value or character. Expected one of: (parse) 🤖 Prompt for AI Agents
|
||||||||||||||||||
.invalid-selector { | ||||||||||||||||||
--unknown: 123 /* Invalid property/value syntax */ | ||||||||||||||||||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// JavaScript with syntax errors | ||
function initTheme() { | ||
console.log("Initializing theme... // Missing closing quote and parenthesis | ||
} | ||
|
||
initTheme(); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"name": "General", | ||
"settings": [ | ||
{ | ||
"type": "text", | ||
"id": "title", | ||
"label": "Store Title", | ||
"default": "My Shopify Store", | ||
} // Trailing comma causes invalid JSON | ||
] | ||
} | ||
] |
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,14 @@ | ||||||||||||||
<!DOCTYPE html> | ||||||||||||||
<html lang="en"> | ||||||||||||||
<head> | ||||||||||||||
<meta charset="UTF-8"> | ||||||||||||||
<title>{{ page_title </title> {# Missing closing curly brace and invalid Liquid tag #} | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix critical syntax error in title tag The title tag has invalid syntax with a missing closing - <title>{{ page_title </title> {# Missing closing curly brace and invalid Liquid tag #}
+ <title>{{ page_title }}</title> 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||
{{ 'style.css' | asset_url | stylesheet_tag }} | ||||||||||||||
</head> | ||||||||||||||
<body> | ||||||||||||||
{% include 'header' %} {# Assume this is meant to call a section/snippet but syntax might be off #} | ||||||||||||||
{{ content_for_layout } | ||||||||||||||
{% include 'footer' %} | ||||||||||||||
Comment on lines
+9
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix syntax error and use 'render' instead of deprecated 'include' Multiple issues in this section:
- {% include 'header' %} {# Assume this is meant to call a section/snippet but syntax might be off #}
- {{ content_for_layout }
- {% include 'footer' %}
+ {% render 'header' %}
+ {{ content_for_layout }}
+ {% render 'footer' %} 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||
{{ 'theme.js' | asset_url | script_tag }} | ||||||||||||||
</body> | ||||||||||||||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"general": { | ||
"welcome": "Welcome to our store!", // Trailing comma causes invalid JSON | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<footer> | ||
<p>© {{ 'now' | date: "%Y" }} My Shopify Store</p> | ||
<p>Contact us at [email protected] {# Missing closing tag or unexpected text #} | ||
</footer> |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,9 @@ | ||||||||||||||||||||||||
<header> | ||||||||||||||||||||||||
<h1>{{ settings.title }</h1> {# Missing closing double curly brace on settings.title #} | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix missing closing curly brace in settings.title. The settings.title Liquid expression is missing a closing curly brace, causing a template parsing error. Apply this diff to fix the syntax: - <h1>{{ settings.title }</h1> {# Missing closing double curly brace on settings.title #}
+ <h1>{{ settings.title }}</h1> {# Fixed: Added closing curly brace #} 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||||||||||||
<nav> | ||||||||||||||||||||||||
<ul> | ||||||||||||||||||||||||
<li><a href="/collections/all">Products</a></li> | ||||||||||||||||||||||||
<li><a href="/about-us">About Us</a></li> | ||||||||||||||||||||||||
<!-- Missing closing </ul> tag --> | ||||||||||||||||||||||||
</nav> | ||||||||||||||||||||||||
Comment on lines
+4
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add missing closing ul tag. The navigation list is missing its closing Apply this diff to fix the HTML structure: <nav>
<ul>
<li><a href="/collections/all">Products</a></li>
<li><a href="/about-us">About Us</a></li>
- <!-- Missing closing </ul> tag -->
+ </ul> <!-- Fixed: Added closing ul tag -->
</nav> 📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shopify Theme Check cli (3.77.1) theme (3.58.2)[error] 8-8: SyntaxError: expected "}}" (LiquidHTMLSyntaxError) 🤖 Prompt for AI Agents
|
||||||||||||||||||||||||
</header> |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,4 @@ | ||||||||||
<div class="product-card"> | ||||||||||
<h2>{{ product.title </h2> {# Missing closing curly brace for product.title #} | ||||||||||
<p>Price: {{ product.price | money }}</p | ||||||||||
Comment on lines
+2
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix multiple syntax errors in product card. The snippet has two syntax errors:
Apply this diff to fix both issues: - <h2>{{ product.title </h2> {# Missing closing curly brace for product.title #}
- <p>Price: {{ product.price | money }}</p
+ <h2>{{ product.title }}</h2> {# Fixed: Added closing curly brace #}
+ <p>Price: {{ product.price | money }}</p> {# Fixed: Added closing bracket #} 📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shopify Theme Check cli (3.77.1) theme (3.58.2)[error] 3-3: SyntaxError: expected ">" (LiquidHTMLSyntaxError) 🤖 Prompt for AI Agents
|
||||||||||
</div> |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,8 @@ | ||||||||||
{% section 'header' %} | ||||||||||
<main> | ||||||||||
<h2>Featured Products</h2> | ||||||||||
{% for product in collections.frontpage.products %} | ||||||||||
{% include 'product-card' {# Missing closing %} tag #} | ||||||||||
Comment on lines
+4
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix syntax error and use 'render' instead of deprecated 'include' There are two issues here:
- {% for product in collections.frontpage.products %}
- {% include 'product-card' {# Missing closing %} tag #}
+ {% for product in collections.frontpage.products %}
+ {% render 'product-card', product: product %} 📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shopify Theme Check cli (3.77.1) theme (3.58.2)[warning] 4-4: Use the 'render' tag instead of 'include' (DeprecatedTag) 🤖 Prompt for AI Agents
|
||||||||||
{% endfor %} | ||||||||||
</main> | ||||||||||
{% section 'footer' {# Using "section" instead of include for footer, and missing closing %} #} | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix syntax error and use correct tag for footer This line has multiple issues:
-{% section 'footer' {# Using "section" instead of include for footer, and missing closing %} #}
+{% render 'footer' %} 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,8 @@ | ||||||||
{% section 'header' %} | ||||||||
<main> | ||||||||
<article> | ||||||||
<h1>{{ product.title }}</h1> | ||||||||
<div>{{ product.description {# Missing closing curly brace #} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix missing closing curly brace in Liquid expression. The product description output is missing a closing curly brace, causing a template parsing error. Apply this diff to fix the syntax: - <div>{{ product.description {# Missing closing curly brace #}
+ <div>{{ product.description }}</div> {# Fixed: Added closing braces and div tag #} 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||
</article> | ||||||||
</main> | ||||||||
{% section 'footer' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix YAML formatting and simplify redundant path patterns.
The configuration has several formatting issues and redundant patterns:
*.*
is redundant since**/*
already matches all filesApply this diff to fix the formatting and simplify the configuration:
📝 Committable suggestion
🧰 Tools
🪛 YAMLlint (1.37.1)
[warning] 2-2: too few spaces after comma
(commas)
[error] 2-2: no new line character at the end of file
(new-line-at-end-of-file)
🤖 Prompt for AI Agents