-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds tag sorting capability and updates product displays
- Loading branch information
1 parent
8e80021
commit baed227
Showing
15 changed files
with
174 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
<div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-3"> | ||
<%- marketplace.products.with_all_rich_text.unarchived.each do |product| %> | ||
<%= render Marketplace::Menu::ProductComponent.new(product:, cart:)%> | ||
<%- marketplace.tags.ordered_tag_groups.each do |tag| %> | ||
<%- unless tag.products.empty? %> | ||
<h1><%= tag.label %></h1> | ||
<div class="grid lg:grid-cols-3 gap-3"> | ||
<%- tag.products.with_all_rich_text.unarchived.each do |product| %> | ||
<%= render Marketplace::Menu::ProductComponent.new(product:, cart:) %> | ||
<%- end %> | ||
</div> | ||
<%- end %> | ||
<%- end %> | ||
<h1>Everything</h1> | ||
<div class="grid lg:grid-cols-3 gap-3"> | ||
<%- marketplace.products_with_no_group_tags.each do |product| %> | ||
<%= render Marketplace::Menu::ProductComponent.new(product:, cart:) %> | ||
<%- end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<%= form_with(model: tag.location) do |form| %> | ||
|
||
<%= render "text_field", attribute: :label, form: form %> | ||
|
||
<%= form.submit %> | ||
<div class="flex flex-col gap-5"> | ||
<div> | ||
<%= render "text_field", attribute: :label, form: form %> | ||
<%= form.label :is_group, "Is this a menu section?" %> | ||
<%= form.check_box :is_group %> | ||
</div> | ||
<%= form.submit %> | ||
</div> | ||
<%- end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% | ||
# We must assign the marketplace object explicitly in the current scope | ||
# because of the funky way we relate Tags to the Marketplace through a Bazaar. | ||
# Yet our routing and navigation depends on a `marketplace` object being present | ||
# on a Tag. | ||
mtag.marketplace = marketplace | ||
%> | ||
<%- breadcrumb :edit_marketplace_tag, mtag %> | ||
<%= render "form", tag: mtag %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -423,6 +423,11 @@ | |
dependencies: | ||
spark-md5 "^3.0.1" | ||
|
||
"@rails/request.js@^0.0.9": | ||
version "0.0.9" | ||
resolved "https://registry.yarnpkg.com/@rails/request.js/-/request.js-0.0.9.tgz#89e2a575405dc07eb8a9b3d2fe04289e1f057cd0" | ||
integrity sha512-VleYUyrA3rwKMvYnz7MI9Ada85Vekjb/WVz7NuGgDO24Y3Zy9FFSpDMQW+ea/tlftD+CdX/W/sUosRA9/HkDOQ== | ||
|
||
"@sentry-internal/[email protected]": | ||
version "7.113.0" | ||
resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-7.113.0.tgz#90a3c5493e289d589cfde79330fca549a24f41a4" | ||
|
@@ -510,6 +515,11 @@ | |
resolved "https://registry.yarnpkg.com/@sindresorhus/merge-streams/-/merge-streams-1.0.0.tgz#9cd84cc15bc865a5ca35fcaae198eb899f7b5c90" | ||
integrity sha512-rUV5WyJrJLoloD4NDN1V1+LDMDWOa4OTsT4yYJwQNpTU6FWxkxHpL7eu4w+DmiH8x/EAM1otkPE1+LaspIbplw== | ||
|
||
"@stimulus-components/sortable@^5.0.1": | ||
version "5.0.1" | ||
resolved "https://registry.yarnpkg.com/@stimulus-components/sortable/-/sortable-5.0.1.tgz#622b54bd11ab905ab28bdd8282399dc682d06933" | ||
integrity sha512-03wQ+0fRaa0cYR3ia8+DJ4vW+UnAmBz24N8ChujWbceN79il49l7+hUZr74FNghmdX2OWhrmcr4YoG+VZ5XQ2g== | ||
|
||
"@tailwindcss/forms@^0.5.7": | ||
version "0.5.7" | ||
resolved "https://registry.yarnpkg.com/@tailwindcss/forms/-/forms-0.5.7.tgz#db5421f062a757b5f828bc9286ba626c6685e821" | ||
|
@@ -2104,6 +2114,11 @@ slash@^5.0.0, slash@^5.1.0: | |
resolved "https://registry.yarnpkg.com/slash/-/slash-5.1.0.tgz#be3adddcdf09ac38eebe8dcdc7b1a57a75b095ce" | ||
integrity sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg== | ||
|
||
sortablejs@^1.15.2: | ||
version "1.15.2" | ||
resolved "https://registry.yarnpkg.com/sortablejs/-/sortablejs-1.15.2.tgz#4e9f7bda4718bd1838add9f1866ec77169149809" | ||
integrity sha512-FJF5jgdfvoKn1MAKSdGs33bIqLi3LmsgVTliuX6iITj834F+JRQZN90Z93yql8h0K2t0RwDPBmxwlbZfDcxNZA== | ||
|
||
source-map-js@^1.2.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af" | ||
|