Skip to content

Commit 45dd784

Browse files
docs: remove username autocomplete section (#200)
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.
1 parent 1754da2 commit 45dd784

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

src/pages/controller/usernames.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ title: Username Lookup
99
A service for looking up usernames and addresses in the Cartridge ecosystem.
1010
You can use either the helper methods from the SDK or query the endpoint directly.
1111

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-
2212
## Direct API Access
2313

2414
### Account Lookup Endpoint
@@ -32,23 +22,6 @@ curl -X POST \
3222
https://api.cartridge.gg/accounts/lookup
3323
```
3424

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-
query AccountSearch($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-
5225
This query returns matching usernames along with their credit information and last update timestamp, perfect for implementing search and autocomplete functionality.
5326

5427
Request Format

0 commit comments

Comments
 (0)