First pass at basic functionality.

This PR introduces the beginnings of Sprint Padawan.

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-05-02 02:01:53 -06:00
parent 3586be0e14
commit 16bed1b8c0
51 changed files with 4597 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
{{$userVote := .UserVote}} {{$roomID := .RoomID}} {{$storyID := .Story.ID}}
<div class="vote-form" id="vote-form-{{$storyID}}">
{{range scaleToOptions .Scale}}
<button
type="button"
hx-post="/rooms/{{$roomID}}/vote"
hx-target="#vote-form-{{$storyID}}"
hx-swap="outerHTML"
hx-vals='{"story_id":"{{$storyID}}","value":"{{.}}"}'
class="vote-option {{if eq . $userVote}}vote-selected{{end}}"
>
{{.}}
</button>
{{end}}
</div>