Repository navigation
feat(tasks): server-side scope filtering, pagination, and draft bug fix - #1135
Merged
Merged
Conversation
- Add `is:issue`/`is:pr` qualifiers to preset queries so the GitHub API returns only the relevant type, eliminating lossy client-side filtering - Introduce dual-limit architecture: PER_REPO_FETCH_LIMIT (36) per repo, CROSS_REPO_DISPLAY_LIMIT (100) for the merged UI view - Fix --draft flag regression: only pass `--draft` when user explicitly searches `is:draft`, not for any `is:pr is:open` query - Add cursor-based pagination via `updated:<DATE` search qualifier - Add GitHub-style pagination bar with ellipsis (Previous 1 2 ... N Next) - Precompute total page count via GitHub search API `total_count` - Centralize constants in shared/work-items.ts, replace hardcoded 36s Co-authored-by: Orca <help@stably.ai>
Add aria-label, aria-current="page", and nav landmark to the pagination bar. Only disable non-target page buttons during loading so the active target remains clickable for screen readers. Co-authored-by: Orca <help@stably.ai>
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
…ix (stablyai#1135) Co-authored-by: Orca <help@stably.ai>
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.
Summary
is:issue/is:prqualifiers so the GitHub API returns only the relevant type, eliminating lossy client-side filtering where filtered views could miss items--draftflag regression whereis:pr is:open(the "PRs" preset) silently filtered to drafts-only, showing only 2 of 39 open PRstotal_countfrom GitHub's search API. Cursor-based page loading viaupdated:<DATEqualifierPER_REPO_FETCH_LIMIT(36, per-repo API budget) fromCROSS_REPO_DISPLAY_LIMIT(100, UI display cap), centralized inshared/work-items.tsChanges
src/shared/work-items.ts— New shared constants filesrc/shared/task-query.ts— Addeddraft: booleanfield toParsedTaskQuerysrc/main/github/client.ts— Fixed--draftcondition, addedcountWorkItemsvia search API, addedbeforecursor supportsrc/main/ipc/github.ts+src/preload/— IPC wiring forcountWorkItemsandbeforeparamsrc/renderer/src/components/TaskPage.tsx— Pagination bar with ellipsis, pages state, total count fetchsrc/renderer/src/store/slices/github.ts—fetchWorkItemsNextPage,countWorkItemsAcrossRepos, dual-limit supportsrc/renderer/src/store/slices/ui.ts+lib/new-workspace.ts— Updated presets with scope qualifiersTest plan
is:draft→ should show only draft PRsMade with Orca 🐋