feat: Add fullscreen expand to plan preview#1793
Merged
charlesvien merged 4 commits intomainfrom Apr 23, 2026
Merged
Conversation
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 22, 2026
6cdea85 to
d0a4b67
Compare
bc525e6 to
20a7ee1
Compare
d4fec55 to
f6b3492
Compare
Prompt To Fix All With AIThis is a comment left during a code review.
Path: apps/code/src/renderer/components/permissions/PlanContent.tsx
Line: 19-37
Comment:
**Scroll tracking breaks after mode toggle**
The scroll `useEffect` depends only on `[id]`, so when `isFullscreen` flips and `scrollRef.current` is re-bound to a different DOM node, the effect never re-runs. The listener stays on the stale (now detached) element: scroll events in the new mode go untracked, and `el.scrollTop = position` (position restoration) never fires for the newly mounted element. This directly breaks the PR's stated goal of preserving scroll position across mode toggles.
Add `isFullscreen` to the dependency array so the effect re-attaches to whichever element is currently active:
```suggestion
useEffect(() => {
const el = scrollRef.current;
if (!el) return;
const position = planScrollPosition.get(id);
if (position !== undefined) {
el.scrollTop = position;
}
const handleScroll = () => {
planScrollPosition.set(id, el.scrollTop);
};
el.addEventListener("scroll", handleScroll, { passive: true });
return () => {
el.removeEventListener("scroll", handleScroll);
};
}, [id, isFullscreen]);
```
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: apps/code/src/renderer/components/permissions/PlanContent.tsx
Line: 72-75
Comment:
**Superfluous opacity transition**
`transition: "opacity 150ms ease"` is set on the fullscreen overlay, but nothing in the code ever changes the element's `opacity`. The transition never fires, making this a no-op style property. Per simplicity rule #4, superfluous parts should be removed.
```suggestion
<Box
className="pointer-events-auto absolute inset-0 flex flex-col bg-gray-1"
>
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "Add fullscreen expand to plan preview" | Re-trigger Greptile |
774bd27 to
2c49b8a
Compare
1c25914 to
1d1d68a
Compare
c41e432 to
e7f9eec
Compare
1d1d68a to
960e351
Compare
e7f9eec to
c1caeb1
Compare
960e351 to
355c40e
Compare
341d9ba to
f8c34d6
Compare
58add1c to
07d21c3
Compare
f8c34d6 to
e951a1c
Compare
665aa02 to
4ce9fb9
Compare
e951a1c to
46afbff
Compare
4ce9fb9 to
9ac73f9
Compare
33ec432 to
2cd556e
Compare
482daea to
5805fdc
Compare
62e41e9 to
117493a
Compare
5805fdc to
2c40ec6
Compare
117493a to
d8f6b3f
Compare
jonathanlab
approved these changes
Apr 22, 2026
2c40ec6 to
3cef1dc
Compare
caa2d1f to
54cf08c
Compare
3cef1dc to
5000b46
Compare
54cf08c to
84c86ac
Compare
5000b46 to
1425b23
Compare
84c86ac to
00930cf
Compare
a00a5d1 to
e3a4882
Compare
7068bcf to
e72353a
Compare
e3a4882 to
b08c6ec
Compare
e72353a to
02e7190
Compare
b08c6ec to
578c274
Compare
578c274 to
dc01db2
Compare
Member
Author
Merge activity
|
dc01db2 to
5a6cff4
Compare
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.

Problem
Plan previews are capped at 50vh, making long plans hard to read in full.
Closes #1743
See below the screen of the inline plan preview (in blue) with the expand button on the top right of the plan and the expanded plan view (the first image).
Changes
How did you test this?
Manually