Repository navigation
fix(minimal): spell network modes as host_ip, own_ip and none in min dash - #2310
Merged
norrietaylor merged 2 commits intoOct 18, 2026
Merged
Conversation
The min dash TUI rendered network modes as Rust enum names: the detail pane's net row used the Debug representation (HostNet, OwnIp, NoNet) and the sidebar label used Host, OwnIp, NoNet, while every other CLI surface spells the canonical --network vocabulary (host_ip, own_ip, none) via NetworkMode::word(). Route all three dash sites through mode.word(), keeping the fallback arm for the #[non_exhaustive] future variants. Sidebar width math self-adjusts, so the wider labels need no layout changes. Add a render test asserting the detail pane spells net own_ip and update the affected dash snapshots. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
The wildcard arm rendered a future NetworkMode variant as "Custom" while the CLI would print its word. word() is exhaustive in boxes, so the arm and its stale comment go.
Member
|
/review |
Contributor
|
Approved: no findings at Nothing to do. Clobber: none: |
norrietaylor
approved these changes
Oct 18, 2026
Member
There was a problem hiding this comment.
Approved on ARCH PASS at 46dbc80.
norrietaylor
deleted the
inbox-patch/dash-network-mode-words-00c09eb253df2d5e
branch
October 18, 2026 08:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Routing-Key: inbox-route/I_kwDOSUhdos8AAAABX3vcWg
The min dash TUI rendered network modes as Rust enum names: the
detail pane's net row used the Debug representation (HostNet,
OwnIp, NoNet) and the sidebar label used Host, OwnIp, NoNet, while
every other CLI surface (the --network flag, session policy output)
spells the canonical vocabulary host_ip, own_ip, none via
NetworkMode::word(). Route the three dash sites through mode.word(),
keeping the fallback arm for #[non_exhaustive] future variants. The
sidebar width math self-adjusts to the wider labels, so no layout
changes were needed. Snapshots were regenerated accordingly.
Verification
cargo fmt --all --check— passcargo clippy --workspace --all-targets --locked -- -D warnings— passcargo test --locked -p minimal --no-fail-fast— all dash tests pass(dash_snapshots: 21/21, including the new test); one pre-existing,
unrelated failure (
tests::legacy_network_spellings_parse_with_hint)reproduced identically on unmodified main via git stash and touches
CLI --network deprecation hints, with zero file overlap with this diff.
detail_pane_spells_the_network_mode_wordassertsthe detail pane's net row spells
net own_ipand never showsOwnIp; the existing sidebar truncation test now assertsown_ip.No
cargo runrepro since the TUI needs a live daemon; the rendertest exercises the same code path in-tree.
Summary by CodeRabbit
OwnIpmode is displayed asown_ip, making network values consistent across dashboard views.