Skip to content

fix(code): give plan approval more room and a discoverable expand button#2263

Draft
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/plan-content-roomier-fullscreen-affordance
Draft

fix(code): give plan approval more room and a discoverable expand button#2263
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/plan-content-roomier-fullscreen-affordance

Conversation

@posthog
Copy link
Copy Markdown
Contributor

@posthog posthog Bot commented May 20, 2026

Problem

Users in plan mode were complaining that implementation plans show up in a cramped scroll box that feels read-only. The plan markdown is rendered inside a fixed max-h-[50vh] max-w-[750px] box in PlanContent.tsx, and the fullscreen escape hatch is a 12px ghost ArrowsOut IconButton floated in the top-right corner — easy to miss. Once a long plan is rendered, most of it is hidden behind a small scrollbar and there's no obvious way to expand.

Refs #1492

Changes

In apps/code/src/renderer/components/permissions/PlanContent.tsx:

  • Added a labeled header row inside the plan card with the existing ListChecks icon, a "Plan" title, and a clearly-labeled Expand button (icon + text, Radix Button ghost) instead of the 12px floating IconButton.
  • Lifted the inline body max-height from max-h-[50vh] to max-h-[75vh] so plans get noticeably more vertical room before scrolling kicks in.
  • Replaced the bare ArrowsIn placeholder that gets rendered inline while the fullscreen overlay is open with an explicit Plan opened in fullscreen / Exit fullscreen affordance — so users always know where the plan went and how to come back.

No changes to PlanApprovalView.tsx — the wrapper still passes the same props through.

How did you test this?

  • pnpm --filter code typecheck
  • pnpm exec biome check apps/code/src/renderer/components/permissions/PlanContent.tsx
  • pnpm build (turbo) ✅
  • Did not run the Electron app in a browser — no display available in this environment, so the visual rendering of the new header / wider plan card was not exercised live. Recommend a manual check on a real plan-approval flow before merge.

Publish to changelog?

no


Created with PostHog Code

Plans previously rendered inside a 50vh × 750px scroll box with a 12px
floating fullscreen icon. Add a labeled header row with a "Plan" title
and an "Expand" button, bump the inline max-height to 75vh, and replace
the bare ArrowsIn placeholder shown when fullscreen is active with an
explicit "Plan opened in fullscreen / Exit fullscreen" affordance so
the return path is always obvious.

Generated-By: PostHog Code
Task-Id: 21dcadb5-cfe8-45a1-a613-bd79be9afae8
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.

0 participants