Skip to content

fix(network): show the saved label in a mounted share's breadcrumb - #246

Merged
thisisgm merged 1 commit into
thisisgm:mainfrom
aholbreich:fix/webdav-breadcrumb-label
Oct 13, 2026
Merged

thisisgm merged 1 commit into
thisisgm:mainfrom
aholbreich:fix/webdav-breadcrumb-label

Conversation

@aholbreich

@aholbreich aholbreich commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #237.

A mounted WebDAV or SMB share showed its GVfs directory (dav:host=...,ssl=true,prefix=...) as the first breadcrumb instead of the saved name. Now the chrome and both dual-pane strips show the saved label for that root. Crumbs still navigate by the real path.

  • Labels come only from favourites and GTK bookmarks, never from gio's mount name, so the rail poll can't overwrite them.
  • Label and pane origin are captured before the bridge wait, so overlapping opens keep their own names.

Tests: tests/js/crumbs.js; tests/network-alias.qml via tests/network-open-share.sh (putting either original bug back fails it); tests/ui.sh network checks the window, not run yet.

Summary by CodeRabbit

  • New Features

    • Breadcrumbs now show saved bookmark or favourite names for mounted network locations, while keeping navigation targets tied to the actual paths.
    • Saved names update when bookmarks or favourites are renamed, and remain associated with the correct location when multiple network paths are opened.
  • Bug Fixes

    • Live network mount listings no longer replace saved names in breadcrumbs.

A WebDAV or SMB share opened from the rail drew its GVfs mount directory,
dav:host=...,ssl=true,prefix=..., as the first crumb. The network service
now records each resolved root under the place's saved name, and both path
strips draw that name while every crumb still navigates by the real path.

Names come only from favourites and GTK bookmarks, so the five-second poll
cannot swap in gio's own label. The label and origin are captured before the
bridge wait, so a second open cannot hand its name to the first.

Fixes thisisgm#237.
@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2f34f307-c956-40bb-aa25-362b7177f89f
📥 Commits

Reviewing files that changed from the base of the PR and between 58fc89f and 64ffda6.

📒 Files selected for processing (15)
  • AGENTS.md
  • tests/js/crumbs.js
  • tests/network-alias.qml
  • tests/network-open-share.qml
  • tests/network-open-share.sh
  • tests/ui.sh
  • tools/flea-file-budget
  • ui/ChromeBar.qml
  • ui/Ipc.qml
  • ui/NetworkMounts.qml
  • ui/Pane.qml
  • ui/PanePath.qml
  • ui/PickerPlaces.qml
  • ui/WindowBody.qml
  • ui/js/Crumbs.js

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

Breadcrumbs now display saved bookmark or favourite labels for resolved GVFS roots. The change retains real filesystem paths as navigation targets and captures request label, URI, and origin values before asynchronous bridge calls.

Changes

Network breadcrumb aliases

Layer / File(s) Summary
Alias matching and breadcrumb rendering
ui/js/Crumbs.js, tests/js/crumbs.js, ui/Pane.qml, ui/PanePath.qml, ui/ChromeBar.qml, ui/WindowBody.qml, ui/Ipc.qml
Crumbs accepts a root alias and uses its label for matching breadcrumb roots. Pane and chrome paths pass aliases into crumb generation. Tests cover path boundaries, nested roots, real navigation targets, and stale alias replacement.
Network alias tracking and request handling
ui/NetworkMounts.qml, ui/PickerPlaces.qml, ui/WindowBody.qml, tests/network-alias.qml, tests/network-open-share.qml, tests/network-open-share.sh, tests/ui.sh, AGENTS.md, tools/flea-file-budget
NetworkMounts derives labels from saved bookmarks and favourites, remembers resolved path aliases, and captures request values before bridge calls. Integration tests cover overlapping opens, live mount labels, saved-name changes, and single- and dual-pane breadcrumbs. Documentation and recorded file budgets are updated.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Low

Sequence Diagram(s)

sequenceDiagram
  participant NetworkMounts
  participant Crumbs
  participant OpenBridge
  participant Pane
  NetworkMounts->>Crumbs: remember resolved path alias
  NetworkMounts->>OpenBridge: ensure with captured path, label, URI, and origin
  Pane->>NetworkMounts: request alias for current path
  NetworkMounts-->>Pane: return matching alias
  Pane->>Crumbs: build breadcrumbs from path and alias
Loading

Suggested reviewers: thisisgm

Merge Risk: ⚪ Minimal · up to 64ffd

No identified issue blocks merging after normal checks. The graphical network test remains to be run.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 64ffd

Saved names remain separate from navigation paths and connection credentials. No introduced security defect was established, but label correctness after interrupted opens or changes in mount ownership remains incompletely verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The demonstrated new state affects network-root identification in the current application's breadcrumb displays. The inspected flow does not give aliases additional credential, mount-command or navigation authority.

Trust Boundaries and Controls

  • observed — The network test changes use fixture-owned configuration, fake gio commands and synthetic mount state. The window test restores environment settings and removes the live-mount marker, rather than introducing an externally reachable mount interface.
🚥 Pre-merge checks | ✅ 4 | ❓ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ❓ Inconclusive Docstring coverage is 44.44% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 3 files. (12 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: displaying the saved label for a mounted network share in its breadcrumb.
Linked Issues check ✅ Passed Issue #237 requires a saved connection label at the mounted root while navigation keeps real paths. Crumbs.crumbs renders a boundary-matched alias label and keeps the alias root and suffix paths as …
Out of Scope Changes check ✅ Passed The changes stay within Issue #237. UI property plumbing exposes the alias in the chrome and pane strips. Alias helpers and network-service tracking implement saved-label display without changing file…
Full details: Docstring Coverage

Explanation

Docstring coverage is 44.44% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 3 files. (12 skipped: 11 unsupported, 1 too large.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.

Warning

Some tools did not complete. Review the errors below.

🔧 Biome (2.5.13)
tests/js/crumbs.js

File contains syntax errors that prevent linting: Line 1: Expected a statement but instead found '.'.; Line 1: Expected a semicolon or an implicit semicolon after a statement, but found none; Line 1: Expected a semicolon or an implicit semicolon after a statement, but found none

ui/js/Crumbs.js

File contains syntax errors that prevent linting: Line 1: Expected a statement but instead found '.pragma library'.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@thisisgm
thisisgm merged commit 6ed246f into thisisgm:main Oct 13, 2026
1 check passed
@thisisgm

Copy link
Copy Markdown
Owner

merged as authored; the saved share label shows in a mounted share breadcrumb (64ffda6, v0.3.10). Thanks @aholbreich! https://github.com/thisisgm/flea/releases/tag/v0.3.10

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.

WebDAV breadcrumbs show internal GVfs mount name instead of saved connection label

2 participants