Skip to content

fix(inbox): make Discuss question input a resizable textarea#2375

Merged
andrewm4894 merged 2 commits into
mainfrom
posthog-code/discuss-resizable-textarea
May 26, 2026
Merged

fix(inbox): make Discuss question input a resizable textarea#2375
andrewm4894 merged 2 commits into
mainfrom
posthog-code/discuss-resizable-textarea

Conversation

@andrewm4894
Copy link
Copy Markdown
Member

@andrewm4894 andrewm4894 commented May 26, 2026

Problem

The optional "Discuss" question input on inbox report details is a single-line TextField cramped inside a 320px popover. Users have started using Discuss to ask longer questions (and even series of questions) and the tiny one-liner is awkward — most of what they type is hidden off-screen.

Changes

image
  • Swap the TextField.Root for a Radix TextArea so it's multi-line by default.
  • Set rows={5} for a noticeably taller default height.
  • resize="vertical" so users can drag from the bottom-right to make it bigger when they want to type more.
  • Widen the popover from 320px to 420px so the textarea isn't squeezed.
  • Add Cmd/Ctrl+Enter to submit (with a small Kbd hint) since Enter now inserts a newline in the textarea.

How did you test this?

  • pnpm --filter code typecheck passes.
  • biome check on the changed file passes.
  • Did not manually run the Electron app in this environment, so the UI/drag behavior has not been visually verified — worth a quick local check before merge.

Publish to changelog?

no


Created with PostHog Code

Replaces the single-line Discuss question input with a multi-line
textarea that defaults to 5 rows and is vertically resizable from the
bottom-right corner. The popover is widened to 420px so the textarea has
room to breathe, and Cmd/Ctrl+Enter now submits since plain Enter inserts
a newline.

Generated-By: PostHog Code
Task-Id: c0576d3a-347b-464c-ae04-6300f46e870d
@andrewm4894 andrewm4894 self-assigned this May 26, 2026
@andrewm4894 andrewm4894 marked this pull request as ready for review May 26, 2026 13:30
@andrewm4894 andrewm4894 requested a review from a team May 26, 2026 13:30
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 26, 2026

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx:577-579
The keyboard hint always shows the Mac `` symbol, but non-Mac users must press Ctrl+Enter. The existing "Create PR" shortcut right below in the same file already uses `isMac` from `@utils/platform` to render the correct label per platform — this hint should do the same.

```suggestion
                    <Text size="1" color="gray">
                      <Kbd>{isMac ? "⌘" : "Ctrl"}</Kbd> <Kbd>↵</Kbd> to send
                    </Text>
```

Reviews (1): Last reviewed commit: "fix(inbox): make Discuss question input ..." | Re-trigger Greptile

Comment on lines +577 to +579
<Text size="1" color="gray">
<Kbd>⌘</Kbd> <Kbd>↵</Kbd> to send
</Text>
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.

P2 The keyboard hint always shows the Mac symbol, but non-Mac users must press Ctrl+Enter. The existing "Create PR" shortcut right below in the same file already uses isMac from @utils/platform to render the correct label per platform — this hint should do the same.

Suggested change
<Text size="1" color="gray">
<Kbd></Kbd> <Kbd></Kbd> to send
</Text>
<Text size="1" color="gray">
<Kbd>{isMac ? "⌘" : "Ctrl"}</Kbd> <Kbd></Kbd> to send
</Text>
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx
Line: 577-579

Comment:
The keyboard hint always shows the Mac `` symbol, but non-Mac users must press Ctrl+Enter. The existing "Create PR" shortcut right below in the same file already uses `isMac` from `@utils/platform` to render the correct label per platform — this hint should do the same.

```suggestion
                    <Text size="1" color="gray">
                      <Kbd>{isMac ? "⌘" : "Ctrl"}</Kbd> <Kbd>↵</Kbd> to send
                    </Text>
```

How can I resolve this? If you propose a fix, please make it concise.

Generated-By: PostHog Code
Task-Id: c0576d3a-347b-464c-ae04-6300f46e870d
@andrewm4894 andrewm4894 merged commit 09f52e2 into main May 26, 2026
15 checks passed
@andrewm4894 andrewm4894 deleted the posthog-code/discuss-resizable-textarea branch May 26, 2026 14:28
Basit-Balogun10 pushed a commit to Basit-Balogun10/posthog-code that referenced this pull request May 27, 2026
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.

2 participants