Repository navigation
Collapsible PR description - #9234
Merged
Merged
Conversation
Christof Marti (chrmarti)
approved these changes
Nov 27, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Active issues can unexpectedly change the description’s collapse state during cold-load initialization and prevent in-page links from revealing hidden headings.
2 open issues
What changed in this PR
Adds collapsible descriptions to the extension’s pull request and issue overviews, keeping author information and header actions visible.
Changes:
- Adds a collapse/expand chevron with accessibility labels and collapsed-state styling.
- Remembers separate defaults for pull requests and issues while preserving each open overview’s state.
- Updates loading previews, shared types, and tests for collapse behavior and persistence.
| File | Description |
|---|---|
webviews/editorWebview/test/overview.test.tsx |
Tests toggling, restoration, and expansion for editing. |
webviews/editorWebview/test/builder/pullRequest.ts |
Adds the description-collapse test default. |
webviews/editorWebview/test/app.test.tsx |
Tests collapsed previews and header consistency. |
webviews/editorWebview/index.css |
Styles the chevron, collapsed header, and action placement. |
webviews/components/comment.tsx |
Adds collapsible description rendering and controls. |
webviews/common/context.tsx |
Sends preference updates and preserves panel-local state. |
src/test/github/pullRequestOverview.test.ts |
Tests remembered defaults and separate issue preferences. |
src/github/views.ts |
Adds collapse state to overview and preview types. |
src/github/pullRequestOverview.ts |
Selects the pull-request-specific preference key. |
src/github/issueOverview.ts |
Reads and saves preferences and includes them in loading messages. |
src/extensionState.ts |
Defines separate preference keys for pull requests and issues. |
Review effort: Balanced
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 27, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Restored description drafts bypass expansion when entering edit mode, so saving or canceling a collapsed draft hides the text again instead of leaving it expanded.
1 open issue
2 resolved since last review
Review effort: Balanced
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.

No description provided.