8000 fix(minimal): spell network modes as host_ip, own_ip and none in min dash by gominimal-aw-bot[bot] · Pull Request #2310 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(minimal): spell network modes as host_ip, own_ip and none in min dash - #2310

Merged
norrietaylor merged 2 commits into
mainfrom
inbox-patch/dash-network-mode-words-00c09eb253df2d5e
Oct 18, 2026
Merged

norrietaylor merged 2 commits into
mainfrom
inbox-patch/dash-network-mode-words-00c09eb253df2d5e

Conversation

@gominimal-aw-bot
@gominimal-aw-bot gominimal-aw-bot Bot commented Oct 18, 2026 •
Copy link
Copy Markdown
Contributor

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 — pass
  • cargo clippy --workspace --all-targets --locked -- -D warnings — pass
  • cargo 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.
  • New render test detail_pane_spells_the_network_mode_word asserts
    the detail pane's net row spells net own_ip and never shows
    OwnIp; the existing sidebar truncation test now asserts own_ip.
    No cargo run repro since the TUI needs a live daemon; the render
    test exercises the same code path in-tree.

Summary by CodeRabbit

  • Bug Fixes
    • Dashboard network mode labels now use consistent lowercase wording in the network row and sidebar. For example, the OwnIp mode is displayed as own_ip, making network values consistent across dashboard views.

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>
@gominimal-aw-bot
gominimal-aw-bot Bot requested a review from a team as a code owner October 18, 2026 03:08
@gominimal-aw-bot gominimal-aw-bot Bot added the agent:fix Agentic fix PR eligible for review iteration; min-aw's worker-iterate gates on it. label Oct 18, 2026
@coderabbitai
coderabbitai Bot commented Oct 18, 2026 •
Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 20b6fab8-3234-49f8-bdfc-4bbe7818de7e
📥 Commits

Reviewing files that changed from the base of the PR and between d9b8605 and 46dbc80.

📒 Files selected for processing: 1
  • crates/minimal/src/dash/app.rs

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 2 reviews 8000 per hour.

📝 Walkthrough

The dashboard now displays network modes using their word() values. Tests verify that the detail pane and sidebar display own_ip instead of the enum spelling.

Changes: Dashboard network labels

Layer / File(s) Summary
Network mode labels and rendering
crates/minimal/src/dash/app.rs, crates/minimal/src/dash/render.rs, crates/minimal/tests/dash_snapshots.rs
The dashboard uses word() values for network mode labels. Tests verify that the detail pane and sidebar display own_ip.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: 0chroma

Merge Risk: ⚪ Minimal · up to 46dbc

The dashboard now displays canonical network names such as own_ip instead of Rust enum spellings. The inspected current-mode behavior presents no material merge risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly summarizes the main change and follows the required Conventional Commit format.
Description check Passed The description explains the change, rationale, affected behavior, and verification results. It omits the template's explicit Checklist section, but the required technical information is mostly comple…
Docstring Coverage Passed Docstring coverage is 83.33% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the change, rationale, affected behavior, and verification results. It omits the template's explicit Checklist section, but the required technical information is mostly complete.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the dashboard glow
Network words now plainly show
own_ip appears in the pane
The sidebar spells it out again
Hops a test through each display
Then bounds along its way

Comment @coderabbitai help to get the list of available commands.

@norrietaylor norrietaylor changed the title fix: spell network modes as host_ip, own_ip and none in min dash fix(minimal): spell network modes as host_ip, own_ip and none in min dash Oct 18, 2026
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.
@gominimal-aw-bot gominimal-aw-bot Bot added the agent:resolve Consent gate: pr-conflict-resolver may rewrite this branch label Oct 18, 2026
@norrietaylor
Copy link
Copy Markdown
Member

/review

@minimal-foundry
minimal-foundry Bot commented Oct 18, 2026 •
Copy link
Copy Markdown
Contributor

Approved: no findings at 46dbc80692af.

Nothing to do.

Clobber: none: git log on the changed files shows this fix on top of the earlier spell-commit, no revert.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — advisory review

Verdict COMMENT — No findings.

Panel: 2 of 3 personas ran (correctness, security); did not complete: supply-chain.

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Oct 18, 2026
@norrietaylor norrietaylor left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on ARCH PASS at 46dbc80.

@norrietaylor
norrietaylor added this pull request to the merge queue Oct 18, 2026
Merged via the queue into main with commit b18a418 Oct 18, 2026
41 of 43 checks passed
@norrietaylor
norrietaylor deleted the inbox-patch/dash-network-mode-words-00c09eb253df2d5e branch October 18, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:fix Agentic fix PR eligible for review iteration; min-aw's worker-iterate gates on it. agent:resolve Consent gate: pr-conflict-resolver may rewrite this branch review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0