Skip to content

Collapsible PR description - #9234

Merged
Alex Ross (alexr00) merged 2 commits into
mainfrom
alexr00/wooden-aphid
Nov 27, 2026
Merged

Alex Ross (alexr00) merged 2 commits into
mainfrom
alexr00/wooden-aphid

Conversation

@alexr00

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings November 27, 2026 10:47
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) November 27, 2026 10:48
@alexr00 Alex Ross (alexr00) self-assigned this Nov 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread webviews/common/context.tsx Resolved
Comment thread webviews/components/comment.tsx Resolved
Copilot AI balanced review requested due to automatic review settings November 27, 2026 11:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread webviews/components/comment.tsx Resolved
@alexr00
Alex Ross (alexr00) merged commit c35703f into main Nov 27, 2026
6 of 8 checks passed
@alexr00
Alex Ross (alexr00) deleted the alexr00/wooden-aphid branch November 27, 2026 11:37
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.

4 participants