Repository navigation
feat(directconn): show offered addresses, page and search devices #5927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
darthShadow
wants to merge
1
commit into
Silo-Server:main
Choose a base branch
from
darthShadow:feat/direct-endpoints-screen
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,038
−613
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| platform=web | ||
| version=2026.12.05-1ec18ef | ||
| sha256=907ce3bb89e3796f0ea73c1330779ef1ace2a63dc018b24bad57d68a7bfcbe5b | ||
| version=local-7dd4abec5656 | ||
| sha256=- | ||
7 changes: 7 additions & 0 deletions
7
contracts/api/v2/fixtures/admin_direct_connections_peers_invalid_cursor.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "https://siloserver.org/docs/api/v2/problems/invalid_cursor", | ||
| "title": "Invalid cursor", | ||
| "status": 400, | ||
| "detail": "The cursor is malformed, tampered with, or belongs to a different query.", | ||
| "instance": "urn:silo:request:00000000000000000000033b" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
contracts/api/v2/fixtures/admin_direct_connections_peers_page.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| { | ||
| "items": [ | ||
| { | ||
| "host": { | ||
| "id": "api", | ||
| "role": "api", | ||
| "name": "API" | ||
| }, | ||
| "user_id": "7", | ||
| "username": "account-7", | ||
| "device_id": "device-phone", | ||
| "class": "direct", | ||
| "address_family": "ipv4", | ||
| "peer_endpoint": "127.0.0.1:41641", | ||
| "local_port": 8094, | ||
| "connected_at": "2026-01-02T03:04:05.678Z" | ||
| }, | ||
| { | ||
| "host": { | ||
| "id": "api", | ||
| "role": "api", | ||
| "name": "API" | ||
| }, | ||
| "user_id": "7", | ||
| "username": "account-7", | ||
| "device_id": "device-tv", | ||
| "device_name": "tv-7", | ||
| "class": "direct", | ||
| "address_family": "ipv4", | ||
| "peer_endpoint": "127.0.0.1:41641", | ||
| "local_port": 8094, | ||
| "connected_at": "2026-01-02T03:04:05.678Z" | ||
| } | ||
| ], | ||
| "page": { | ||
| "next_cursor": "eyJ2IjoxLCJwIjp7InUiOjcsImQiOiJkZXZpY2UtdHYifX0.CYBEXHtdkBAcLjIeWNmRks5PDBi6O-n5hr_4pVuDvUA", | ||
| "has_more": true | ||
| }, | ||
| "total": 5 | ||
| } |
23 changes: 23 additions & 0 deletions
23
contracts/api/v2/fixtures/admin_direct_connections_peers_search.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "items": [ | ||
| { | ||
| "host": { | ||
| "id": "api", | ||
| "role": "api", | ||
| "name": "API" | ||
| }, | ||
| "user_id": "9", | ||
| "username": "account-9", | ||
| "device_id": "device-zz", | ||
| "class": "direct", | ||
| "address_family": "ipv4", | ||
| "peer_endpoint": "127.0.0.1:41641", | ||
| "local_port": 8094, | ||
| "connected_at": "2026-01-02T03:04:05.678Z" | ||
| } | ||
| ], | ||
| "page": { | ||
| "has_more": false | ||
| }, | ||
| "total": 1 | ||
| } |
38 changes: 38 additions & 0 deletions
38
contracts/api/v2/fixtures/admin_direct_connections_status_endpoint_candidates.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "enabled": true, | ||
| "hosts": [ | ||
| { | ||
| "host": { | ||
| "id": "api", | ||
| "role": "api", | ||
| "name": "API" | ||
| }, | ||
| "checked_at": "2026-01-02T03:04:05.678Z", | ||
| "features": [ | ||
| { | ||
| "feature": "direct", | ||
| "kind": "local", | ||
| "state": "off", | ||
| "reason": "disabled" | ||
| } | ||
| ], | ||
| "knobs": [], | ||
| "endpoint_candidates": { | ||
| "items": [ | ||
| { | ||
| "endpoint": "127.0.0.1:51820", | ||
| "source": "announced" | ||
| }, | ||
| { | ||
| "endpoint": "127.0.0.2:41641", | ||
| "source": "stun" | ||
| }, | ||
| { | ||
| "endpoint": "127.0.0.3:41641", | ||
| "source": "local" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sync a released catalog with the translations.
The default
scripts/sync-translationsrejects thislocal-*pin. All 38 real non-English locale files also lack the 22 new direct-network keys, so those labels fall back to English. Complete the catalog translation pass and sync its release before merging.As per coding guidelines, “Every piece of text a user can see ships with its catalog entry and translations.”
Source: Coding guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected at this stage. The strings are in Silo-Server/silo-translations#226, which merges first after its translation pass. Before this pull request merges, the branch re-syncs with
scripts/sync-translations --version <release>, which pins the release and brings in the other locales. The description says the same under Translations.🤖 Claude Code (claude-opus-5-5)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darthShadow Thanks for clarifying the translation plan. The released pin and translated locale files still need verification before merge. I’ll leave the finding for that check.
Learnings used
You are interacting with an AI system.