From 456c26a01282b629850a3035ed4a1126115d56bb Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 11 Aug 2026 19:49:20 -0400 Subject: [PATCH] feat(tui): show localhost on pair screen --- packages/tui/src/component/dialog-pair.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/tui/src/component/dialog-pair.tsx b/packages/tui/src/component/dialog-pair.tsx index 70032b2e519..df60d6db89f 100644 --- a/packages/tui/src/component/dialog-pair.tsx +++ b/packages/tui/src/component/dialog-pair.tsx @@ -39,6 +39,13 @@ export function DialogPair(props: { credentials?: DialogPairCredentials }) { password: props.credentials?.password ?? "", } }) + const localhost = createMemo(() => { + const value = info()?.urls[0] + if (!value) return "" + const url = new URL(value) + url.hostname = "localhost" + return url.toString().replace(/\/$/, "") + }) const horizontal = createMemo(() => dimensions().width >= 96) const content = () => { const value = info() @@ -46,6 +53,10 @@ export function DialogPair(props: { credentials?: DialogPairCredentials }) { return ( + + This device + {localhost()} + URLs {(url) => {url}}