This repository has no description
lustre gleam
0

Configure Feed

Select the types of activity you want to include in your feed.

:recycle: use `uri.query_to_string`

author
kacaii.dev
date (Apr 1, 2026, 10:53 AM -0300) commit d00e1734 parent 8b309668 change-id uouyowzl
+14 -4
+11 -4
client/src/client/page/register_crew.gleam
··· 8 8 import gleam/list 9 9 import gleam/option 10 10 import gleam/string 11 + import gleam/uri 11 12 import icon 12 13 import lustre/attribute.{class} as attr 13 14 import lustre/effect.{type Effect} ··· 15 16 import lustre/element/html 16 17 import lustre/event 17 18 import rsvp 19 + import shared/contract/register_crew as contract 18 20 import shared/role 19 21 import shared/session.{type Session} 20 22 import shared/user.{type User} ··· 124 126 } 125 127 126 128 UserClickedSearchLeader -> { 127 - let api = 128 - "/api/autocomplete/email?prefix=" 129 - <> model.crew_leader_email 130 - <> "&limit=2" 129 + let url = contract.email_autocomplete_url 130 + 131 + let query = 132 + uri.query_to_string([ 133 + #("prefix", model.crew_leader_email), 134 + #("limit", "2"), 135 + ]) 136 + 137 + let api = url <> "?" <> query 131 138 132 139 let effect = 133 140 decode.list(user.decoder())
+1
justfile
··· 3 3 mod shared 4 4 5 5 set quiet := true 6 + 6 7 pod_name := "pod_sigo" 7 8 8 9 # database
+2
shared/src/shared/contract/register_crew.gleam
··· 5 5 6 6 pub const url = "/api/crew" 7 7 8 + pub const email_autocomplete_url = "/api/autocomplete/email" 9 + 8 10 // REQUEST --------------------------------------------------------------------- 9 11 10 12 pub type RequestBody {