Files
paseo/packages
Mohamed Boudraandthecardcheat 96fee23fbd Switch Direct connection between Form and URI modes (#11402)
* feat(app): switch Direct connection between Form and URI modes

The Advanced disclosure kept a second copy of the address. Connect read
the Host and Port fields while a tcp:// URI sat in the open Advanced
field, so a blank Host failed with "Host is required" and an edited URI
connected to the old address.

The step now holds one input whose type is the mode. Connect reads only
that input, so a hidden copy cannot exist. Switching modes converts the
input and never fails; an invalid port carries over as text so Connect
reports it. A tcp:// or relay:// address typed into Host moves to URI
mode, where its password and SSL settings count. A pairing link keeps
the Form segment disabled because it cannot be expressed as fields.

URI mode has no Password field, so a rejected password opens an inline
"Password for {host}" prompt, the same as Paste pairing link. URI mode
keeps the Form body's height and the actions sit in the sheet footer,
so Cancel and Connect stay put when the mode changes.

Closes #5495

Co-authored-by: thecardcheat <pitt.joshua.miller@gmail.com>

* fix(app): treat #offer= pairing links in Direct connection as a URI

paseo daemon pair prints an #offer= link next to the relay:// URI.
Pasted into Host it stayed in Form mode and probed the app's web host
as a daemon. All three pairing link formats now share one check.

* fix(app): show the whole Direct connection form on short phones

The compact sheet opened at the shared 65% stop. With Password always
visible and the mode switch above it, the form needs about 485dp of
sheet, so on phones about 690dp tall or shorter the footer covered the
Password field and its eye button. The sheet now opens at 80%.

---------

Co-authored-by: thecardcheat <pitt.joshua.miller@gmail.com>
2026-11-30 15:06:33 +07:00
..