Skip to content

feat: show Store packages with updates first, then installed ones, then the rest - #243

Merged
M4n0x merged 1 commit into
mainfrom
feat/242-store-order
Oct 23, 2026
Merged

M4n0x merged 1 commit into
mainfrom
feat/242-store-order

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Settings → Packages → Store showed its cards in the order of the Store index, so packages with an update sat among installed packages and ones you haven't installed. Fixes #242.

Changes

  • Order. storeEntries(showingThemes:sourceID:) sorts what it returns: packages with an update first, then installed packages, then the rest. Each group is sorted by name the way Finder sorts (localizedStandardCompare), so "agenda" comes before "Zoom".
  • Same checks as the card. An entry counts as an update by the same per-source update(for:) check that shows the card's Update button. A card that says Installed from another source sorts with the installed packages. Cards with the same name keep the order of the sources, so the Store's comes first.
  • Filters unchanged. The kind, source and search filters work as before, and PackagesView doesn't change: the grid already calls storeEntries.
  • The packages guide describes the order, including where a private source's cards go.

Testing

  • Rebased onto main (ac723c9), which added private package sources (feat: add private package sources #249). swift test --filter "PackagesViewTests|ThemeGalleryTests|WidgetAddPopover|AppearanceView|PackageSource|PackageStoreClient": 83 tests pass.
  • The new testStoreListsUpdatesThenInstalledThenOtherPackagesByName lists packages from the Store and a private source "Acme": two updates, installed packages, a package installed from Acme that the Store also lists, and a package both sources offer. It also checks the case-insensitive order and the source filter.
  • Rendered the Store offscreen from the live Store index with a scratch configuration: Date and System monitor installed, older copies of Now playing and Weather installed so they offer an update. The before images come from the same build with the grid in index order. They were rendered before the rebase, with no private source configured; without one, the grid looks the same on main.
  • Not checked live: the Update button's accent color. It renders grey in the offscreen window because that window isn't key, before and after alike.

Screenshots

Now playing and Weather offer an update; Date and System monitor are installed.

Before (index order) After
Store before, dark: index order, Update cards in the third and fourth rows Store after, dark: Update cards, then Installed, then Get, each by name
Store before, light Store after, light

Merging

One commit; squash with the PR title.

Claude Opus 5.5 via Claude Code

…en the rest

The Store grid followed the order of the package indexes, so packages with an
update were mixed in with everything else. `storeEntries(showingThemes:sourceID:)`
now groups them as Update, Installed and Get, each sorted by name the way Finder
sorts. A card that says Installed from another source sorts with the installed
packages, and cards with the same name follow the order of the sources.

Fixes #242
@M4n0x
M4n0x force-pushed the feat/242-store-order branch from 759eaab to 14d4441 Compare October 23, 2026 05:19
@M4n0x
M4n0x merged commit 97e04dc into main Oct 23, 2026
7 checks passed
@M4n0x
M4n0x deleted the feat/242-store-order branch October 23, 2026 07:16
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show Store packages with updates first, then installed ones, then the rest

1 participant