Skip to content

Add Portals tab to Host Details view#2205

Merged
KCarretto merged 3 commits intomainfrom
feat/add-portals-tab-15693748027964136263
Apr 12, 2026
Merged

Add Portals tab to Host Details view#2205
KCarretto merged 3 commits intomainfrom
feat/add-portals-tab-15693748027964136263

Conversation

@KCarretto
Copy link
Copy Markdown
Collaborator

This PR introduces a new "Portals" tab in the HostDetails view to provide users with an interface to manage and view SOCKS5 portals for a selected host.

Key Changes

  • New Components: Created the PortalTab and PortalsTable components using the VirtualizedTable ecosystem to present a list of portals.
  • Table Data: Each row displays the Portal ID, an easily copyable Proxy Command (./socks5 -portal=<PortalID> -upstream=<server_url>), the Owner, the Status (Active/Closed), and Active Users.
  • Download Banner: A platform-aware banner is displayed at the top of the Portals view, offering a convenient download link to the socks5 client binary for the user's OS.
  • Context Updates: The HostContext has been updated to query the count of total and active portals and expose this data to the HostTabs component to show counts on the tab label.
  • Base UI Improvements: Added headerComponent to VirtualizedTableWrapperProps and VirtualizedTableWrapper to allow injecting custom elements (like the SOCKS5 banner) before the table/empty states.

PR created automatically by Jules for task 15693748027964136263 started by @KCarretto

This commit adds a new "Portals" tab to the Host Details view. It displays all portals associated with the host.

- Adds `PortalTab` and `PortalsTable` components.
- Uses `VirtualizedTableWrapper` and `VirtualizedTable` for displaying portals.
- The table columns include Portal ID, Proxy Command (e.g. `./socks5 -portal=<PortalID> -upstream=<server_url>`), Owner, Status (Active/Closed), and Active Users.
- Adds an OS-aware download link banner at the top of the tab for SOCKS5 binaries.
- Updates `HostContext` and `HostTabs` to include the total number of portals in the tab header.
- Modifies `VirtualizedTableWrapperProps` to allow passing a custom `headerComponent` so that the SOCKS5 download banner can be shown within the wrapper frame.

Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules bot and others added 2 commits April 12, 2026 22:18
This commit adds a new "Portals" tab to the Host Details view. It displays all portals associated with the host.

- Adds `PortalTab` and `PortalsTable` components.
- Uses `VirtualizedTableWrapper` and `VirtualizedTable` for displaying portals.
- The table columns include Portal ID, Proxy Command (e.g. `./socks5 -portal=<PortalID> -upstream=<server_url>`), Owner, Status (Active/Closed), and Active Users.
- Adds an OS-aware download link banner at the top of the tab for SOCKS5 binaries.
- Updates `HostContext` and `HostTabs` to include the total number of portals in the tab header.

Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
@KCarretto KCarretto marked this pull request as ready for review April 12, 2026 22:19
@KCarretto KCarretto merged commit c2ef64b into main Apr 12, 2026
@KCarretto KCarretto deleted the feat/add-portals-tab-15693748027964136263 branch April 12, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant