From e7f39d69b368a238b1e2dd21e36a53be0570eea5 Mon Sep 17 00:00:00 2001 From: Angel Beltran Date: Thu, 5 Feb 2026 12:00:12 -0700 Subject: [PATCH] mock shop page: store listing search in query --- .../shops/mocks/{shopID}/index.html.tmpl | 52 ++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/templates/pages/accounts/{acctID.int64}/platforms/{platform}/shops/mocks/{shopID}/index.html.tmpl b/templates/pages/accounts/{acctID.int64}/platforms/{platform}/shops/mocks/{shopID}/index.html.tmpl index a49e3e1..4846e00 100644 --- a/templates/pages/accounts/{acctID.int64}/platforms/{platform}/shops/mocks/{shopID}/index.html.tmpl +++ b/templates/pages/accounts/{acctID.int64}/platforms/{platform}/shops/mocks/{shopID}/index.html.tmpl @@ -2,6 +2,7 @@ {{ $platform := parsePlatform .PathParams.platform }} {{ $shopID := .PathParams.shopID }} {{- $shop := .Accounts.GetMockShop $acctID $platform $shopID }} +{{- $initialSearchTerm := .Request.URL.Query.Get "search" }}

{{ $shop.Name }} @@ -21,9 +22,9 @@

Listings

-

- Add listings to your mock store to begin mocking store synchronization -

+

+ Add listings to begin synchronization on your mocking store +

in me to name set the value of the first in me to sku set the value of the first in me to description - set the innerHTML of the

in me to ('Editing ' + name) + set the innerHTML of the

in me to ('Editing: ' + name) " >

@@ -224,6 +225,9 @@ h-fit rounded-lg " + {{/* the next two lines to prevent form submission */}} + onsubmit="return false;" + hx-boost="false" >