You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: remove username autocomplete section from usernames doc
The autocomplete feature documentation doesn't belong in the lookup API docs.
This content is better suited for UI component documentation elsewhere.
Copy file name to clipboardExpand all lines: src/pages/controller/usernames.md
-27Lines changed: 0 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,6 @@ title: Username Lookup
9
9
A service for looking up usernames and addresses in the Cartridge ecosystem.
10
10
You can use either the helper methods from the SDK or query the endpoint directly.
11
11
12
-
## Username Autocomplete
13
-
14
-
When creating a new controller, Cartridge now provides an enhanced username input with real-time autocomplete functionality.
15
-
As you type a username, the system will query existing usernames and render a list of matches for easy selection.
16
-
This feature makes it easier for users to discover and connect to existing controllers.
17
-
18
-
:::tip
19
-
The autocomplete feature uses the same GraphQL `searchAccounts` query described in the API section below, providing up to 5 matching results with a 300ms debounce for optimal performance.
20
-
:::
21
-
22
12
## Direct API Access
23
13
24
14
### Account Lookup Endpoint
@@ -32,23 +22,6 @@ curl -X POST \
32
22
https://api.cartridge.gg/accounts/lookup
33
23
```
34
24
35
-
### Account Search GraphQL Query
36
-
37
-
For real-time username search (used by the autocomplete feature), you can use the GraphQL endpoint:
38
-
39
-
```graphql
40
-
queryAccountSearch($query: String!, $limit: Int = 5) {
41
-
searchAccounts(query: $query, limit: $limit) {
42
-
username
43
-
credits {
44
-
amount
45
-
decimals
46
-
}
47
-
updatedAt
48
-
}
49
-
}
50
-
```
51
-
52
25
This query returns matching usernames along with their credit information and last update timestamp, perfect for implementing search and autocomplete functionality.
0 commit comments