Repository navigation
feat: open a package in Settings from a stablebar:// link - #284
Merged
Merged
Conversation
stablebar://package/<id> opens Settings > Packages on that package: the installed copy, or its page in the source the link names with ?source=<id>, or else the Store or the first private source that lists it. A Store widget that Essentials replaced opens StableBar Essentials. A link installs nothing; the page still needs the usual review and Add to bar. When no source lists the package, or the named source is unavailable or not added, the Store says so above its cards. A package that a source lists gets a Copy link button next to Show in Finder.
M4n0x
force-pushed
the
feat/254-package-links
branch
from
October 23, 2026 11:39
cc39f93 to
96e37ed
Compare
|
🎉 This PR is included in version 0.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Problem
There was no way to point someone to one package. To share a widget or theme from the Store or a private source, you had to tell them its name so they could search for it in Settings → Packages. StableBar already registered
stablebar://(#249), but only forstablebar://add-source.Fixes #254
Changes
stablebar://package/<id>opens Settings → Packages on that package. An optional?source=<id>names the source to use.add-sourceonly fills in its form.PackageLinkparses and builds the links, accepting only one valid package ID and a valid source ID.BarStore.receive(_:)keeps the laststablebar://link from an open event, so join links and package links share the app's handler.PackageLibrary.open(_:)does the selection.docs/packages.md, and the scheme note in CONTRIBUTING.No configuration property changes, so the schema, layers and configuration editing are unaffected.
Testing
swift testpasses in full on the rebased branch: 294 XCTest tests and 447 Swift Testing tests.PackageLinkTests: parsing, refusals (nested paths,.., encoded slashes, bad orlocalsource IDs), building links, andreceivekeeping the last link.testPackageLinksOpenTheInstalledCopyOrTheListingWithoutInstallingcovers:testPackagesCopyALinkOnlyWhenTheirSourceListsThem: which drafts get a link and which source it names.testPackagesViewOpensAPendingPackageLink: a hostedPackagesViewtakes a pending link on appear and one that arrives while it's open.main, where the same pages were opened directly because links didn't exist yet.application(_:open:)toreceiveis the oneadd-sourcealready uses.A link to a package that no source lists (new; light and dark):
Merging
This is one
featcommit, so a merge commit and a squash give the same changelog entry.Claude Opus 5.5 via Claude Code