[Bugfix #1169] Collapse Pull Requests / Recently Closed / Team / Status sidebar views by default#1171
Merged
Merged
Conversation
… Status views by default Add "visibility": "collapsed" to the four lower-priority Codev sidebar views so they render as headers on first install, reclaiming vertical space for the primary Workspace / Agents / Backlog surfaces. Existing "when" clauses preserved. Applies to first-install/new-workspace state only; persisted user state is unaffected.
…y views Add manifest-invariant assertions (matching the existing #1144 view-gating tests) that codev.pullRequests / recentlyClosed / team / status contribute "visibility": "collapsed" and the primary views keep no override. Addresses CMAP (codex) feedback: the repo already protects manifest contracts with Vitest, so this bug is testable and should be locked down.
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
Adds
"visibility": "collapsed"to four lower-priority Codev VS Code sidebar views so they render as ~22px headers on first install instead of fully expanded. Reclaims vertical space for the primary workload surfaces (Workspace, Agents, Backlog).Root Cause
In
packages/vscode/package.json, all sevencontributes.views.codev[]entries omitted"visibility", so VS Code applied its default (visible). VS Code exposes no manifest lever for view height ratios, so the only way to bias the first-render distribution toward the primary surfaces is defaulting lower-priority views tocollapsed.Fix
Added
"visibility": "collapsed"to the four lower-priority views, preserving each existingwhenclause:codev.pullRequests(Pull Requests)codev.recentlyClosed(Recently Closed)codev.team(Team)codev.status(Status)Workspace, Agents, and Backlog stay expanded. Uses
collapsed(nothideByDefault) so discoverability is preserved: the header row stays visible, one click to expand. Follows the existing precedent set bycodev.placeholderin thecodevPanelcontainer.Scope discipline: manifest + test only, no source changes. Release-notes entries (CHANGELOG.md
[Unreleased]+ docs/releases/UNRELEASED.md Polish) are handled on the repo's dedicateddocs/vscode-changelogbranch per the established dual-accumulate workflow, not on this code branch.Caveat for existing users
visibility: "collapsed"only applies to first-install / new-workspace state. Users who have already interacted with these views keep their persisted layout, and can manually collapse if they want the new distribution.Test Plan
packages/vscode/src/__tests__/contributes-view-gating.test.ts(the existing vscode: IDE-mode foundation: dual-mode activation, workspace/IDE context keys, empty-window surfaces #1144 manifest-invariant suite): asserts the four lower-priority views contribute"visibility": "collapsed"and the three primary views keep no override. Fails without the fix, passes with it.pnpm vitest run→ 21 passed.npm run build— passes (porch checks: build ✓, tests ✓)package.jsonconfirmedCMAP Review
Fixes #1169