Skip to content

[v0.2] Show jump chains in the TUI - #31

Merged
Lingbou merged 1 commit into
mainfrom
feat/jump-chain-display
Sep 30, 2026
Merged

Lingbou merged 1 commit into
mainfrom
feat/jump-chain-display

Conversation

@Lingbou

@Lingbou Lingbou commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Parent: #1

Closes #13

What changed

  • The browse detail block gains a Jump row, using the free third row of the roomy layout:
    • Jump direct for a connection without hops;
    • Jump root@124.222.134.112:2222 → Bastion — endpoint hops render their authority in connection order, profile-backed hops render the referenced connection's name, and a reference that no longer resolves renders missing (<id>) rather than a blank.
  • Narrow (width - 4 < 66) and dense (shell height < 16) layouts collapse the detail block to one row; the jump row is skipped there so the address stays readable, which is what the existing layout regression tests pin down.

Scope note

The ticket also asked for the edit-form display. That row is deliberately not added here: the form is a fixed-height stack whose row offsets and body heights are hard-coded per auth mode, and #27 has to add a selectable jump field there anyway. A read-only row would be replaced by #27's field within a ticket, so the form half of this acceptance moves into #27. Issue #13 has been updated to record that.

Verification

  • cargo test --all-targets --locked (115 lib tests plus every integration suite), cargo clippy --all-targets --all-features --locked -- -D warnings, cargo fmt --check.
  • New UI tests: direct chain, endpoint + profile-backed chain rendering the referenced name, and the missing-reference marker. Existing narrow/dense layout regressions still pass unchanged.

The detail block gains a Jump row: 'direct' for a plain connection,
endpoint hops in connection order, profile-backed hops by the referenced
connection's name, and an explicit marker when a reference no longer
resolves. Narrow and dense layouts keep their single-row address.

Refs #13

Signed-off-by: Xingqiu Xu <hilbertanjou83@gmail.com>
@Lingbou
Lingbou merged commit adec297 into main Sep 30, 2026
11 checks passed
@Lingbou Lingbou mentioned this pull request Sep 30, 2026
4 tasks done
@Lingbou
Lingbou deleted the feat/jump-chain-display branch September 30, 2026 14:24
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.

[v0.2] Show jump chains in the TUI

1 participant