Skip to content

feat(ui): enable pin action in file properties and add navigate_location - #67

Merged
l0gicgate merged 4 commits into
lgse:mainfrom
SjB:smb-pin-support
Aug 31, 2026
Merged

l0gicgate merged 4 commits into
lgse:mainfrom
SjB:smb-pin-support

Conversation

@SjB

@SjB SjB commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Allow SMB filesystem to be pin. If the pin filesystem is not mounted it will auto mount the filesystem.

@l0gicgate

Copy link
Copy Markdown
Contributor

Pushed a follow-up fix in d91fac3 addressing the review findings:

  • Properties now reports the real pinned state instead of always showing No.
  • The Pin action is disabled for already-pinned and standard sidebar locations, avoiding silent no-op clicks.
  • The item context-menu Pin action uses the same availability state.
  • Added coverage confirming sidebar navigation validates remote URIs (so unmounted SMB shares enter the mount flow) while native bookmarks still navigate directly.

Validation completed:

  • cargo test --all-targets (217 passed)
  • cargo clippy --all-targets -- -D warnings
  • git diff --check

@l0gicgate

Copy link
Copy Markdown
Contributor

Follow-up pushed in f98c6fe for the Properties dialog still showing PINNED: No.

The status callback previously depended on upgrading a weak SidebarState; when that state was unavailable it fell back to Unavailable, which rendered No and disabled Pin. The pinned-place collection is now shared directly with the status callback, so the dialog reads the same live collection used to build the PINNED sidebar section. I also added a regression test covering pinned SMB locations, available locations, and standard locations.

Validation: 218 tests passed; clippy with -D warnings passed; git diff --check passed.

@l0gicgate

Copy link
Copy Markdown
Contributor

@SjB thank you for your contribution! It will be in tonight's release.

@l0gicgate
l0gicgate merged commit 6a2bcd2 into lgse:main Aug 31, 2026
1 check passed
spandan11106 pushed a commit to spandan11106/strata that referenced this pull request Sep 1, 2026
…ion (lgse#67)

* feat(ui): enable pin action in file properties and add navigate_location

* fix(ui): reflect pinned location state

* fix(ui): retain pinned status lookup

---------

Co-authored-by: Pierre Berube <[email protected]>
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.

2 participants