Skip to content

Add tooltip to port forwarding rules showing relay host details#175

Merged
binaricat merged 2 commits intomainfrom
copilot/update-port-forwarding-display
Feb 2, 2026
Merged

Add tooltip to port forwarding rules showing relay host details#175
binaricat merged 2 commits intomainfrom
copilot/update-port-forwarding-display

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

Port forwarding rules display minimal info (127.0.0.1:xx -> 127.0.0.1:xx) without indicating which relay host is used, making tunnels hard to distinguish.

Changes

  • RuleCard.tsx: Added host prop and wrapped summary in Tooltip showing:
    • Relay host label and full address (user@hostname:port)
    • Forwarding type description (local/remote/dynamic)
  • PortForwardingNew.tsx: Pass host lookup to RuleCard
  • i18n: Added tooltip translations for en and zh-CN

Example tooltip content

Relay Host
Host: my-server
Address: admin@192.168.1.100:22
─────────────────────────
Local port forwarding: Access remote services through SSH tunnel

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.electronjs.org
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/Netcatty/Netcatty/node_modules/@electron/rebuild/lib/module-type/node-gyp/worker.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature]:希望端口转发也支持分组或展示更多信息</issue_title>
<issue_description>端口转发目前展示的数据 还是太少,没显示中转主机的 IP
比如只转一层的话 可能显示的就是 127.0.0.1:xx ->127.0.0.1:xx 看不到具体哪个主机
再一个 能不能增加分组 方便管理 </issue_description>

<agent_instructions>根据目前的设计 应该装不下这么多信息,考虑用tooltip实现这个用户说的信息展示的方式</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: binaricat <16399091+binaricat@users.noreply.github.com>
Copilot AI changed the title [WIP] Update port forwarding display to include groupings and more info Add tooltip to port forwarding rules showing relay host details Feb 2, 2026
Copilot AI requested a review from binaricat February 2, 2026 11:47
@binaricat
Copy link
Owner

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Can't wait for the next one!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@binaricat binaricat marked this pull request as ready for review February 2, 2026 12:10
@binaricat binaricat merged commit 3ef53fa into main Feb 2, 2026
@binaricat binaricat deleted the copilot/update-port-forwarding-display branch February 4, 2026 04:10
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.

[Feature]:希望端口转发也支持分组或展示更多信息

2 participants