You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(github-project): group blank selection fields with missing values - #34788
A blank Status name or iteration title should act like an empty project cell. Blank and missing values now share the final empty group and follow populated rows in both sort directions.
What Changed
Check trimmed single-select names and iteration titles in the existing shared nonempty-value predicate, used by desktop and mobile grouping/sorting. Numeric and other field semantics are unchanged.
Extend the existing grouping/sorting suite for both field kinds and ASC/DESC ordering.
Extend the rendered board regression with blank/missing Status cards; align its pre-existing network-error toast assertion with the production error-copy mapping, retaining optimistic movement, rollback and preload-call assertions.
Document empty-cell behavior in the existing GitHub guide.
Why
Previously a present selection payload counted as populated even when its displayed name/title was blank. Fixing the shared predicate keeps all existing consumers consistent without adding a board-only special case.
This is the focused project-empty-fields contribution split from #14838. That original PR remains untouched; this PR does not claim that the other contributions have been replaced.
The following are same-build fixture-state screenshots, not old-build/new-build screenshots. The first shows the existing board fixture before inserting the two empty-value rows; the second shows both rows together in No Status. IPC responses are controlled test fixtures, not a live authenticated GitHub account. The separate production-module differential smoke below supplies the pinned-baseline/fixed-code behavior comparison.
Before fixture insertion:
After fixture insertion:
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
On macOS arm64, with ORCA_BACKGROUND_LAUNCH=1 and hidden Electron windows:
A direct smoke loaded the actual production module from pinned base ee09f979fac61fc5b1db4a528c9e3a20667b796f and the fixed tree. The baseline reproduced [blank, populated, missing] instead of [populated, blank, missing]; the fixed implementation passed empty grouping and ASC/DESC sorting for both single-select and iteration values.
pnpm check:changed --base=ee09f979fac61fc5b1db4a528c9e3a20667b796f --maxWorkers=1: 25 checks passed in 92.3s on the final local tree after the test correction (also 25/25 on the initial local head).
pnpm run test:e2e tests/e2e/github-project-board.spec.ts --workers=1 performed a fresh E2E Electron and CLI build. Its first run exposed the stale raw-network-message assertion, which was corrected to the production normalized copy.
SKIP_BUILD=1 pnpm run test:e2e tests/e2e/github-project-board.spec.ts --workers=1: 1 passed, including the new empty-column assertions, optimistic updates, rollback and IPC calls. Only the test expectation changed after the fresh build; production build inputs were unchanged.
Full standalone pnpm lint, pnpm typecheck, pnpm test, and native pnpm build were not separately run; CI must cover their wider/platform-specific scope. Linux, Windows, real remote/SSH, mobile devices and live GitHub interactions were not exercised. The CLI prepare step attempted the standard /usr/local/bin/orca-dev symlink and reported permission denied; no privileged setup was attempted, and the E2E passed. Local passing checks do not establish CI success.
Risk
Level: Low
Blank selection or iteration labels could be grouped or sorted unexpectedly on desktop or mobile. This changes presentation, not stored project values or network authority. Revert the shared predicate to restore the previous grouping; it does not undo separate card edits.
AI Disclosure
Implementation/review and validation used an AI coding assistant; this finishing pass used OpenAI gpt-6.1-sol. Jev advisory was unavailable due to credential-read failure; no Jev decision is claimed. Human/manual validation remains unchecked. This PR is intentionally a draft.
Review
The change reuses the existing shared predicate and adds no dependency, IO or mutation endpoint. Cross-platform/local/SSH paths and supported agents/integrations are unaffected structurally; runtime coverage is limited to macOS hidden fixtures. Mobile uses the shared grouping/sorting implementation but was not run on a device. Trimming the displayed field strings adds bounded work to existing comparisons. Board column appearance is unchanged; membership is verified through the rendered regression. No authentication, validation, persistence, or error handling is bypassed.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
No release version change. No branch retarget, force push, original-PR closure, signing-key registration or repository-settings change. X (Twitter) handle: not provided.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
The visual checklist remains unchecked because the attachments compare fixture state, not an old/new build on identical data.
Incremental test cleanup
Removed only the incidental exact network-error wording assertion; optimistic movement, actual rollback, empty-column state and IPC payload assertions remain. The unchanged production build passed the real hidden Electron board flow again (1/1). Changed-code quality reported zero new findings. The earlier 25/25 wrapper was on the preceding tree; no new full-suite or CI approval is claimed for this test-only deletion. The appended commit is GitHub-verified and the published tree equals the local validated tree.
Current-main integration evidence
Published 462f82f4f52e51ddc0169a50ce8c04cdc91db902 with normal merge parents 367e73ff150c02e8393d99b362c624c5f25f2748 and frozen main 2195eae58947313781a90ee6aa299a8c31f18d98; force: false. Exact remote tree af346d248d898054d4bb4d122e67723e9d818bc9 and both parents were read back; the PR head matches. Git Database commits are unsigned; no Verified signature is claimed.
Preserved blank selection-field grouping through the canonical shared non-empty-value predicate and board sorting owner. Final changed gate passed 34/34; a freshly built hidden Electron run of github-project-board.spec.ts passed its real preload/optimistic-settlement/rollback interaction test. This is local automated interaction evidence, not real SSH/platform or independently built before/after visual proof.
The final exact staged tree passed all selected changed-file checks.
Final ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=2195eae58947313781a90ee6aa299a8c31f18d98 --maxWorkers=2 --timeout=30:
check:changed: 4 changed file(s) since 2195eae58947313781a90ee6aa299a8c31f18d98 (2195eae589); running 34 check(s).
✓ 34 check(s) passed in 54.1s.
This is the selected changed-file contribution gate, not an independent full-repository/native release build. Earlier local results are historical evidence for their named trees, not current-main integration proof. No source conflict was hidden by an obsolete transport/shim or forced ref update.
Exact-head required PR checks passed and applicable real-host/platform/interaction evidence remain separate gates. Upstream permissions are pull-only; only maintainers can approve gated workflows or merge. No real SSH/WSL/phone verification, human manual-testing attestation, or new rendered before/after screenshots are claimed by this integration. No configured SSH hosts are available; no arbitrary or paid hosts were used. The PR remains open and preserves its draft status, if any, pending the actual gates.
Treat blank single-select names and iteration titles as empty in the shared grouping/sorting predicate. Preserve both-direction ordering and rendered-board coverage.
Focused project-empty-fields split of stablyai#14838; Fixesstablyai#34692. Final tree matches the locally validated tree.
Validation/publication provenance for head 2de07658d767d883b5e97f72092d1457f31b27eb:
The published GitHub-signed commit is verified: true, reason valid. Its tree a2be4c587a377f64397befce9aa938ad7b14fb0c exactly matches the locally validated final tree at e6060b04e0b19dc57d918801368711f7ad6ab32b; this was created atomically on a new fork branch with expectedHeadOid, without force-pushing, rewriting existing history, registering keys or changing settings.
Required scoped wrapper: ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=ee09f979fac61fc5b1db4a528c9e3a20667b796f --maxWorkers=1 — 25/25 passed in 92.3s after the only finishing correction (the E2E network-error copy assertion).
A fresh hidden E2E Electron/CLI build succeeded. ORCA_BACKGROUND_LAUNCH=1 SKIP_BUILD=1 pnpm run test:e2e tests/e2e/github-project-board.spec.ts --workers=1 — 1 passed; it checks the two empty-value cards, preload mutation calls, optimistic moves, rollback and scrolling. The attached screenshots compare two fixture states of that same build, not old/new-build behavior. The separate pinned-baseline production smoke reproduced the bug and passed on the fixed production module for both field kinds and sort directions.
Upstream workflows currently report action_required; they have not passed. A maintainer with the necessary permission must approve the fork workflow runs. CodeRabbit skipped the draft. This PR remains Draft, and human/manual verification plus wider/platform-specific CI remain outstanding.
Original #14838 and the PR ledger were not modified by this publication.
Published 462f82f4f52e51ddc0169a50ce8c04cdc91db902 with normal merge parents 367e73ff150c02e8393d99b362c624c5f25f2748 and frozen main 2195eae58947313781a90ee6aa299a8c31f18d98; force: false. Exact remote tree af346d248d898054d4bb4d122e67723e9d818bc9 and both parents were read back; the PR head matches. Git Database commits are unsigned; no Verified signature is claimed.
Preserved blank selection-field grouping through the canonical shared non-empty-value predicate and board sorting owner. Final changed gate passed 34/34; a freshly built hidden Electron run of github-project-board.spec.ts passed its real preload/optimistic-settlement/rollback interaction test. This is local automated interaction evidence, not real SSH/platform or independently built before/after visual proof.
The final exact staged tree passed all selected changed-file checks.
Final ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=2195eae58947313781a90ee6aa299a8c31f18d98 --maxWorkers=2 --timeout=30:
check:changed: 4 changed file(s) since 2195eae58947313781a90ee6aa299a8c31f18d98 (2195eae589); running 34 check(s).
✓ 34 check(s) passed in 54.1s.
This is the selected changed-file contribution gate, not an independent full-repository/native release build. Earlier local results are historical evidence for their named trees, not current-main integration proof. No source conflict was hidden by an obsolete transport/shim or forced ref update.
Exact-head required PR checks passed and applicable real-host/platform/interaction evidence remain separate gates. Upstream permissions are pull-only; only maintainers can approve gated workflows or merge. No real SSH/WSL/phone verification, human manual-testing attestation, or new rendered before/after screenshots are claimed by this integration. No configured SSH hosts are available; no arbitrary or paid hosts were used. The PR remains open and preserves its draft status, if any, pending the actual gates.
Main deleted the renderer group-sort suite and the board e2e spec; keep only this PR's blank single-select/iteration regression beside the relocated project-group-sort module.
Merged current main (075b631fd9d80df5c289118c3c18acc4f3247524) in 71a3064. Main deleted the renderer group-sort suite (#42978/#42339) and the board e2e spec (#43070). This update accepts those deletions and keeps only this PR's blank single-select/iteration regression in src/shared/github/projects/project-group-sort.test.ts. That test passes with the fix and fails 2/2 against main's project-group-sort.ts, so the fix is not superseded. Validation: tc:node/tc:web and the changed-code quality gate passed.
No actionable comments were generated in the recent review.
Walkthrough
Blank single-select names and iteration titles now count as empty project values. Grouping places them with missing values in the final No field group. Sorting places blank and missing values after populated values in both directions. Tests cover grouping and sorting for both field types, and the Tasks documentation describes this behavior.
Severity of issue fixed: Low
Merge Risk: Minimal · up to 71a30
Blank project values now group and sort with missing values, after populated ones. The change is small and covered by tests. Full CI and platform validation are still outstanding, but no concrete merge risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: blank selection fields are now grouped with missing values, in the shared GitHub project grouping and sorting logic. The title uses the conventional fix(scope) form an…
Description check
The description follows the template sections: ELI5, What Changed, Why, Linked Issue (Fixes #34692), Visual Proof, Testing, Performance, Risk (Level: Low), AI Disclosure, Review, Agent skill upstream …
Linked Issues check
Directly linked issue #34692 requires that a present single-select option with a blank name, or an iteration with a blank title, be treated as empty by shared grouping and sorting. At head, hasNonEmpt…
Out of Scope Changes check
The whole-PR changes against merge base 075b631 are limited to three files. src/shared/github/projects/project-group-sort.ts holds the predicate fix and its type-guard signature change, which directl…
Full details: Title check
Explanation
The title names the main change: blank selection fields are now grouped with missing values, in the shared GitHub project grouping and sorting logic. The title uses the conventional fix(scope) form and is specific. The objectives say the change treats trimmed blank single-select names and iteration titles like missing values, so the title matches the changeset.
Full details: Description check
Explanation
The description follows the template sections: ELI5, What Changed, Why, Linked Issue (Fixes #34692), Visual Proof, Testing, Performance, Risk (Level: Low), AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. It explains the mechanism, the scope, and the risk, and it states which evidence is missing. The Performance section is filled in with a reasoned statement about trimming work. Some template items remain unchecked or outstanding, such as manual testing, the visual before/after attachments, and full CI, and the description is candid about them. The description also carries a long run of status notes that are historical and partly superseded by the later update in the PR objectives, which makes it harder to scan. The description does not match the latest state, which the objectives describe: the renderer suite and board E2E spec were removed. The Testing and Visual Proof sections still describe those removed tests as current evidence. These gaps are non-critical, so the check passes.
Full details: Linked Issues check
Explanation
Directly linked issue #34692 requires that a present single-select option with a blank name, or an iteration with a blank title, be treated as empty by shared grouping and sorting. At head, hasNonEmptyFieldValue in src/shared/github/projects/project-group-sort.ts returns value.name.trim().length > 0 for 'single-select' and value.title.trim().length > 0 for 'iteration' (previously both returned true). groupRowsByField calls getFieldValueForGrouping, which uses this predicate to route blank values to EMPTY_PROJECT_GROUP_KEY, so blank rows share the missing-value group. The group sort returns empty buckets last. compareSort returns before the DESC flip when either row is unfilled, so blank and missing rows follow populated rows in both directions. Number, text, date, user and label semantics are unchanged. The regression test in src/shared/github/projects/project-group-sort.test.ts is reported in the PR summary to cover both field kinds and ASC/DESC; I did not open the test file, so that coverage rests on the PR description and summary. Non-coding items (manual testing, release coordination, native/CI gates) are excluded.
Full details: Out of Scope Changes check
Explanation
The whole-PR changes against merge base 075b631 are limited to three files. src/shared/github/projects/project-group-sort.ts holds the predicate fix and its type-guard signature change, which directly implements #34692. src/shared/github/projects/project-group-sort.test.ts holds the supporting regression test. docs/site/content/docs/review/github.mdx holds a two-line documentation note on empty-cell behavior, which supports the objective. The PR description's renderer and E2E changes were stated as deleted by current main, so they are not part of the reviewed diff. No unrelated code, dependency, IO, or mutation change was found in the summarized changes.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Thank you for this. Closing it because it makes the board worse. A single-select or iteration value is identified by its option or iteration id, so a blank label still means the field is set. Treating it as empty puts those cards in "No Status" while their column stays empty, and dropping a card on that column then makes it jump to "No Status". It would also move cards with a null name on properly named options. GitHub requires option names and iteration titles, so the original case is very rare.
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
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.
ELI5
A blank Status name or iteration title should act like an empty project cell. Blank and missing values now share the final empty group and follow populated rows in both sort directions.
What Changed
Why
Previously a present selection payload counted as populated even when its displayed name/title was blank. Fixing the shared predicate keeps all existing consumers consistent without adding a board-only special case.
This is the focused project-empty-fields contribution split from #14838. That original PR remains untouched; this PR does not claim that the other contributions have been replaced.
Linked Issue
Fixes #34692
Visual Proof
The following are same-build fixture-state screenshots, not old-build/new-build screenshots. The first shows the existing board fixture before inserting the two empty-value rows; the second shows both rows together in No Status. IPC responses are controlled test fixtures, not a live authenticated GitHub account. The separate production-module differential smoke below supplies the pinned-baseline/fixed-code behavior comparison.
Before fixture insertion:

After fixture insertion:

Testing
On macOS arm64, with
ORCA_BACKGROUND_LAUNCH=1and hidden Electron windows:ee09f979fac61fc5b1db4a528c9e3a20667b796fand the fixed tree. The baseline reproduced[blank, populated, missing]instead of[populated, blank, missing]; the fixed implementation passed empty grouping and ASC/DESC sorting for both single-select and iteration values.pnpm check:changed --base=ee09f979fac61fc5b1db4a528c9e3a20667b796f --maxWorkers=1: 25 checks passed in 92.3s on the final local tree after the test correction (also 25/25 on the initial local head).pnpm run test:e2e tests/e2e/github-project-board.spec.ts --workers=1performed a fresh E2E Electron and CLI build. Its first run exposed the stale raw-network-message assertion, which was corrected to the production normalized copy.SKIP_BUILD=1 pnpm run test:e2e tests/e2e/github-project-board.spec.ts --workers=1: 1 passed, including the new empty-column assertions, optimistic updates, rollback and IPC calls. Only the test expectation changed after the fresh build; production build inputs were unchanged.Full standalone
pnpm lint,pnpm typecheck,pnpm test, and nativepnpm buildwere not separately run; CI must cover their wider/platform-specific scope. Linux, Windows, real remote/SSH, mobile devices and live GitHub interactions were not exercised. The CLI prepare step attempted the standard/usr/local/bin/orca-devsymlink and reported permission denied; no privileged setup was attempted, and the E2E passed. Local passing checks do not establish CI success.Risk
Level: Low
Blank selection or iteration labels could be grouped or sorted unexpectedly on desktop or mobile. This changes presentation, not stored project values or network authority. Revert the shared predicate to restore the previous grouping; it does not undo separate card edits.
AI Disclosure
Implementation/review and validation used an AI coding assistant; this finishing pass used OpenAI
gpt-6.1-sol. Jev advisory was unavailable due to credential-read failure; no Jev decision is claimed. Human/manual validation remains unchecked. This PR is intentionally a draft.Review
The change reuses the existing shared predicate and adds no dependency, IO or mutation endpoint. Cross-platform/local/SSH paths and supported agents/integrations are unaffected structurally; runtime coverage is limited to macOS hidden fixtures. Mobile uses the shared grouping/sorting implementation but was not run on a device. Trimming the displayed field strings adds bounded work to existing comparisons. Board column appearance is unchanged; membership is verified through the rendered regression. No authentication, validation, persistence, or error handling is bypassed.
Agent skill upstream boundary
Notes
No release version change. No branch retarget, force push, original-PR closure, signing-key registration or repository-settings change. X (Twitter) handle: not provided.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)The visual checklist remains unchecked because the attachments compare fixture state, not an old/new build on identical data.
Incremental test cleanup
Removed only the incidental exact network-error wording assertion; optimistic movement, actual rollback, empty-column state and IPC payload assertions remain. The unchanged production build passed the real hidden Electron board flow again (1/1). Changed-code quality reported zero new findings. The earlier 25/25 wrapper was on the preceding tree; no new full-suite or CI approval is claimed for this test-only deletion. The appended commit is GitHub-verified and the published tree equals the local validated tree.
Current-main integration evidence
Published
462f82f4f52e51ddc0169a50ce8c04cdc91db902with normal merge parents367e73ff150c02e8393d99b362c624c5f25f2748and frozen main2195eae58947313781a90ee6aa299a8c31f18d98;force: false. Exact remote treeaf346d248d898054d4bb4d122e67723e9d818bc9and both parents were read back; the PR head matches. Git Database commits are unsigned; no Verified signature is claimed.Preserved blank selection-field grouping through the canonical shared non-empty-value predicate and board sorting owner. Final changed gate passed 34/34; a freshly built hidden Electron run of github-project-board.spec.ts passed its real preload/optimistic-settlement/rollback interaction test. This is local automated interaction evidence, not real SSH/platform or independently built before/after visual proof.
The final exact staged tree passed all selected changed-file checks.
Final
ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=2195eae58947313781a90ee6aa299a8c31f18d98 --maxWorkers=2 --timeout=30:This is the selected changed-file contribution gate, not an independent full-repository/native release build. Earlier local results are historical evidence for their named trees, not current-main integration proof. No source conflict was hidden by an obsolete transport/shim or forced ref update.
Exact-head required
PR checks passedand applicable real-host/platform/interaction evidence remain separate gates. Upstream permissions are pull-only; only maintainers can approve gated workflows or merge. No real SSH/WSL/phone verification, human manual-testing attestation, or new rendered before/after screenshots are claimed by this integration. No configured SSH hosts are available; no arbitrary or paid hosts were used. The PR remains open and preserves its draft status, if any, pending the actual gates.