Skip to content

fix(command-center): make new-task tile scrollable in tiled layouts#2995

Open
sufi-ph wants to merge 3 commits into
mainfrom
posthog-code/fix-command-center-tile-scroll
Open

fix(command-center): make new-task tile scrollable in tiled layouts#2995
sufi-ph wants to merge 3 commits into
mainfrom
posthog-code/fix-command-center-tile-scroll

Conversation

@sufi-ph

@sufi-ph sufi-ph commented Jun 29, 2026

Copy link
Copy Markdown

Problem

In the Command Center, the new-task input vertically centers its editor with the repo/branch selectors floated above it and suggestions floated below. Inside a tile (which clips its content with overflow-hidden), that absolutely-positioned content overflowed the tile bounds and couldn't be scrolled into view in the 2x2, 3x2, and 3x3 layouts. Only the editor's own internal scroll worked, so the execute button, suggestions, and branch/repo selectors were unreachable without zooming out or switching to a 1x1/1x2 view.

Closes #2994

Changes

  • Added a compact prop to TaskInput. When set, the repo/branch selectors, editor, and suggestions stack in normal document flow inside a vertically scrollable column instead of being absolutely centered/floated. The editor also uses the smaller default max-height so it doesn't dominate a small tile.
  • Wired compact from the Command Center tile (CommandCenterPanel). The full-page new-task screen is unchanged.

How did you test this?

pnpm --filter @posthog/ui typecheck and biome check pass on the changed files. Not yet verified visually in the running app.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog from a Slack thread

The new-task TaskInput vertically centers its editor with the repo/branch
selectors floated above and suggestions floated below. Inside a Command
Center tile (overflow-hidden), that absolutely-positioned content overflowed
the clipped tile bounds and could not be scrolled into view in the 2x2, 3x2,
and 3x3 layouts — only the editor's own internal scroll worked, so the
execute button, suggestions, and branch/repo selectors were unreachable
without zooming out or switching to a 1x1/1x2 view.

Add a `compact` prop to TaskInput that stacks the selectors, editor, and
suggestions in normal document flow inside a vertically scrollable column,
and wire it from the Command Center tile.

Generated-By: PostHog Code
Task-Id: 10321b86-ed5b-4ade-9732-1fa4afa11f02
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 122ff7a.

@sufi-ph sufi-ph requested a review from charlesvien June 29, 2026 17:40
@greptile-apps

greptile-apps Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(command-center): make new-task tile ..." | Re-trigger Greptile

Comment thread packages/ui/src/features/task-detail/components/TaskInput.tsx Outdated
The decorative DotPatternBackground is absolutely positioned at the bottom of
its container. In compact mode the container is a scroll container, so the
pattern would stay pinned to the visible edge instead of tracking the scrolled
content. It's purely cosmetic, so skip it in compact tiles rather than fight
the scroll container.

Generated-By: PostHog Code
Task-Id: 10321b86-ed5b-4ade-9732-1fa4afa11f02
@sufi-ph sufi-ph marked this pull request as ready for review June 29, 2026 18:19
@greptile-apps

greptile-apps Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "Merge branch 'main' into posthog-code/fi..." | Re-trigger Greptile

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.

Command Center: can't scroll past the prompt input in tiled views (2x2/3x2/3x3)

1 participant