Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move the button from the right controls area to right after the file tree toggle in the left section, where it logically belongs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- "Hide tree / Show tree" button near the file tree icon toggle (PR pages only) - "Collapse all / Expand all" button in the right controls area (all diff pages) - Tree toggle proxies GitHub's native toggle and stays in sync via MutationObserver Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the "Hide tree / Show tree" button with a "Collapse tree / Expand tree" button placed inside the file tree sidebar. It toggles all folder nodes in the file tree open/closed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Tree button: chevron-down/chevron-right icons matching folder chevrons - Files button: fold-down/unfold icons for collapse/expand semantics Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…lder chevrons Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collapse deepest folders first, expand shallowest first, ensuring nested directory trees fully toggle with a single button click. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The collapse/expand feature relied on DOM selectors specific to GitHub's "New files changed experience" feature preview. This adds fallback selectors for the old experience so both versions work: - File tree: fall back to `file-tree` web component with ActionList buttons - Diff toolbar: inject into `.diffbar` before `.pr-review-tools` - File headers: use `.file-header` with `.js-details-target` toggle buttons Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
feature-pr-collapse-expand, default ON)TreeFolder/DiffFileinterfaces to abstract DOM differences, falling back to old selectors (file-tree,.diffbar,.file-header) when the new feature preview is not enabledTest plan
🤖 Generated with Claude Code