alpha
Login
or
Join now
kacaii.dev
/
sigo
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
lustre
gleam
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
:recycle: use `uri.query_to_string`
author
kacaii.dev
date
3 months ago
(Apr 1, 2026, 10:53 AM -0300)
commit
d00e1734
d00e17340d789d916450b6bcb8f3d66684614374
parent
8b309668
8b309668fba3a894eabd4f4e79571c97e652cb89
change-id
uouyowzl
uouyowzlurpysyvurqymqkkzntwuolpz
+14
-4
3 changed files
Expand all
Collapse all
Unified
Split
client
src
client
page
register_crew.gleam
justfile
shared
src
shared
contract
register_crew.gleam
+11
-4
client/src/client/page/register_crew.gleam
View file
Reviewed
···
8
8
import gleam/list
9
9
import gleam/option
10
10
import gleam/string
11
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
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
127
-
let api =
128
128
-
"/api/autocomplete/email?prefix="
129
129
-
<> model.crew_leader_email
130
130
-
<> "&limit=2"
129
129
+
let url = contract.email_autocomplete_url
130
130
+
131
131
+
let query =
132
132
+
uri.query_to_string([
133
133
+
#("prefix", model.crew_leader_email),
134
134
+
#("limit", "2"),
135
135
+
])
136
136
+
137
137
+
let api = url <> "?" <> query
131
138
132
139
let effect =
133
140
decode.list(user.decoder())
+1
justfile
View file
Reviewed
···
3
3
mod shared
4
4
5
5
set quiet := true
6
6
+
6
7
pod_name := "pod_sigo"
7
8
8
9
# database
+2
shared/src/shared/contract/register_crew.gleam
View file
Reviewed
···
5
5
6
6
pub const url = "/api/crew"
7
7
8
8
+
pub const email_autocomplete_url = "/api/autocomplete/email"
9
9
+
8
10
// REQUEST ---------------------------------------------------------------------
9
11
10
12
pub type RequestBody {