Skip to content

feat(sidebar): Fade and ticker-scroll long titles - #3818

Merged
charlesvien merged 12 commits into
mainfrom
feat/sidebar-title-ticker
Jul 26, 2026
Merged

feat(sidebar): Fade and ticker-scroll long titles#3818
charlesvien merged 12 commits into
mainfrom
feat/sidebar-title-ticker

Conversation

@charlesvien

Copy link
Copy Markdown
Member

Problem

Long task titles in the sidebar truncate with an ellipsis, so the end of the title is unreadable.

Changes

Overflowing sidebar titles now fade out at the right edge instead of showing "...". Hovering the row scrolls the title left at a constant speed like a stock ticker until the end is visible, with the fade flipping to the left edge, and it snaps back to the start on mouse leave. Titles that fit are unchanged. The truncation tooltip is removed since the ticker now reveals the full title.

How did you test this?

Biome, pnpm --filter @posthog/ui typecheck and the sidebar Vitest suite (109 tests pass).

Automatic notifications

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

@trunk-io

trunk-io Bot commented Jul 26, 2026

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions

github-actions Bot commented Jul 26, 2026

Copy link
Copy Markdown

React Doctor found 4 issues in 1 file · 4 warnings.

4 warnings

src/primitives/OverflowTickerText.tsx

Reviewed by React Doctor for commit 15fea89.

@greptile-apps

greptile-apps Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor
Prompt To Fix All With AI
Fix the following 2 code review issues. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 2
packages/ui/src/features/sidebar/components/SidebarItem.tsx:140-141
**Pointer-only title reveal**

When a keyboard user focuses a sidebar button with an overflowing title, keyboard focus never updates `isHovered`, so the ticker remains inactive and the faded, clipped title cannot be read in full.

### Issue 2 of 2
packages/ui/src/features/sidebar/components/SidebarItem.tsx:84-91
**Ticker ignores reduced motion**

When a user with `prefers-reduced-motion` enabled points at an overflowing title, this inline transform transition still runs for the computed duration, causing motion despite the user's operating-system preference.

Reviews (1): Last reviewed commit: "fade and scroll overflowing sidebar titl..." | Re-trigger Greptile

Comment thread packages/ui/src/features/sidebar/components/SidebarItem.tsx Outdated
Comment thread packages/ui/src/features/sidebar/components/SidebarItem.tsx Outdated
@greptile-apps

greptile-apps Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "apply title ticker to channel names" | Re-trigger Greptile

@posthog

posthog Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Visual changes approved by @charlesvien — baseline updated in 82c2923.

View this run in PostHog

1 changed.

posthog Bot and others added 4 commits July 26, 2026 01:59
1 updated
Run: e6c8ae88-caaf-40b7-8ea1-7f0ebd5fc916

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

greptile-apps Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Reviews (3): Last reviewed commit: "add overflow ticker tests" | Re-trigger Greptile

@charlesvien charlesvien added the Stamphog This will request an autostamp by stamphog on small changes label Jul 26, 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.

Sidebar/canvas UI-only change (ticker-scroll long titles) with solid test coverage; both Greptile concerns (keyboard focus reveal, reduced-motion handling) are visibly implemented and tested in the diff, and a bot visual-review already approved the snapshot update.

  • Author wrote 19% of the modified lines and has 171 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 195L, 6F substantive, 368L/7F incl. docs/generated/snapshots — within ceiling
tier T1-agent / T1d-complex (368L, 7F, two-areas, feat)
stamphog 2.0.0b3 .stamphog/policy.yml @ be4d1dc · reviewed head 15fea89

@charlesvien
charlesvien merged commit cee8b0e into main Jul 26, 2026
38 checks passed
@charlesvien
charlesvien deleted the feat/sidebar-title-ticker branch July 26, 2026 05:00
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.

1 participant