Repository navigation
fix(network): show the saved label in a mounted share's breadcrumb - #246
Conversation
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.
|
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
📒 Files selected for processing (15)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughBreadcrumbs 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. ChangesNetwork breadcrumb aliases
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
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No identified issue blocks merging after normal checks. The graphical network test remains to be run. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to 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 Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❓ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation 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)
Warning Some tools did not complete. Review the errors below. 🔧 Biome (2.5.13)tests/js/crumbs.jsFile 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.jsFile 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. Comment |
|
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 |
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.
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
Bug Fixes