amazon events published as server side event

This commit is contained in:
2026-08-19 23:19:41 -06:00
parent 6edd46d32a
commit 00eed86bb2
9 changed files with 186 additions and 35 deletions
@@ -11,12 +11,24 @@
{{- end }}
{{/* sse handler */}}
<div
hidden
hx-trigger="sse:accounts_{{$acctID}}_simulations"
hx-get="/ui/accounts/{{$acctID}}/reports/mock"
hx-vals="js:{
platform: (new URLSearchParams(window.location.search)).get('platform'),
'shop-id': (new URLSearchParams(window.location.search)).get('shop-id'),
}"
hx-target="body"
>
</div>
<label for="shop-selector">
Select a Shop
</label>
<select
id="shop-selector"
hx-swap=""
hx-get="/ui/accounts/{{$acctID}}/reports/mock"
hx-vals="js:{
platform: console.log(event.target.value.replace(/-.*/, '')) || event.target.value.replace(/-.*/, ''),