Skip to content

Expand truncated prompts in channel feeds#3698

Merged
trunk-io[bot] merged 3 commits into
mainfrom
posthog-code/expand-channel-task-prompts
Jul 22, 2026
Merged

Expand truncated prompts in channel feeds#3698
trunk-io[bot] merged 3 commits into
mainfrom
posthog-code/expand-channel-task-prompts

Conversation

@k11kirky

Copy link
Copy Markdown
Contributor

Problem

Long task prompts in channel feeds are truncated with no way to read the full message.

Changes

  • Add a More/Less control when a channel task prompt is visually truncated
  • Keep the behavior consistent while the task is starting and after it is created

Why: Users need to read the complete prompt without leaving the channel context.

How did you test this?

  • pnpm --filter @posthog/ui exec vitest run src/features/canvas/components/ChannelFeedView.test.tsx
  • pnpm --filter @posthog/ui typecheck
  • pnpm exec biome check packages/ui/src/features/canvas/components/ChannelFeedView.tsx packages/ui/src/features/canvas/components/ChannelFeedView.test.tsx

Automatic notifications

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

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: c77b603d-2995-4295-b17b-4e3043ed37a2
@trunk-io

trunk-io Bot commented Jul 22, 2026

Copy link
Copy Markdown

😎 Merged successfully - details.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit cea3fce.

@posthog

posthog Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Visual changes approved by @k11kirky — baseline updated in 4595c1e.

View this run in PostHog

2 changed.

@k11kirky
k11kirky marked this pull request as ready for review July 22, 2026 13:03
2 updated
Run: 97a9a415-0f01-4f2d-a295-870be136abeb

Co-authored-by: k11kirky <4571455+k11kirky@users.noreply.github.com>
@greptile-apps

greptile-apps Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
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
packages/ui/src/features/canvas/components/ChannelFeedView.tsx:451-455
**Expansion State Is Not Announced**

The new control changes whether the prompt is collapsed, but it does not expose that state to assistive technology. Screen-reader users hear “more” or “less” without the button’s expanded state, so the new interaction does not communicate whether the full prompt is currently visible.

```suggestion
        <button
          type="button"
          aria-expanded={expanded}
          className="text-muted-foreground text-xs underline underline-offset-2 hover:text-foreground"
          onClick={() => setExpanded((value) => !value)}
        >
```

Reviews (1): Last reviewed commit: "chore(visual): update storybook baseline..." | Re-trigger Greptile

Comment thread packages/ui/src/features/canvas/components/ChannelFeedView.tsx
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@k11kirky k11kirky added the Stamphog This will request an autostamp by stamphog on small changes label Jul 22, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Contained UI-only feature (expand/collapse for truncated feed prompts) with new tests; the sole reviewer concern (missing aria-expanded) is already implemented in the diff, and no risky territory (auth, data, API, CI, deps) is touched.

  • Author wrote 0% of the modified lines and has 68 merged PRs in these paths (familiarity MODERATE).
  • 👍 on the PR from greptile-apps[bot].
Gate mechanics and policy version
Gate Result
prerequisites all clear
deny-list no deny categories matched
size 64L, 2F substantive, 109L/3F incl. docs/generated/snapshots — within ceiling
tier T1-agent / T1c-medium (109L, 3F, two-areas, unknown)
stamphog 2.0.0b3 .stamphog/policy.yml @ 7b426cd · reviewed head cea3fce

@tatoalo tatoalo left a comment

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.

noice

@k11kirky

Copy link
Copy Markdown
Contributor Author

/trunk merge

@trunk-io
trunk-io Bot merged commit 4f60103 into main Jul 22, 2026
39 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/expand-channel-task-prompts branch July 22, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants