From 0955e1941e84e4f18ca3cc39d91ced0fc84af286 Mon Sep 17 00:00:00 2001 From: nimratcoderabbit Date: Tue, 15 Jul 2025 14:20:56 -0400 Subject: [PATCH 1/6] Shopify theme files --- .coderabbit.yml | 2 ++ .theme-check.yml | 5 +++++ sections/test-section.liquid | 4 ++++ 3 files changed, 11 insertions(+) create mode 100644 .coderabbit.yml create mode 100644 .theme-check.yml create mode 100644 sections/test-section.liquid diff --git a/.coderabbit.yml b/.coderabbit.yml new file mode 100644 index 0000000..dcf8c91 --- /dev/null +++ b/.coderabbit.yml @@ -0,0 +1,2 @@ +reviews: + path_filters: ["**/*.yml","**/*.yaml"] diff --git a/.theme-check.yml b/.theme-check.yml new file mode 100644 index 0000000..4225ee8 --- /dev/null +++ b/.theme-check.yml @@ -0,0 +1,5 @@ +if (!configPath) { + logger.warn(`${loggerPrefix}config file not found, skipping tool`) + return toolRunFailure +} + diff --git a/sections/test-section.liquid b/sections/test-section.liquid new file mode 100644 index 0000000..00d37c2 --- /dev/null +++ b/sections/test-section.liquid @@ -0,0 +1,4 @@ +{% if product %} +

{{ product.title }}

+{% endif %} + From 7c5ef19f132e211352960765114d2c80ddd035c1 Mon Sep 17 00:00:00 2001 From: nimratcoderabbit Date: Tue, 15 Jul 2025 14:23:45 -0400 Subject: [PATCH 2/6] Fixing path --- .coderabbit.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.coderabbit.yml b/.coderabbit.yml index dcf8c91..79b362e 100644 --- a/.coderabbit.yml +++ b/.coderabbit.yml @@ -1,2 +1,3 @@ reviews: - path_filters: ["**/*.yml","**/*.yaml"] + path_filters: ["**/*.yml", "**/*.yaml", "**/*.liquid"] + From fcd68e03d8ddffce2bcddc3a903f85007d7dd8af Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 15 Jul 2025 14:47:07 -0400 Subject: [PATCH 3/6] fix config --- .theme-check.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.theme-check.yml b/.theme-check.yml index 4225ee8..2d12fcb 100644 --- a/.theme-check.yml +++ b/.theme-check.yml @@ -1,5 +1,7 @@ -if (!configPath) { - logger.warn(`${loggerPrefix}config file not found, skipping tool`) - return toolRunFailure -} +# theme-check.yml +include_paths: + - '**/*' +# Explicitly enable all checks (by default, all are enabled) +checks: + all: true \ No newline at end of file From 483cfb5a576a53d8f97975f00a0a8a590c1c74b2 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 15 Jul 2025 15:05:44 -0400 Subject: [PATCH 4/6] allow all --- .coderabbit.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.coderabbit.yml b/.coderabbit.yml index 79b362e..cfe5ff5 100644 --- a/.coderabbit.yml +++ b/.coderabbit.yml @@ -1,3 +1,2 @@ reviews: - path_filters: ["**/*.yml", "**/*.yaml", "**/*.liquid"] - + path_filters: ["**/*","*.*"] \ No newline at end of file From 1c8b8be3ac2cc8ff2117bb56b08e0cb2667c721b Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 16 Jul 2025 12:40:34 -0400 Subject: [PATCH 5/6] fix themecheck config --- .theme-check.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.theme-check.yml b/.theme-check.yml index 2d12fcb..c7fbaef 100644 --- a/.theme-check.yml +++ b/.theme-check.yml @@ -1,7 +1,3 @@ -# theme-check.yml -include_paths: - - '**/*' - # Explicitly enable all checks (by default, all are enabled) checks: all: true \ No newline at end of file From 9c9cf955aa86194c04c51d238552219bc1f7f596 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 16 Jul 2025 14:29:57 -0400 Subject: [PATCH 6/6] test with full layout --- assets/style.css | 8 ++++++++ assets/theme.js | 6 ++++++ config/settings_schema.json | 13 +++++++++++++ layout/theme.liquid | 14 ++++++++++++++ locales/en.default.json | 5 +++++ sections/footer.liquid | 4 ++++ sections/header.liquid | 9 +++++++++ sections/test-section.liquid | 4 ---- snippets/product-card.liquid | 4 ++++ templates/index.liquid | 8 ++++++++ templates/product.liquid | 8 ++++++++ 11 files changed, 79 insertions(+), 4 deletions(-) create mode 100644 assets/style.css create mode 100644 assets/theme.js create mode 100644 config/settings_schema.json create mode 100644 layout/theme.liquid create mode 100644 locales/en.default.json create mode 100644 sections/footer.liquid create mode 100644 sections/header.liquid delete mode 100644 sections/test-section.liquid create mode 100644 snippets/product-card.liquid create mode 100644 templates/index.liquid create mode 100644 templates/product.liquid diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..e1518fb --- /dev/null +++ b/assets/style.css @@ -0,0 +1,8 @@ +/* CSS with deliberate issues */ +body { + font-family: Arial sans-serif /* Missing comma between fonts and no semicolon */ + color: #333 +} +.invalid-selector { + --unknown: 123 /* Invalid property/value syntax */ +} diff --git a/assets/theme.js b/assets/theme.js new file mode 100644 index 0000000..cde71ee --- /dev/null +++ b/assets/theme.js @@ -0,0 +1,6 @@ +// JavaScript with syntax errors +function initTheme() { + console.log("Initializing theme... // Missing closing quote and parenthesis +} + +initTheme(); diff --git a/config/settings_schema.json b/config/settings_schema.json new file mode 100644 index 0000000..680f921 --- /dev/null +++ b/config/settings_schema.json @@ -0,0 +1,13 @@ +[ + { + "name": "General", + "settings": [ + { + "type": "text", + "id": "title", + "label": "Store Title", + "default": "My Shopify Store", + } // Trailing comma causes invalid JSON + ] + } +] diff --git a/layout/theme.liquid b/layout/theme.liquid new file mode 100644 index 0000000..2deb9e1 --- /dev/null +++ b/layout/theme.liquid @@ -0,0 +1,14 @@ + + + + + {{ page_title {# Missing closing curly brace and invalid Liquid tag #} + {{ 'style.css' | asset_url | stylesheet_tag }} + + + {% include 'header' %} {# Assume this is meant to call a section/snippet but syntax might be off #} + {{ content_for_layout } + {% include 'footer' %} + {{ 'theme.js' | asset_url | script_tag }} + + diff --git a/locales/en.default.json b/locales/en.default.json new file mode 100644 index 0000000..49aa028 --- /dev/null +++ b/locales/en.default.json @@ -0,0 +1,5 @@ +{ + "general": { + "welcome": "Welcome to our store!", // Trailing comma causes invalid JSON + } +} diff --git a/sections/footer.liquid b/sections/footer.liquid new file mode 100644 index 0000000..a6ae0cd --- /dev/null +++ b/sections/footer.liquid @@ -0,0 +1,4 @@ +
+

© {{ 'now' | date: "%Y" }} My Shopify Store

+

Contact us at email@example.com {# Missing closing tag or unexpected text #} +

diff --git a/sections/header.liquid b/sections/header.liquid new file mode 100644 index 0000000..4b6b69b --- /dev/null +++ b/sections/header.liquid @@ -0,0 +1,9 @@ +
+

{{ settings.title }

{# Missing closing double curly brace on settings.title #} + +
diff --git a/sections/test-section.liquid b/sections/test-section.liquid deleted file mode 100644 index 00d37c2..0000000 --- a/sections/test-section.liquid +++ /dev/null @@ -1,4 +0,0 @@ -{% if product %} -

{{ product.title }}

-{% endif %} - diff --git a/snippets/product-card.liquid b/snippets/product-card.liquid new file mode 100644 index 0000000..350d551 --- /dev/null +++ b/snippets/product-card.liquid @@ -0,0 +1,4 @@ +
+

{{ product.title

{# Missing closing curly brace for product.title #} +

Price: {{ product.price | money }}

diff --git a/templates/index.liquid b/templates/index.liquid new file mode 100644 index 0000000..a27c7b2 --- /dev/null +++ b/templates/index.liquid @@ -0,0 +1,8 @@ +{% section 'header' %} +
+

Featured Products

+ {% for product in collections.frontpage.products %} + {% include 'product-card' {# Missing closing %} tag #} + {% endfor %} +
+{% section 'footer' {# Using "section" instead of include for footer, and missing closing %} #} diff --git a/templates/product.liquid b/templates/product.liquid new file mode 100644 index 0000000..067432a --- /dev/null +++ b/templates/product.liquid @@ -0,0 +1,8 @@ +{% section 'header' %} +
+
+

{{ product.title }}

+
{{ product.description {# Missing closing curly brace #} +
+
+{% section 'footer' %}