Skip to content

zbugs-swift: port issueListCount and show the list's count - #72

Open
tmm wants to merge 1 commit into
swift-aggregates-typedfrom
swift-aggregates-zbugs
Open

tmm wants to merge 1 commit into
swift-aggregates-typedfrom
swift-aggregates-zbugs

Conversation

@tmm

@tmm tmm commented Nov 2, 2026

Copy link
Copy Markdown
Member

Part 5 of 5 of the Swift aggregates port (plan). Stacked on #71.

  • issueListCount ported. As in TS, filterListQuery (project, filters, creator, assignee and permissions) is now shared by buildListQuery and the count, which reduces it with .count().
  • Drift exemption removed. DriftTests now expects no failures.
  • New drift samples. The samples never ran issueListCount, so the drift test only checked that the name existed. Three samples now cover it (alice, crew with every filter, logged out), and the vectors were regenerated with the CLI's recorder. When I added an extra where to the Swift definition, the test failed with an AST difference.
  • The list shows the count. A toolbar item shows the server's count once its result is complete or cached, and the virtualizer's total (or its rounded estimate with +) before that, as list-page.tsx does. A text search isn't counted, matching the web app.

Checks run locally: zbugs builds and its 5 tests pass (drift included), and swift-format lint is clean. ZBugsUI only builds on Apple platforms, so the macOS app build and the screenshots job are the signal for the toolbar item.

There's no changeset because this only changes an app.

issueListCount reduces the list's filters (filterListQuery, now shared
with buildListQuery as in TS) to a count(). The drift test has samples
of it and no longer exempts it. The list's toolbar shows the count once
the server has it, and the list's running total before, as the list
page does.

Co-authored-by: tmm <tmm@tmm.dev>
Amp-Thread-ID: https://ampcode.com/threads/T-01a19a37-5aa9-7256-bff5-cdc47c01a1fe

This branch has not been deployed

No deployments
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